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

mapFields error

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

LinkBack Thread Tools Search this Thread 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: 14
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: 159
Rep Power: 17
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 Search this Thread
Search this Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 00:21
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 09:00
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 18:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
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 16:39.