CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   mapFields for 3D (https://www.cfd-online.com/Forums/openfoam-pre-processing/138994-mapfields-3d.html)

praveensrikanth91 July 15, 2014 11:49

mapFields for 3D
 
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.

olivierG July 15, 2014 15:38

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

praveensrikanth91 July 15, 2014 16:48

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

tristan.clarenc February 17, 2015 05:23

mapField from 2.2 on Ubuntu 14.04?
 
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


All times are GMT -4. The time now is 21:57.