CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   potentialFoam - How to set velocity field (https://www.cfd-online.com/Forums/openfoam-solving/226134-potentialfoam-how-set-velocity-field.html)

mab2351 April 18, 2020 07:30

potentialFoam - How to set velocity field
 
dear, all

I am currently investigating a particel flow (Solver: DPMFoam).
To speed up the simulation I would like to calculate a potential flow first. Like it is done in the Motorbike Tutorial.

In the DPMFOAM simulation the velocity field is called U.air. Is there a way that I "tell" potentialFoam that the velocity field is called U.air.

Or can I calculate potentialFoam with U and then map from U to U.air (with mapFields)

Here the (obvious) error message from potentialFoam:

Code:

potentialFlow: Operating solver in PISO mode

Reading velocity field U

[0]
[0]
[0] --> FOAM FATAL IO ERROR:
[0] cannot find file
[0]
[0] file: /*****************************************/processor0/0/U at line 0.
[0]
[0]    From function regIOobject::readStream()
[0]    in file db/regIOobject/regIOobjectRead.C at line 73.
[0]
FOAM parallel run exiting

Regards
Marcel

tas38 April 18, 2020 08:10

Quote:

Originally Posted by mab2351 (Post 766267)
dear, all

I am currently investigating a particel flow (Solver: DPMFoam).
To speed up the simulation I would like to calculate a potential flow first. Like it is done in the Motorbike Tutorial.

In the DPMFOAM simulation the velocity field is called U.air. Is there a way that I "tell" potentialFoam that the velocity field is called U.air.

Or can I calculate potentialFoam with U and then map from U to U.air (with mapFields)

Here the (obvious) error message from potentialFoam:

Code:

potentialFlow: Operating solver in PISO mode

Reading velocity field U

[0]
[0]
[0] --> FOAM FATAL IO ERROR:
[0] cannot find file
[0]
[0] file: /*****************************************/processor0/0/U at line 0.
[0]
[0]    From function regIOobject::readStream()
[0]    in file db/regIOobject/regIOobjectRead.C at line 73.
[0]
FOAM parallel run exiting

Regards
Marcel

I think you may be able simple to run potential foam and then rename the resulting U file to U.air. The mapFields utility is generally reserved for mapping from once case to another, like mapping from a coarse mesh to a fine mesh, or vice versa. With "source" and "target" arguments, the mapFields utility does not provide an option to rename a specific file containing a field, e.g. U.


All times are GMT -4. The time now is 20:34.