potentialFoam: request for volScalarField rho
Hi, I'm trying to use potentalFoam in order to initialize the flow of an external aerodynamic.
The solver I want to use is rhoSimplecFoam and the analysis seems to work well with the setting I'm using. However if I try to initilaize the flow with potentialFoam (using the comand "potentialFoam") I get the following error: Code:
--> FOAM FATAL ERROR: In fvSolution I have added the part: Code:
potentialFlow Am I missing something? Thanks! WhiteW |
Hi,
potentialFoam itself neither creates nor looks up rho volume scalar field and since your error messages are rather trimmed, I could try to guess, you are using fvOptions or functionObjects, which request rho field. Also it is possible that you are using boundary conditions for velocity or pressure that require rho field. |
Hi, thanks for reply.
You are right, Im using both fvOptions and a p boundary that involves the use of rho. I report the 0/p file: Code:
#include "include/initialConditions" Thanks, WhiteW |
Hi,
You could either change boundary conditions (and remove fvOptions), initialize flow, revert changes; or create separate simplified case for potentialFoam and then use mapFields to map initialized flow field from potentialFoam case to your rhoSimplecFoam case. |
Thanks alexeym, I'll try to use mapFields!
|
Ok, I have run the potentialFoam in an incompressible setting (simpleFoam).
I have obtained the internalField in 0/U. Now in the original folder (where then I'll use rhoSimplecFoam) I run: mapField -consistent Is it the right command? I'm not sure about the consistent option, the geometry it is the same (identical number of cells), however the Boundary conditions change.. WhiteW |
Hi,
It should be something like: Code:
mapFields -fields '(U)' -sourceTime latestTime <path-to-your-potentialFoam-case> |
Hi
the two folder I'm using are Base_potential (where I run the potentialFoam and I get the U with the initilaized internal field) and Base_potential2 (where I will run the rhoSimplecFoam. I tried the command: Code:
mapFields -fields '(U)' -sourceTime 0 /home/OF/Baseline_2.224_potential Code:
/*---------------------------------------------------------------------------*\ Quote:
Is there something wrong? Thanks, WhiteW |
Hi,
Unfortunately I do not have OpenFOAM 2.3.0, yet I have 2.3.x and if I use pitzDaily potentialFoam's tutorial example and then pitzDaily case from rhoPimpleFoam/les, output is as follows (pf is folder with potentialFoam case): Code:
daphne:pitzDaily$ pwd Could you describe exact steps to reproduce your error? Maybe provide case folder archives. |
All times are GMT -4. The time now is 07:39. |