CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

How to get Rate of reaction

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 29, 2016, 12:56
Default How to get Rate of reaction
  #1
New Member
 
Mohammadreza Baigmohammadi
Join Date: Nov 2015
Location: Umeå
Posts: 4
Rep Power: 10
CombustionBaig is on a distinguished road
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.
CombustionBaig is offline   Reply With Quote

Old   February 29, 2016, 13:16
Default
  #2
Senior Member
 
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 15
babakflame is on a distinguished road
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.
babakflame is offline   Reply With Quote

Old   March 1, 2016, 04:49
Default
  #3
New Member
 
Mohammadreza Baigmohammadi
Join Date: Nov 2015
Location: Umeå
Posts: 4
Rep Power: 10
CombustionBaig is on a distinguished road
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.
CombustionBaig is offline   Reply With Quote

Old   March 1, 2016, 17:19
Default
  #4
Senior Member
 
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 15
babakflame is on a distinguished road
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
babakflame is offline   Reply With Quote

Old   June 2, 2016, 11:58
Default
  #5
New Member
 
Mr.liu
Join Date: Sep 2012
Posts: 27
Rep Power: 13
lx882211 is on a distinguished road
Quote:
Originally Posted by CombustionBaig View Post
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.
I meet a problem in Openfoam 2.3.0, reactingFoam, i need the data of CH4 reaction rate, but i failed to autowrite it like U or Yi.

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.
lx882211 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 22:45.