Flow term class.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=:), | public, | allocatable | :: | name |
object name |
||
character(len=:), | public, | allocatable | :: | msg |
error message |
||
integer, | public | :: | ierr | = | 0 |
error code |
|
logical, | public | :: | inited | = | .false. |
initialization flag |
|
type(grid1), | public, | pointer | :: | grid | => | null() |
pointer to grid object |
real(kind=rk), | public, | allocatable | :: | udot(:) |
net rate of change, |
Initialize flowterm
object.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(grid1), | intent(in) | :: | grid |
|
||
character(len=*), | intent(in), | optional | :: | name |
name (default="growth-term") |
Setter method for name.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(base), | intent(inout) | :: | self |
object |
||
character(len=*), | intent(in), | optional | :: | name |
name |
|
character(len=*), | intent(in), | optional | :: | default |
default name |
Error method.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(base), | intent(inout) | :: | self |
object |
||
character(len=*), | intent(in) | :: | msg |
message |
Check initialization method.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(base), | intent(inout) | :: | self |
object |
Setter method for grid.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(pbeterm), | intent(inout) | :: | self |
object |
||
type(grid1), | intent(in), | target | :: | grid |
|
Allocator for arrays of pbeterm
class.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(pbeterm), | intent(inout) | :: | self |
object |
Evaluate rate of change due to flow at a given instant .
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(flowterm), | intent(inout) | :: | self |
object |
||
real(kind=rk), | intent(in) | :: | u(:) |
cell-average number density, |
||
real(kind=rk), | intent(in) | :: | uin(:) |
inlet cell-average number density, |
||
real(kind=rk), | intent(in) | :: | qin |
inlet flowrate, |
||
real(kind=rk), | intent(in) | :: | qout |
outlet flowrate, |
||
real(kind=rk), | intent(in) | :: | v |
system volume, |
||
real(kind=rk), | intent(in) | :: | vdot |
volume derivative, |
||
real(kind=rk), | intent(out), | optional | :: | udot(:) |
net rate of change, |
type, extends(pbeterm) :: flowterm !! Flow term class. private procedure(uinfnc_t), nopass, pointer :: uinfnc => null() !! inlet number density function contains procedure, pass(self), public :: eval => flowterm_eval end type flowterm