Cp_residual_pt Subroutine

private subroutine Cp_residual_pt(eos, n, P, T, root_type, Cp)

Calculate residual heat capacity at constant pressure given pressure and temperature.

Examples

eos = PengRobinson76(Tc, Pc, w)

n = [1.0_pr, 1.0_pr]
T = 300.0_pr
P = 1.0_pr

call eos%Cp_residual_pt(&
   n, P, T, root_type="stable", Cp=Cp &
   )

Type Bound

ArModel

Arguments

Type IntentOptional Attributes Name
class(ArModel), intent(in) :: eos

Model

real(kind=pr), intent(in) :: n(:)

Moles number vector

real(kind=pr), intent(in) :: P

Pressure [bar]

real(kind=pr), intent(in) :: T

Temperature [K]

character(len=*), intent(in) :: root_type

Desired root-type to solve. Options are: ["liquid", "vapor", "stable"]

real(kind=pr), intent(out) :: Cp

Residual heat capacity at constant pressure [bar L K^-1]


Calls

proc~~cp_residual_pt~~CallsGraph proc~cp_residual_pt ArModel%Cp_residual_pt proc~cp_residual_vt ArModel%Cp_residual_vt proc~cp_residual_pt->proc~cp_residual_vt proc~volume~2 ArModel%volume proc~cp_residual_pt->proc~volume~2 residual_helmholtz residual_helmholtz proc~cp_residual_vt->residual_helmholtz get_v0 get_v0 proc~volume~2->get_v0 interface~newton newton proc~volume~2->interface~newton proc~newton_1d newton_1d interface~newton->proc~newton_1d

Variables

Type Visibility Attributes Name Initial
real(kind=pr), private :: V