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

mapFields for 3D

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

Like Tree2Likes
  • 2 Post By olivierG

Reply
 
LinkBack Thread Tools Display Modes
Old   July 15, 2014, 11:49
Default mapFields for 3D
  #1
New Member
 
Praveen Srikanth
Join Date: Jul 2012
Location: West Lafayette, IN
Posts: 23
Rep Power: 7
praveensrikanth91 is on a distinguished road
Hey,

I am trying to use mapFields on a cylindrical capillary mesh to transfer fields from a coarse mesh to a finer mesh. My solver is interFoam. mapFields runs to completion when I just use the command mapFields with an empty mapFieldsDict file but when I start the solver I get the following error

Code:
--> FOAM FATAL ERROR: 

    valueInternalCoeffs cannot be called for a calculatedFvPatchField
    on patch INLET1 of field alpha.water in file "/var/scratch/psrikant/c120_v4_0_flush_450000/1/alpha.water"
    You are probably trying to solve for a field with a default boundary condition.

    From function calculatedFvPatchField<Type>::valueInternalCoeffs(const tmp<scalarField>&) const
    in file /home/roger/a/psrikant/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude/calculatedFvPatchField.C at line 154.

FOAM exiting
On checking the alpha.water file I found that for all the boundary fields the alpha condition is set as calculated uniform 0.

When I run mapFields with the -consistent option as the geometry is the same I get the following error


Code:
--> FOAM FATAL ERROR:
Not Implemented
    Trying to construct an genericFvPatchField on patch INLET2 of field meshToMesh:interpolate(alpha.water)

    From function genericFvPatchField<Type>::genericFvPatchField(const fvPatch& p, const DimensionedField<Type, volMesh>& iF)
    in file genericFvPatchField/genericFvPatchField.C at line 44.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) in "/home/psrikant/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1  Foam::error::abort() in "/home/psrikant/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2  Foam::genericFvPatchField<double>::genericFvPatchField(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&) in "/home/psrikant/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/libgenericPatchFields.so"
#3  Foam::fvPatchField<double>::addpatchConstructorToTable<Foam::genericFvPatchField<double> >::New(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&) in "/home/psrikant/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/libgenericPatchFields.so"
#4  Foam::fvPatchField<double>::New(Foam::word const&, Foam::word const&, Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&) in "/home/psrikant/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/bin/mapFields"
#5
 in "/home/psrikant/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/bin/mapFields"
#6
 in "/home/psrikant/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/bin/mapFields"
#7
 in "/home/psrikant/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/bin/mapFields"
#8
 in "/home/psrikant/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/bin/mapFields"
#9
 in "/home/psrikant/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/bin/mapFields"
#10
 in "/home/psrikant/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/bin/mapFields"
#11
 in "/home/psrikant/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/bin/mapFields"
#12  __libc_start_main in "/lib64/libc.so.6"
#13
 in "/home/psrikant/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/bin/mapFields"
Aborted (core dumped)
This error shows up while it is interpolating the alpha.water field. I also tried specifying the boundaries in the mapFieldsDict file and I get the same error.

Please help me out here. Thank you very much in advance.
praveensrikanth91 is offline   Reply With Quote

Old   July 15, 2014, 15:38
Default
  #2
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 266
Rep Power: 11
olivierG is on a distinguished road
hello,

Seems that there is some bug with mapFields in OF 2.3 (mapFields has been rewriten in this version).
Don't be lazy like me, and try to make a bug report on the tracker.
Anyway, actually i am using mapField from OF 2.2, and all other tools/solver with 2.3.

regards,
olivier
olivierG is offline   Reply With Quote

Old   July 15, 2014, 16:48
Default
  #3
New Member
 
Praveen Srikanth
Join Date: Jul 2012
Location: West Lafayette, IN
Posts: 23
Rep Power: 7
praveensrikanth91 is on a distinguished road
Hey Olivier,

Thank you very much for the reply. I had no idea there was a bug. It works fine with 2.2. Saved a ton of time for me. And yes I will try to make a bug report soon when I get the time.

Thanks again

Best,
Praveen
praveensrikanth91 is offline   Reply With Quote

Old   February 17, 2015, 06:23
Default mapField from 2.2 on Ubuntu 14.04?
  #4
New Member
 
Tristan Clarenc
Join Date: Apr 2011
Posts: 1
Rep Power: 0
tristan.clarenc is on a distinguished road
Hi guys,
Did you already try this option along with Ubuntu 14?
I'm not able to solve with the dependencies issues when trying to compile 2.2 on latest UBUNTU LTS.
If any idea, you're welcome!
Tristan
tristan.clarenc is offline   Reply With Quote

Reply

Tags
interfoam, mapfields, openfoam 2.3

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
implementation of mapFields into parallel transient case simpomann OpenFOAM Pre-Processing 4 August 2, 2016 04:41
Issues with mapFields BlackBoatNavArch OpenFOAM Pre-Processing 32 February 5, 2016 00:26
The -parallel parameter of mapFields utility in OpenFOAM v2.3.0 shuoxue OpenFOAM Pre-Processing 1 April 28, 2014 05:59
Zero Pressure with mapFields ignacio OpenFOAM Running, Solving & CFD 0 May 24, 2013 09:43
mapFields problem martyn88 OpenFOAM 1 November 8, 2012 14:42


All times are GMT -4. The time now is 05:08.