About funkyDoCalc - answered here: http://www.cfd-online.com/Forums/ope...tml#post418889
|
dear Bruno thank you.the Cp tool seems to work nice and the problem is resolved well.
Then this topic is closed for futurers now and will be opened if anyone has a question. |
I have to ask another question about Cp.
how can I add the field of Cp in the solver?(I want to use that in calculating total pressure) thanks.:) |
Hi Ehsan,
In essence, the same way as these two tutorials:
Have fun! Best regards, Bruno |
thank you.I read them carefully.very suitable.
but Cp is a field that I think should be calculated by the solver itself.but it is not in creatFields.H I had added Cp in createFields.H without any success before. I think I can calculate total pressure without any need to Cp from the formula:p0=p+1/2*rho*sqr(U) instead of isentropic relation.because the difference is so little.but how to do this? add this in solver or can obtain it on inlet and outlet patches like p by (I prefer swak4Foam because it calculates values in each time step not only in writing times) postProcessing functions? |
Dear Fomers,
I am having issues on the same topic. I need to write out either the Cp or kappa field. As far as I understand, there are 3 possibilities: 1) changing the filed definition from NO_WRITE to MUST_WRITE? 2) using a post-processing utility? 3) using the writeRegisteredObject function in controlDict I am using a MultiRegionSolver based on chtMultiRegionFoam in OF 2.2.0 with thermoType { type heRhoThermo; mixture multiComponentMixture; transport polynomial; thermo janaf; equationOfState perfectGas; specie specie; energy sensibleEnthalpy; } I did not get one of the possible ways working: 1) I did not find where Cp or kappa fields are created and where to manage the output 2) I tried to combine the specificHeat utility presented by wyldckat with the wallHeatFlux utility in order to cope with MultiRegions. Ends up with the error: HTML Code:
Not Implemented I would prefer having a solution for 2) but would appreciate any hints :) regards Georg |
Quote:
|
Hi,
I downloaded and compiled specificHeat utility and it worked like a charm!:) Now I'm tryin to extend it to reactingMixture, I want to calculate Cp as posprocessing of reactingFoam solution. Any help would be appreciated! Thanks |
Greetings Peter,
Quote:
Best regards, Bruno |
Quote:
I guess, some users would be happy if you explained in a few sentences how you solved the problem. ;-) |
1 Attachment(s)
Quote:
sorry for taking a bit time to answer, I had to have a look at the files again... In the end I managed to get the post processing utility presented by Bruno working for my multi region case. If I remember correctly it was the wallFvPatch.H that was missing when I posted my error - it just had to be included as well (like in the wallHeatFlux untility) regards, Georg |
Hi again!
when I want to run the modified rhoCentralFoam for OF 2.4.0 it complains about unknown dimension of Cv and also Cp while it was running good before in 2.2.2 version. this is the warning: Code:
--> FOAM Warning : Code:
CvField { thank you very much.:) |
Quote:
Code:
swak4Foam expressionField |
Hello to everyone,
what's wrong about Cp and Cv fields need to be used in the equations of the case? it shows the error bellow. Code:
ehsan@ehsan-N56JK:~/OpenFoam_Cases/kOmegaSST-WR$ rhoCentralFoam Code:
CvField { |
Quick answer: Sorry, I don't have enough time to develop a case myself for diagnosing this right now, but the problem seems to be due to the function object not running before the first time step. If the function object had ran before the first time step, then the object should have been registered.
Although I have the vague idea I've seen this error before... was a function object of type "readFields" in the function object list you had in the original case? |
this is the function object that I use in controlDict that isn't of type readFields. now I don't have any function object of that type.
Code:
writeMissingFields |
I knew this looked familiar to me:
edit: I found this by Googling: Code:
site:cfd-online.com "wyldckat" "Cv" |
Hi everyone,
although the run had been done correctly, now that I want to run again in of 2.4.0 and new swak4Foam, it shows errors on Cp and Cv fields, I tried to examine various combinations of "thermo:Cv", "thermo_Cv()", "CRRv" and with and without aliases with no success. for example if I use CRRv as below: Code:
CvField { Code:
Creating expression field CRRv ...swak4Foam: Allocating new repository for sampledMeshes |
Hi Ehsan,
Fortunately you sent me the case via email, otherwise we would be playing "guess why this happens" for several more days... Instead, it took me... maybe 15 minutes to fix the problems? Well, I'm assuming the issues are fixed in the case I sent you, because it takes a very long time to run the solver and I'm also not certain what the results should be :(. But OK, I'll report here what the problems were, regarding this error message: Code:
--> FOAM FATAL ERROR: Code:
functions Code:
functions Anyway, the next error that was triggered was the one you reported here: http://www.cfd-online.com/Forums/ope...rnal-bool.html - which I can now answer properly there... although technically I had already given you the answer on that thread!!! :rolleyes: Best regards, Bruno |
Hi,
I have followed this thread last week since I wanted to write Cp as the OP wanted, but if you write: Code:
volScalarField Cp Code:
volScalarField Cp |
All times are GMT -4. The time now is 02:55. |