CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Difference between Calc function in Kinematicparcel.C and ReactingParcel.C (https://www.cfd-online.com/Forums/openfoam-programming-development/223118-difference-between-calc-function-kinematicparcel-c-reactingparcel-c.html)

farzadmech December 24, 2019 23:06

Difference between Calc function in Kinematicparcel.C and ReactingParcel.C
 
Hello dear friends
What is the Difference between Calc function in Kinematicparcel.C and ReactingParcel.C?



Thanks,
Farzad

ybapat December 25, 2019 00:18

ReactingParcel has more functionalities than KinematicParcel. Hence calc function includes heat transfer and phase change etc.

farzadmech December 25, 2019 08:14

Calcphasechange
 
Thanks for your reply.
I want to add calcphasechange to kinematicParcel.c. There are already a calc function in kinematicParcel in which code calls calcVelocity. I want to implement calcphasechange in kinematicParcel. Where should I call it? Inside cacl(in which we call calcvelocity) or outside of it?


Thanks
Farzad Farajidizaji

ybapat December 26, 2019 02:23

Hello,


You can use reactingParcel if that is more suitable to you instead of adding phase change to kinematicParcel.



Regards,

-Yogesh

farzadmech December 27, 2019 20:57

thanks for your reply. In reactingParcelFoam and I have a problem in below function;
Code:

// Calc mass and enthalpy transfer due to phase change
    calcPhaseChange
    (
        cloud,
        td,
        dt,
        Res,
        Prs,
        Ts,
        mus/rhos,
        d0,
        T0,
        mass0,
        0,
        1.0,
        Y_,
        dMassPC,
        Sh,
        Ne,
        NCpW,
        Cs
    );

I can not find where is Y_ is defined?


Thanks,
Farzad Farajidizaji


Quote:

Originally Posted by ybapat (Post 753236)
Hello,


You can use reactingParcel if that is more suitable to you instead of adding phase change to kinematicParcel.



Regards,

-Yogesh



All times are GMT -4. The time now is 08:53.