|
[Sponsors] |
November 13, 2008, 05:27 |
Hello.
I want to add a smal
|
#1 |
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20 |
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!" |
|
November 16, 2008, 05:45 |
Meanwhile I stumbled along the
|
#2 |
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20 |
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!" |
|
|
|
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 09:19 |
Postprocessing Pressure data spanwise over a wing | Rick | FLUENT | 1 | February 3, 2006 09:28 |
On postprocessing | Hur Seok-Ju | FLUENT | 1 | March 19, 2000 15:37 |