Growth 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 growthterm
object.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(grid1), | intent(in) | :: | grid |
|
||
procedure(gfnc_t) | :: | g |
growth rate function, |
|||
integer, | intent(in) | :: | k |
order of the WENO reconstruction (default=3) |
||
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 particle growth at a given instant .
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(growthterm), | intent(inout) | :: | self |
object |
||
real(kind=rk), | intent(in) | :: | u(:) |
cell-average number density, |
||
real(kind=rk), | intent(in) | :: | y(:) |
environment vector, |
||
real(kind=rk), | intent(out), | optional | :: | udot(:) |
net rate of change, |
type, extends(pbeterm) :: growthterm !! Growth term class. private procedure(gfnc_t), nopass, pointer :: gfnc => null() !! growth rate function type(weno) :: wenorec !! WENO reconstruction real(rk), allocatable :: uleft(:) !! left reconstruction of number density function real(rk), allocatable :: uright(:) !! right reconstruction of number density function real(rk), allocatable :: flux_edges(:) !! flux at grid edges contains procedure, pass(self), public :: eval => growthterm_eval end type growthterm