vcvedant |
August 29, 2017 19:04 |
simpleFooUnable to find initial target face
Hello,
I am simulating flow past an airfoil in OpenFOAM. I have created the mesh in Pointwise and then exported it as CAE from Pointwise. I have the following boundary conditions:
INLET -> fixedValue
OUTLET -> zeroGradient;
Periodic_1 -> cyclicAMI, neighbourPatch Periodic_2;
Periodic_2 -> cyclicAMI , neighbourPatch Periodic_1;
frontAndBack -> Empty;
CS -> wall;
I checked the mesh using checkMesh and found it to be OK.
But when I run the simulation using
I get the following error: unable to find initial target face
Code:
Create time
Create mesh for time = 0
Reading field p
Reading field U
Reading/calculating face flux field phi
AMI: Creating addressing and weights between 453 source faces and 387 target faces
--> FOAM Warning :
From function AMIMethod<SourcePatch, TargetPatch>::checkPatches()
in file lnInclude/AMIMethod.C at line 57
Source and target patch bounding boxes are not similar
source box span : (1.552 0.796554 0.0388)
target box span : (1.552 0.796554 0.0388)
source box : (-0.430502 -0.0584186 0) (1.1215 0.738135 0.0388)
target box : (-0.430502 -0.515211 0) (1.1215 0.281343 0.0388)
inflated target box : (-0.517747 -0.602456 -0.0872454) (1.20874 0.368588 0.126045)
--> FOAM FATAL ERROR:
Unable to find initial target face
From function void Foam::AMIMethod<SourcePatch, TargetPatch>::initialise(labelListList&, scalarListList&, labelListList&, scalarListList&, label&, label&)
in file lnInclude/AMIMethod.C at line 149.
FOAM aborting
#0 Foam::error::printStack(Foam::Ostream&) in "/gpfs/home/vjc5126/work//OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1 Foam::error::abort() in "/gpfs/home/vjc5126/work//OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2 Foam::AMIMethod<Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> >, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > >::initialise(Foam::List<Foam::List<int> >&, Foam::List<Foam::List<double> >&, Foam::List<Foam::List<int> >&, Foam::List<Foam::List<double> >&, int&, int&) in "/gpfs/home/vjc5126/work//OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/libmeshTools.so"
#3 Foam::faceAreaWeightAMI<Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> >, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > >::calculate(Foam::List<Foam::List<int> >&, Foam::List<Foam::List<double> >&, Foam::List<Foam::List<int> >&, Foam::List<Foam::List<double> >&, int, int) in "/gpfs/home/vjc5126/work//OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/libmeshTools.so"
#4 Foam::AMIInterpolation<Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> >, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > >::update(Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&) in "/gpfs/home/vjc5126/work//OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/libmeshTools.so"
#5 Foam::AMIInterpolation<Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> >, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > >::constructFromSurface(Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, Foam::autoPtr<Foam::searchableSurface> const&) in "/gpfs/home/vjc5126/work//OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/libmeshTools.so"
#6 Foam::AMIInterpolation<Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> >, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > >::AMIInterpolation(Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, Foam::autoPtr<Foam::searchableSurface> const&, Foam::faceAreaIntersect::triangulationMode const&, bool, Foam::AMIInterpolation<Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> >, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > >::interpolationMethod const&, double, bool) in "/gpfs/home/vjc5126/work//OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/libmeshTools.so"
#7 Foam::cyclicAMIPolyPatch::resetAMI(Foam::AMIInterpolation<Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> >, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > >::interpolationMethod const&) const in "/gpfs/home/vjc5126/work//OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/libmeshTools.so"
#8 Foam::cyclicAMIPolyPatch::AMI() const in "/gpfs/home/vjc5126/work//OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/libmeshTools.so"
#9 Foam::cyclicAMIPolyPatch::applyLowWeightCorrection() const in "/gpfs/home/vjc5126/work//OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/libmeshTools.so"
#10 Foam::cyclicAMIFvPatch::makeWeights(Foam::Field<double>&) const in "/gpfs/home/vjc5126/work//OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#11 Foam::surfaceInterpolation::makeWeights() const in "/gpfs/home/vjc5126/work//OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#12 Foam::surfaceInterpolation::weights() const in "/gpfs/home/vjc5126/work//OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#13 Foam::tmp<Foam::GeometricField<Foam::Vector<double>, Foam::fvsPatchField, Foam::surfaceMesh> > Foam::linearInterpolate<Foam::Vector<double> >(Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&) in "/gpfs/home/vjc5126/work/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/bin/simpleFoam"
#14 ? in "/gpfs/home/vjc5126/work/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/bin/simpleFoam"
#15 __libc_start_main in "/lib64/libc.so.6"
#16 ? in "/gpfs/home/vjc5126/work/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/bin/simpleFoam"
Aborted (core dumped)
I think it has to do something with cyclicAMI but I cannot understand what is the problem. I am attaching my case folder. I will be really grateful if somebody can help me resolve this.
Here is the link to the case: case
Thanks,
Vedant
Update: I re-checked the geometry and the periodic BCs have the same area and shape
|