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

mapFields doesn't change fields

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By nimasam

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 20, 2013, 04:42
Default mapFields doesn't change fields
  #1
New Member
 
Join Date: Feb 2013
Posts: 17
Rep Power: 13
Werne is on a distinguished road
Hello,
I have a problem with the command mapFields. I'm trying to map the data of a big mesh onto a smaller mesh that is completely surrounded by the bigger mesh. mapFields runs smoothely and doesn't produce any errors, but it also doesn't produce any results as the fields in the target folder aren't changed. I get the following output:
Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  1.7.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 1.7.x-d08d3c27ccda
Exec   : mapFields ../source_case/
Date   : Feb 20 2013
Time   : 09:29:09
Host   : ocean03
PID    : 10092
Case   : /home/werne/OpenFOAM1.7.x/werne-1.7.x/run/target_case
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Source: "../source_case" ""
Target: "/home/werne/OpenFOAM1.7.x/werne-1.7.x/run/Project" "target case"
Create databases as time
Source time: 0
Target time: 0
Create meshes
Source mesh size: 6557642       Target mesh size: 230809
 
Mapping fields for time 0
    interpolating hTotal
    interpolating h0
    interpolating manning
    interpolating h
    interpolating U
End
I have tried different approaches:
- I left both patchMap and cuttingPatches empty
- I left patchMap empty and inserted all boundaries of the smaller mesh in cuttingPatches (and vice versa)

I get always the same output and no results. I'm mapping from the time 0 to time 0 and have "dummy files" of the fields I want to map in the target folders.

Any suggestions what I could do, or how I should build up the mapFieldsDict?

Last edited by Werne; February 20, 2013 at 12:48.
Werne is offline   Reply With Quote

Old   February 20, 2013, 05:02
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
mapFields has some extra options for example -consistent or -time,
you can use these options to map from different time step or for different conditions
if you want to see mapFields options you can easily type mapFields xxxx
then all options will be shown in terminal
anishtain4 likes this.
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   February 20, 2013, 05:12
Default
  #3
New Member
 
Join Date: Feb 2013
Posts: 17
Rep Power: 13
Werne is on a distinguished road
I already tried mapping from different time folders, but that doesn't help either.
And the consistent option shouldn't work for my case, as my meshs are not consistent, if I understand it correctly.
The bigger mesh has no common boundary with the smaller mesh. It exceeds the size of the smaller mesh in all directions.

edit:
After I've changed the geometry because of an error, I have a new problem: mapFields gets stuck at this point:
Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  1.7.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 1.7.x-d08d3c27ccda
Exec   : mapFields ../source_case/
Date   : Feb 20 2013
Time   : 17:35:11
Host   : ocean03
PID    : 2237
Case   : /home/werne/OpenFOAM1.7.x/werne-1.7.x/run/Project/target_case                                                                                                                                                            
nProcs : 1                                                                                                                                                                                                                 
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).                                                                                                                                                         
 
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //                                                                                                                                            
Source: "../source_case" ""                                                                                                                                                                                          
Target: "/home/werne/OpenFOAM1.7.x/werne-1.7.x/run/Project" "target_case"                                                                                                                                                         
 
Create databases as time                                                                                                                                                                                                   
 
Source time: 0                                                                                                                                                                                                             
Target time: 0                                                                                                                                                                                                             
Create meshes                                                                                                                                                                                                              
 
Source mesh size: 3585480       Target mesh size: 230809
It is stuck at this point for about 2 hours already, but it still uses RAM and CPU. As before I used an empty mapFieldsDict and several modifications. Neither gets further than this point.

Last edited by Werne; February 20, 2013 at 12:48.
Werne is offline   Reply With Quote

Old   February 20, 2013, 16:57
Default
  #4
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18
anishtain4 is on a distinguished road
Have you had used any utility like Mach? when you use the mapFields it tries to map all the fields in the source to the fields in the target, this means you should have similar fields and no additional in anyone.
Though I had the same problem but -consistent solved my case
anishtain4 is offline   Reply With Quote

Old   February 21, 2013, 04:40
Default
  #5
New Member
 
Join Date: Feb 2013
Posts: 17
Rep Power: 13
Werne is on a distinguished road
No, I've not used any other utility. And I have the same fields in the source and in the target case.
And -consistent won't work for me, as my cases are not consisten. It always fails as I have only 3 boundries in my source case but 9 in my target case.
Werne is offline   Reply With Quote

Old   February 23, 2013, 13:39
Default
  #6
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18
anishtain4 is on a distinguished road
Your case is strange, I can't think of a specific reason but only guessing and throwing some solutions.
what are your initial conditions for the target case? try testing them as uniform
anishtain4 is offline   Reply With Quote

Old   July 30, 2016, 13:45
Default
  #7
New Member
 
K.H
Join Date: Feb 2016
Posts: 15
Rep Power: 10
urion is on a distinguished road
Did you find a Solution to your problem. I have a similar Problem using mapfields between two cases with different number of patches/boundarys while the geometry is the same?
Would be thankfull for any replies
urion is offline   Reply With Quote

Reply


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
Issues with mapFields BlackBoatNavArch OpenFOAM Pre-Processing 38 May 28, 2021 17:29
mapFields RalphS OpenFOAM 5 January 18, 2011 06:02
mapFields between inconsistent meshes nikwin OpenFOAM Pre-Processing 7 July 30, 2009 05:35
Old OpenFOAM Users, Read This if you Want to Change Username pete Site Help, Feedback & Discussions 0 March 16, 2009 05:29
FoamXException by change in controlDict vladimir OpenFOAM Pre-Processing 2 March 14, 2007 15:32


All times are GMT -4. The time now is 13:06.