Hi everybody,
What does one need to do if one wants the solver to update a temperature dependent Cp for every time step? I am running coldEngineFoam and it only calculates Cp through Janaf for the beginning of the run. After that Cp is constant although the temperature fluctuates. All the solutions are post processing. Cp is calculated at the end of the run depending on the temperature field. I want the temperature field to be coupled to the varying Cp. Thanks! |
Quote:
taking a look to the code, you are using the energy equation of rhoSimpleFoam. Inside that file, you have thermo.correct(), which is updating Cp each time step. This is the thing you were asking for? Because it should change once your equation is solved. |
Thanks agustinvo. You are right. It does calculate an updated Cp value for every time step. For some reason, the output that I wrote for Cp only showed the value calculated at the beginning of the run and did not change it for the time steps.
I wrote the following in the createFields.H file: Code:
volScalarField heatCp Code:
heatCp |
Did you try to write in your code, just after the thermo.correct()
Code:
heatCp=thermo.Cp |
Thanks augustinvo. I've found a work-around for the problem. I tried your suggestion but it gives me an error. However, I don't need this solution any more
|
Hi,
sorry to bump into this thread again. I would like to see the cp values after my simulation. I used wyldckats last code, but when I try to wmake it I gain this: Code:
Making dependency list for source file specificHeat.C If it is looking for it, but does not find it, is there maybe only a new place or name of cyclicAMILduInterface.H? Thank you. Best |
Dear Georg,
What's wrong with the "Not implemented" problem as you posted? Could you tell us how to solve this problem? Best, Xu |
Quick answers/questions:
@Gerrit: Quote:
Anyway, see this post: http://www.cfd-online.com/Forums/ope...tml#post567796 - post #2 @wenxu: Quote:
|
Hi Bruno,
thank you very much for your reply! I refered to post #17, but this part of your answer solved my problem already! Quote:
|
read Cp value from thermodynamics dictionary
Dear Foamers, Using cHT solver, How can I get the Cp value from my thermophysicalProperties in constant/ into controlDict in system?
my thermophysicalProperties file looks like this: ... mixture { ... thermodynamics { Hf 0; Cp 12; } ... Is it possible to get it with a command like : const volScalarField& T = mesh_.lookupObject<volScalarField>("T"); that is used for temperature? Annoying is that I managed to access thermodynamics dictionary (dictionary that you can see above) but I don't know how to extract Cp value from it, is there any command that I can use for it? |
cp coeffs
hello all
can someone help me to see the cp of a fluid after the combustion air-H2 to be able to calculate gamma mass fraction: H2 = 1 H2O = 0.256 O2 = 0.258 N2 = 0.486 THANK YOU |
Cp field for multiphase solvers
2 Attachment(s)
Hi all !
I am trying to add the isobaric heat capacity in createFields.H to visualize it using the multiphase solver compressibleInterFoam. So I added the following lines on the createFields.H file : Code:
volScalarField Cp I tried to follow the method suggested by wyldckat & gork by adding these following lines : Code:
autoPtr<rhoThermo> pThermo(rhoThermo::New(mesh)); Actually, this message is normal as I declare the thermo package in separate thermophysicalProperties for each phase (for instance thermophysicalProperties.liquid and thermophysicalProperties.gas) So my question is how can I do to update the Cp by forcing the code to read into the right thermophysicalProperties files ? Cheers, |
All times are GMT -4. The time now is 19:22. |