CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

potentialFoam - How to set velocity field

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By mab2351

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2020, 08:30
Default potentialFoam - How to set velocity field
  #1
New Member
 
Deutschland
Join Date: Apr 2020
Posts: 2
Rep Power: 0
mab2351 is on a distinguished road
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
Hip2BL7 likes this.
mab2351 is offline   Reply With Quote

Old   April 18, 2020, 09:10
Default
  #2
Senior Member
 
Troy Snyder
Join Date: Jul 2009
Location: Akron, OH
Posts: 220
Rep Power: 19
tas38 is on a distinguished road
Quote:
Originally Posted by mab2351 View Post
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.
tas38 is offline   Reply With Quote

Reply

Tags
map fields, potential flow


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] swakExpression not writing to log alexfells OpenFOAM Community Contributions 3 March 16, 2020 19:19
change velocity field LM4112 OpenFOAM Running, Solving & CFD 12 February 5, 2014 12:56
Env variable not set gruber2 OpenFOAM Installation 5 December 30, 2005 05:27
How to set environment variables kanishka OpenFOAM Installation 1 September 4, 2005 11:15
Variables Definition in CFX Solver 5.6 R P CFX 2 October 26, 2004 03:13


All times are GMT -4. The time now is 15:59.