Example:
Inlet velocity at inlet plane with velocity along x-dir with a maximum
velocity 0.08.
Inlet plane is normal to x-dir and located at offset of {-5,0,0} from
origin. The plane spans -1 to 1 in both y and z-dir.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Source Code
subroutine load_spatial_parabol(me,conf,thandle,nComp)! -------------------------------------------------------------------- !!> parabola3d spatial datastype(spatial_parabol_type),intent(out)::me!> lua state typetype(flu_State)::conf!> aotus parent handleinteger,intent(in)::thandle!> Number of componentsinteger,intent(in)::nComp! -------------------------------------------------------------------- !integer::iError! -------------------------------------------------------------------- !! load geometrycall tem_load_shape(conf=conf,&&parent=thandle,&&me=me%geometry)if(size(me%geometry%canoND)/=1)then write(logUnit(1),*)'Error: Requires single shape for spatial "parabol"'call tem_abort()end if call load_spatial_asConst(const=me%amplitude,&&conf=conf,&&errCode=iError,&&parent=thandle,&&key='amplitude',&&nComp=nComp)if(iError/=0)then write(logUnit(1),*)'Warning: amplitude is not defined.'write(logUnit(1),*)' Set to default value 1.0 for all components'me%amplitude=ref_ampend if if(nComp==1)then write(logUnit(5),"(A)")' amplitude = '&&//trim(tem_toStr(me%amplitude(1)))else write(logUnit(5),"(A)")' amplitude = '&&//trim(tem_toStr(me%amplitude(1:nComp),','))end if end subroutine load_spatial_parabol