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

Postprocessing pressure

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 13, 2008, 06:27
Default Hello. I want to add a smal
  #1
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 11
sega is on a distinguished road
Hello.

I want to add a small procedure into the interFoam.
Its basically a solution for calculating the pressure inside a spherical bubble, but also limited to this case.

The "code" would read like this:

for all cells
********if rho > 0.99 * rho_phase1
****************nCell = nCell + 1
****************sumPressure = sumPressure + Pressure_cell
********end if
********Pressure = sumPressure / nCell
end for

How can I implement this code into C++?
I'm still not familar enought with C++ to do this on my own.
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   November 16, 2008, 06:45
Default Meanwhile I stumbled along the
  #2
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 11
sega is on a distinguished road
Meanwhile I stumbled along the codes of interFoam and some postprocessing tools.

I tried to include some field-reading like in the interFoam createFields.H and put them inside the C-file of my little code:

surfaceTensionPressureDrop.C

The tool is compiling, but when I am running it there is some output from the inlcuded createPhi.H and from the selected transport model:


Reading/calculating face flux field phi

Selecting incompressible transport model Newtonian
Selecting incompressible transport model Newtonian

Time = 24.9
Number of cells = 316
Summarized pressure = 296.902
Pressure jump = 0.939563


Is there a way of suppressing these outputs?
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me in postprocessing. MK FLUENT 0 September 13, 2008 02:02
DG postprocessing jack Main CFD Forum 10 May 25, 2008 23:05
PostProcessing help Q FLUENT 0 March 3, 2006 10:19
Postprocessing Pressure data spanwise over a wing Rick FLUENT 1 February 3, 2006 10:28
On postprocessing Hur Seok-Ju FLUENT 1 March 19, 2000 16:37


All times are GMT -4. The time now is 04:11.