CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Pre-Processing

mapFields error

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   August 8, 2014, 04:54
Question mapFields error
New Member
Bla× Miku×
Join Date: Sep 2011
Location: Ljubljana
Posts: 29
Rep Power: 8
bmikuz is on a distinguished road

I'd like to map fields from first case to the second case, which has exactly the same geometry with a different boundary condition on the inlet and outlet. To be more specific, the first case has a fully hexa mesh and is using cyclic BC on the inlet&outlet whereas the second case has tetra mesh. Since in the second case the inlet and outlet mesh's faces cannot match conformaly, I've changed BC from cyclic to cyclicAMI.
Now, I'd like to map internal fields using the command:

mapFields ../firstCase/ -sourceTime latestTime

Since the cases have different BC, the consistant mapping is not possible. So, I've created mapFieldsDict and left patchMap and cuttingPatches blank in it.
What I got is the error:
Attempt to cast type cyclicAMI to type cyclic

From function refCast<To>(From&)
in file /home/r4/mikuz/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude/typeInfo.H at line 114.

FOAM aborting
I've searched the forum and didn't find solution.
Any help or suggestion would be very appreciated!
bmikuz is offline   Reply With Quote

Old   August 18, 2014, 04:25
Senior Member
Jens H÷pken
Join Date: Apr 2009
Location: Duisburg, Germany
Posts: 157
Rep Power: 10
jhoepken is on a distinguished road
Send a message via Skype™ to jhoepken
Have you tried to change the boundary condition to e.g. fixedValue, run mapFields and then change it back to the original one?
"The OpenFOAM Technology Primer":
Twitter: @sourceflux_de
Interested in courses on OpenFOAM?
jhoepken is offline   Reply With Quote


cyclic, cyclicami, mapfields

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
blockMesh with double grading. spwater OpenFOAM Native Meshers: blockMesh 86 October 20, 2016 14:01
GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM 300 October 29, 2014 19:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 2 August 30, 2013 07:42
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51

All times are GMT -4. The time now is 09:27.