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

species formation rate in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By dlahaye

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 11, 2021, 22:52
Default species formation rate in OpenFOAM
  #1
run
New Member
 
nuralam
Join Date: Mar 2021
Posts: 6
Rep Power: 5
run is on a distinguished road
Hi,

I want to measure formation rate of species in OpenFOAM using the following:

dydt(n)= {Y(n-1) - Y (n+1)} / {t(n-1)-t(n+1)} //2nd order accuracy

where, Y(n-1) and Y(n+1) are mass fraction of species at time t(n-1) and t(n+1) respectively.

Could you please tell me how I can store time date and calculate dydt(n)?

Redards,
NurAlam
run is offline   Reply With Quote

Old   May 12, 2021, 13:20
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 802
Blog Entries: 1
Rep Power: 18
dlahaye is on a distinguished road
What do you mean by y? Mass species? Does y have a spatial variation? Is yes, in which location (patch, (sub-)volume) do you want to measure the time derivative?

Values for t(n) can be read from log file.
run likes this.
dlahaye is offline   Reply With Quote

Old   May 12, 2021, 18:03
Default
  #3
run
New Member
 
nuralam
Join Date: Mar 2021
Posts: 6
Rep Power: 5
run is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
What do you mean by y? Mass species? Does y have a spatial variation? Is yes, in which location (patch, (sub-)volume) do you want to measure the time derivative?

Values for t(n) can be read from log file.
Thank you for response.

Yeah, Y is specie mass fraction which is generated by solving specie transport eqution. I am running a simple case of planner channel for reacting flow where left side and right side are inlet and outlet respectively.
I want to measure time derivative of Y along the channel length. I do not understand how I use code to get this.
-NurAlam
run is offline   Reply With Quote

Old   May 13, 2021, 04:10
Default
  #4
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 802
Blog Entries: 1
Rep Power: 18
dlahaye is on a distinguished road
Wonderful to read your reply.

Do you agree that dydt is a partial derivative that has a value in each cell of the mesh?

Possibly it helps to explain what your interest in dydt is. Possibly we can find other ways to obtain the same information.
dlahaye is offline   Reply With Quote

Old   May 13, 2021, 08:54
Default
  #5
run
New Member
 
nuralam
Join Date: Mar 2021
Posts: 6
Rep Power: 5
run is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
Wonderful to read your reply.

Do you agree that dydt is a partial derivative that has a value in each cell of the mesh?

Possibly it helps to explain what your interest in dydt is. Possibly we can find other ways to obtain the same information.
Yeah, you are right.
run 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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 12:58
Problem related to defining of species flow rate in FLUENT. chinu007 FLUENT 0 April 8, 2021 05:48
Wall-Surface Reactions and Solid species interactions - Simulating carbon formation Schluckner FLUENT 0 January 26, 2015 09:59
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 10:04
*** Species generation rate? *** Carlos FLUENT 1 February 21, 2009 21:58


All times are GMT -4. The time now is 16:13.