private function rho(fl, p, t)
Note
Function to calculate the density of the fluid based on t and p
- if fl is set to INC (incompressible) ρ=ρ0 where ρ0 is a member of fl FLUID
- if fl is set to GP (perfect gas) ρ=prgT where rg is a member of fl FLUID
- if fl is set to MIXT (mixture) ρ=11−λρ0+λrgTp where λ and rg are members of fl FLUID
Arguments
Type |
Intent | Optional |
Attributes | | Name | |
class(FLUID), |
intent(in) |
|
| :: |
fl | fluid type |
real(kind=R8), |
intent(in) |
|
| :: |
p | pressure |
real(kind=R8), |
intent(in) |
|
| :: |
t | absolute temperature |
Return Value real(kind=R8)