|
[Sponsors] |
February 29, 2016, 12:56 |
How to get Rate of reaction
|
#1 |
New Member
Mohammadreza Baigmohammadi
Join Date: Nov 2015
Location: Umeå
Posts: 4
Rep Power: 10 |
Hi dear Foamers,
Is there anyone to tell me, how I can display/extract the rate of reaction of global chemistry. I examined the following command: functions { RRfunc { type writeRegisteredObject; functionObjectLibs ("libIOFunctionObjects.so"); outputControl outputTime; outputInterval 1; objectNames ( "RR.CH4" ); } } Although, it gave me "RR.CH4", I couldn't plot the file by the paraFoam. Because its class was "volScalarFieldimensionedInternalField". Regards Mo. |
|
February 29, 2016, 13:16 |
|
#2 |
Senior Member
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 15 |
Hi MohammadReza
There is no necessary to always plot your results through paraview. If you have results then try to open it in Libreoffice. Ps: There are some examples of rate of reaction computing in this website as well. Try to search before asking my friend. Regards Last edited by babakflame; February 29, 2016 at 16:26. |
|
March 1, 2016, 04:49 |
|
#3 |
New Member
Mohammadreza Baigmohammadi
Join Date: Nov 2015
Location: Umeå
Posts: 4
Rep Power: 10 |
Hi Bobi,
Thank you so much for your reply. I know.... I searched among all threads in the website. But, unfortunately, I could not find any thing related to my question. However, it may be related to my inappropriate searching keywords. Anyway, your comment doesn't work in my case. Because, I want to demonstrate the reaction rates as contours. Therefore, I would be very pleased, if you show me the referred links... Cheers Mo. |
|
March 1, 2016, 17:19 |
|
#4 |
Senior Member
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 15 |
Hi Mohammad Reza
I remember there was a guy (Shekari..) who did this reaction rate for OpenFOAM related results.He got inspired from the threads in this forum. I can say, call him or once again search the threads. Regards |
|
June 2, 2016, 11:58 |
|
#5 | |
New Member
Mr.liu
Join Date: Sep 2012
Posts: 27
Rep Power: 13 |
Quote:
First i added this code in the CreatField.H, volScalarField Rrate ( IOobject ( "Rrate", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), mesh, dimensionedScalar("Rrate", dimMass/dimVolume/dimTime, 0.0) ); Then, i added this code in YEqn, forAll(Y, i) { if (Y[i].name() != "CH4") Rrate = reaction->R(Yi); } After wmake, it shows YEqn.H:26:14: error: no match for ‘operator=’ (operand types are ‘Foam::volScalarField {aka Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>}’ and ‘Foam::tmp<Foam::fvMatrix<double> >’) Rrate = reaction->R(Yi); Can you tell me how to do that? Thank you very much. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PaSR + infinite reaction rate in reactingFoam --> no reactions occurring | tatu | OpenFOAM Running, Solving & CFD | 2 | November 24, 2016 18:34 |
Defining reaction rate with multiple surface reaction | Fred Marias | FLUENT | 1 | September 12, 2013 04:56 |
Segmentation fault in running alternateSteadyReactingFoam,why? | NewKid | OpenFOAM | 18 | January 20, 2011 16:55 |
UDF changing the rate exponent of a reaction | Stefan H | Fluent UDF and Scheme Programming | 0 | September 16, 2009 13:20 |
chemical reaction - decompostition | La S. Hyuck | CFX | 1 | May 23, 2001 00:07 |