CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

How to get the minimum y coordinates on the iso-surfaces through the postprocess code

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   August 15, 2022, 11:01
Default How to get the minimum y coordinates on the iso-surfaces through the postprocess code
New Member
Lu Shui
Join Date: Feb 2022
Posts: 1
Rep Power: 0
lucedar is on a distinguished road
Dear all,
I am postprocessing the flame lift-off based on the calculated results in OpenFOAM V6, and I am testing the postprocess code in the tutorial of achenBomb. However, the postprocessed flame lift-off is not consistent with the data in Paraview, and it is 0.1m all the timee. Any one can give me help? Thank you very much!
scalar MinYlocation = 0.1;
label index_ = 0;

forAll(Qdot, cellI)
if (Qdot[cellI] == scalar(10000000000.0))
scalar y = mesh.C()[cellI].component(vector::Y);
if (y < MinYlocation)
MinYlocation = y;
MinYlocation = mesh.C()[index_].component(vector::Y);
Info << " Time= " << runTime.value()<<"," << " Flame lift-off=" << MinYlocation << endl ;]
lucedar is offline   Reply With Quote


flame lift-off, openfoam, postprocess

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Design Integration with CFD? John C. Chien Main CFD Forum 19 May 17, 2001 15:56
What is the Better Way to Do CFD? John C. Chien Main CFD Forum 54 April 23, 2001 08:10
Open source CFD code development, possible? Dr. Yazid Bindar Main CFD Forum 27 July 18, 2000 00:18
State of the art in CFD technology Juan Carlos GARCIA SALAS Main CFD Forum 39 November 1, 1999 14:34
What kind of Cmmercial CFD code you feel well? Lans Main CFD Forum 13 October 27, 1998 10:20

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