How to write a material derivative of ln[Tc/Ts] in Openfoam
Title
Question
Hello Everyone
I trust this finds you well,
May kindly assist me, I have the below Stress /Constitutive Giesekus Equation written in Openfoam
// Velocity gradient tensor
const tmp<volTensorField> tL = fvc::grad(U());
const volTensorField& L = tL();
// Convected derivate term
volTensorField C = tau_ & L;
// Twice the rate of deformation tensor
volSymmTensorField twoD = twoSymm(L);
// Giesekus Equation:
fvSymmTensorMatrix tauEqn
(
fvm::ddt(tau_)
+ fvm::div(phi(), tau_)
==
etaP_/lambda_*twoD
+ twoSymm(C)
- (alpha_/etaP_)*symm(tau_ & tau_)
- fvm::Sp(1/lambda_, tau_)
);
where Lambda is relaxation time.
Now , in the above equation I need to add the term
- tau D/Dt (ln [Tc/Ts]) may you kindly assist me I do not know how to express this term in openfoam. Tc & Ts these are temperature for core and shell fluids.
May kindly assist me, I have the below Stress /Constitutive Giesekus Equation written in Openfoam
// Velocity gradient tensor
const tmp<volTensorField> tL = fvc::grad(U());
const volTensorField& L = tL();
// Convected derivate term
volTensorField C = tau_ & L;
// Twice the rate of deformation tensor
volSymmTensorField twoD = twoSymm(L);
// Giesekus Equation:
fvSymmTensorMatrix tauEqn
(
fvm::ddt(tau_)
+ fvm::div(phi(), tau_)
==
etaP_/lambda_*twoD
+ twoSymm(C)
- (alpha_/etaP_)*symm(tau_ & tau_)
- fvm::Sp(1/lambda_, tau_)
);
where Lambda is relaxation time.
Now , in the above equation I need to add the term
- tau D/Dt (ln [Tc/Ts]) may you kindly assist me I do not know how to express this term in openfoam. Tc & Ts these are temperature for core and shell fluids.
Your help will so much appreciate
Thanks
OpenFOAM General
Answers:
You can write
- fvm::ddt(tau_ , log(Tc/Ts))
in your equation, but make sure you have defined values of Tc and Ts before adding here.
Regards,
Divyesh Variya
- fvm::ddt(tau_ , log(Tc/Ts))
in your equation, but make sure you have defined values of Tc and Ts before adding here.
Regards,
Divyesh Variya
or you can write fvm::DDt(tau_, log(Tc/Ts))
Login to add comment