Monomial2D example 6
This example shows the usage of [[Monomial2D_]] class. This example shows the use of Monomials2D
on triangles.
Modules and classes
- [[Monomial2D_]]
Usage
PROGRAM main
use easifemBase
use easifemClasses
implicit none
type(Monomial2D_), allocatable :: f1(:), f2(:), f3(:)
integer( i4b ) :: ii, n
!!! note "Monomials2D"
f1 = Monomials2D( order=1, varname1="x", varname2="y", elemType=Triangle)
n = size( f1 )
do ii = 1, n
call f1(ii)%display( "f(" // tostring(ii) // ")=" )
end do
!!! example "results"
!!! note "Monomials2D"
f2 = Monomials2D( order=2, varname1="x", varname2="y", elemType=Triangle )
n = size( f2 )
do ii = 1, n
call f2(ii)%display( "f(" // tostring(ii) // ")=" )
end do
!!! example "results"
!!! note "Monomials2D"
f3 = Monomials2D( order=5, varname1="x", varname2="y", elemType=Triangle )
n = size( f3 )
do ii = 1, n
call f3(ii)%display( "f(" // tostring(ii) // ")=" )
end do
!!! example "results"
END PROGRAM main