|
[Sponsors] |
December 4, 2017, 04:06 |
How to mapfields
|
#1 |
Member
Join Date: Jun 2017
Posts: 73
Rep Power: 9 |
Hi,
I have two meshes (case 1 and case 2) of the same geometry, but case 2 has a refinement box in it. So now I want to map all fields (p,u,k,epsilon,nut) from case 1 to case 2 to decrease calculation time. How do I execute the command? OpenFOAM Wiki says: Code:
mapFields <source root> <source case> <target root> <target case> [-consistent] [-parallelSource] [-parallelTarget] Code:
mapFields Desktop/case1 Dekstop/case2 -??? Glad for any advice. Greetings Friendly |
|
December 4, 2017, 06:56 |
|
#2 |
Senior Member
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12 |
Step 1: If you want to map your data from e.g. time 50 than you have to create a "50" folder in the target case.
Step 2: In the controlDict of the target case set "startTime" to whatever time you want to map (here: 50) Step 3: From your target case folder run "mapFields /home/user/OpenFOAM/version/run/source". You can get the correct path by using "pwd" in the command line or "Ctrl+L" if you are in a Ubuntu desktop environment. /edit: If i remember correctly the -consistent flag can be used if both cases (target and source) have the same dimensions and boundary conditions. Mesh refinement does not matter. |
|
December 4, 2017, 15:21 |
|
#3 |
Member
Join Date: Jun 2017
Posts: 73
Rep Power: 9 |
Thank you! It worked exactly as you said.
|
|
August 31, 2021, 20:41 |
|
#4 |
Senior Member
qutadah
Join Date: Jun 2021
Location: USA
Posts: 101
Rep Power: 5 |
i think we can just use following command:
mapFields -consistent -sourceTime "xx" /$Path_target_file am I wrong? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mapFields major bug | alchem | OpenFOAM Bugs | 14 | September 15, 2023 13:48 |
Personalization of mapFields and libsampling - Compilation issues | saimat | OpenFOAM Programming & Development | 3 | June 29, 2016 09:56 |
Strange random behaviour of mapFields | blaise | OpenFOAM Pre-Processing | 0 | November 3, 2014 10:37 |
The -parallel parameter of mapFields utility in OpenFOAM v2.3.0 | shuoxue | OpenFOAM Pre-Processing | 1 | April 28, 2014 06:59 |
Zero Pressure with mapFields | ignacio | OpenFOAM Running, Solving & CFD | 0 | May 24, 2013 10:43 |