|
[Sponsors] |
OpenFOAM 2: foamCalc probeLocations initial density question |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 7, 2018, 15:12 |
OpenFOAM 2: foamCalc probeLocations initial density question
|
#1 |
New Member
Graham
Join Date: Nov 2017
Posts: 5
Rep Power: 9 |
Hello,
I am using OpenFOAM 2.3.0 probeLocations function to gather property data for plotting over time. Using this produces a 0/ directory and a 0.001/ directory (the first saved time step). Inside the 0/ directory we have property files like temperature T, pressure p, etc. Inside the 0.001/ directory we have a single rho file. This is because rho is not calculated at time 0. However I am building a script to compile all the sample data for plotting in excel and it would be convenient if I could calculate the rho property for time 0 so that all the property files end up in the 0/ directory. Does anyone know of a convenient way to do this. Is there a subfunction in foamCalc that I've missed? Thank you for your time. More background: The reason I am using such an old version of OpenFOAM is that my research lab has created a few custom solvers that have not been updated to work with the new library structure of OpenFOAM 4+ |
|
August 9, 2018, 06:58 |
|
#2 |
Member
ano
Join Date: Jan 2017
Location: Delft
Posts: 58
Rep Power: 10 |
Hi EnigmaFluids,
I didn't try myself, but perhaps you get it, if you modify your solver in a manner that it outputs rho from the beginning. After sourcing your Openfoam version, you would have to type in your terminal: Code:
sol Below the definition of rho, which will look similar to: Code:
volScalarField rho ( IOobject ( "rho", runTime.timeName(), mesh ), thermo.rho() ); Code:
rho.write(); Code:
wmake |
|
August 23, 2018, 17:45 |
|
#3 |
New Member
Graham
Join Date: Nov 2017
Posts: 5
Rep Power: 9 |
Ano,
This was very helpful. Thanks! |
|
Tags |
foamcalc, openfoam2.3.x, probelocations |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Suppress twoPhaseEulerFoam energy | AlmostSurelyRob | OpenFOAM Running, Solving & CFD | 33 | September 25, 2018 18:45 |
Extrusion with OpenFoam problem No. Iterations 0 | Lord Kelvin | OpenFOAM Running, Solving & CFD | 8 | March 28, 2016 12:08 |
simpleFoam error - "Floating point exception" | mbcx4jc2 | OpenFOAM Running, Solving & CFD | 12 | August 4, 2015 03:20 |
Compressor Simulation using rhoPimpleDyMFoam | Jetfire | OpenFOAM Running, Solving & CFD | 107 | December 9, 2014 14:38 |
pisoFoam with k-epsilon turb blows up - Some questions | Heroic | OpenFOAM Running, Solving & CFD | 26 | December 17, 2012 04:34 |