CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

cyclicAMI

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 20, 2017, 10:48
Default cyclicAMI
  #1
New Member
 
JUan Garcia
Join Date: Feb 2017
Posts: 11
Rep Power: 9
rvilum is on a distinguished road
When using 'moveDynamicMesh -checkAMI', I found the next problem:

Calculating AMI weights between owner patch: AMI1 and neighbour patch: AMI2
AMI: Creating addressing and weights between 46919 source faces and 47636 target faces


--> FOAM FATAL ERROR:
Unable to set source and target faces

From function void Foam::faceAreaWeightAMI<SourcePatch, TargetPatch>::setNextFaces(Foam::label&, Foam::label&, Foam::label&, const boolList&, Foam::labelList&, const Foam:ynamicList<int>&, bool) const [with SourcePatch = Foam::PrimitivePatch<Foam::face, Foam::SubList, const Foam::Field<Foam::Vector<double> >&>; TargetPatch = Foam::PrimitivePatch<Foam::face, Foam::SubList, const Foam::Field<Foam::Vector<double> >&>; Foam::label = int; Foam::boolList = Foam::List<bool>; Foam::labelList = Foam::List<int>]
in file lnInclude/faceAreaWeightAMI.C at line 287.

FOAM aborting

#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 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> > >::calcAddressing(Foam::List<Foam:ynamicList<int , 0u, 2u, 1u> >&, Foam::List<Foam:ynamicList<double, 0u, 2u, 1u> >&, Foam::List<Foam:ynamicList<int, 0u, 2u, 1u> >&, Foam::List<Foam:ynamicList<double, 0u, 2u, 1u> >&, int, int) at ??:?
#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) at ??:?
#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&) at ??:?
#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&) at ??:?
#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::fac e, 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) at ??:?
#7 Foam::cyclicAMIPolyPatch::resetAMI(Foam::AMIInterp olation<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 at ??:?
#8 Foam::cyclicAMIPolyPatch::AMI() const at ??:?
#9 ? at ??:?
#10 ? at ??:?
#11 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#12 ? at ??:?


Somebody knows why?

Thanks a lot
rvilum is offline   Reply With Quote

Old   May 12, 2017, 10:44
Default
  #2
New Member
 
Join Date: Mar 2016
Posts: 17
Rep Power: 10
dupeng is on a distinguished road
Hello Rvilum,
Have you solved this problem? I intend to simulate a rotational propeller. I made the static and rotational mesh separately and then merged together. Cell zones for the rotational part is also created. But When I used movedynamimesh -checkAMI command, this error shows up. The message is similar with yours as the following. How did you solve the problem? Thanks



// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Selecting dynamicFvMesh solidBodyMotionFvMesh
Selecting solid-body motion function rotatingMotion
Applying solid body motion to cellZone region0
Writing VTK files with weights of AMI patches.

forces forces:
Not including porosity effects

Time = 0.001
solidBodyMotionFunctions::rotatingMotion::transfor mation(): Time = 0.001 transformation: ((-7.65989679097365e-05 -0.0123718033951339 -0.000361315886366675) (0.999554671044406 (0.0291917815378812 0 -0.00618865768603081)))
--> FOAM Warning :
From function solidBodyMotionFvMesh::update()
in file solidBodyMotionFvMesh/solidBodyMotionFvMesh.C at line 237
Did not find volVectorField U Not updating Uboundary conditions.
solidBodyMotionFunctions::rotatingMotion::transfor mation(): Time = 0.001 transformation: ((-7.65989679097365e-05 -0.0123718033951339 -0.000361315886366675) (0.999554671044406 (0.0291917815378812 0 -0.00618865768603081)))
Point usage OK.
Upper triangular ordering OK.
Topological cell zip-up check OK.
Face vertices OK.
<<Number of duplicate (not baffle) faces found: 8. This might indicate a problem.
<<Number of faces with non-consecutive shared points: 12. This might indicate a problem.
Mesh topology OK.
Boundary openness (4.55149570188063e-17 1.68228195227532e-16 -4.07866813090012e-16) OK.
Max cell openness = 7.79650890720028e-16 OK.
Max aspect ratio = 57.7159210203143 OK.
Minimum face area = 1.47864610164646e-09. Maximum face area = 0.821492952870123. Face area magnitudes OK.
Min volume = 7.07466805571213e-13. Max volume = 0.167727098125986. Total volume = 2219.84335159937. Cell volumes OK.
Mesh non-orthogonality Max: 64.9999413605067 average: 8.21859506319915
Non-orthogonality check OK.
Face pyramids OK.
Max skewness = 3.99991817396795 OK.
Mesh geometry OK.
Mesh OK.
Calculating AMI weights between owner patch: AMI1 and neighbour patch: AMI2
AMI: Creating addressing and weights between 247847 source faces and 400199 target faces


--> FOAM FATAL ERROR:
Unable to set source and target faces

From function void Foam::faceAreaWeightAMI<SourcePatch, TargetPatch>::setNextFaces(label&, label&, label&, const boolList&, labelList&, const DynamicList<label>&, bool) const
in file lnInclude/faceAreaWeightAMI.C at line 300.

FOAM aborting

#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 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> > >::calcAddressing(Foam::List<Foam:ynamicList<int , 0u, 2u, 1u> >&, Foam::List<Foam:ynamicList<double, 0u, 2u, 1u> >&, Foam::List<Foam:ynamicList<int, 0u, 2u, 1u> >&, Foam::List<Foam:ynamicList<double, 0u, 2u, 1u> >&, int, int) at ??:?
#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) at ??:?
#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&) at ??:?
#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&) at ??:?
#6 Foam::cyclicAMIPolyPatch::resetAMI(Foam::AMIInterp olation<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 at ??:?
#7 Foam::cyclicAMIPolyPatch::AMI() const at ??:?
#8 ? at ??:?
#9 ? at ??:?
#10 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#11 ? at ??:?
Aborted (core dumped)
//************************************************** ********************
dupeng is offline   Reply With Quote

Old   May 12, 2017, 18:08
Default
  #3
New Member
 
Join Date: Mar 2016
Posts: 17
Rep Power: 10
dupeng is on a distinguished road
Never mind Rvilum,
I just found that the wrong setting of the rotating origin and axis in the dynamicMeshDict would cause this problem. Hope this information helps for others. Thanks.
dupeng is offline   Reply With Quote

Old   July 16, 2017, 06:01
Default Hi Dupeng
  #4
New Member
 
Join Date: Jul 2017
Posts: 6
Rep Power: 9
drinkWater is on a distinguished road
I have got a same problem like yours. I just want to use the cyclicAMI B.C to preform like interface B.C in the fluent. and there is no moving mesh, just two parts. I create the mesh using ICEM, simulate using pisoFoam solver. but the error below:
ps:Could you help me please? I have been confused by this problem almost one week.

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

8
(
SUSPENDER
{
type wall;
inGroups 1(wall);
nFaces 552;
startFace 255268;
}
IN_INTERFACE
{
type cyclicAMI;
inGroups 1(cyclicAMI);
nFaces 552;
startFace 255820;
matchTolerance 0.002;
transform noOrdering;
neighbourPatch OUT_INTERFACE;
}
OUT_INTERFACE
{
type cyclicAMI;
inGroups 1(cyclicAMI);
nFaces 556;
startFace 256372;
matchTolerance 0.002;
transform noOrdering;
neighbourPatch IN_INTERFACE;
}
INLET
{
type patch;
nFaces 139;
startFace 256928;
}
OUTLET
{
type patch;
nFaces 139;
startFace 257067;
}
UP
{
type symmetry;
inGroups 1(wall);
nFaces 155;
startFace 257206;
}
DOWN
{
type symmetry;
inGroups 1(wall);
nFaces 155;
startFace 257361;
}
frontAndBackPlanes
{
type empty;
inGroups 1(empty);
nFaces 256392;
startFace 257516;
}
)

// ************************************************** *********************** //
drinkWater is offline   Reply With Quote

Old   July 16, 2017, 06:32
Default
  #5
New Member
 
Join Date: Mar 2016
Posts: 17
Rep Power: 10
dupeng is on a distinguished road
Hi,
I don't quite understand your question. You said you want to use cyclicAMI bc and your mesh doesn't move. Do you mean SRF or MRF simulation? If so, you can check this link:

https://www.slideshare.net/fumiyanoz...using-openfoam

there are also many other tutorials you can find on the internet. But first check if pisoFoam has this function, or you can change the code by yourself.
dupeng is offline   Reply With Quote

Old   July 16, 2017, 06:39
Default
  #6
New Member
 
Join Date: Jul 2017
Posts: 6
Rep Power: 9
drinkWater is on a distinguished road
Thank you so much for your reply. i really don't understand SRF or MRF because i never use it. so Could you tell me your email? So that i could send my CASE files to you. the mesh was created by ICEM software, So i edit the boundary file to change the patch to cyclicAMI.
drinkWater is offline   Reply With Quote

Reply


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
Time step continuity error lpz_michele OpenFOAM Running, Solving & CFD 0 October 12, 2015 07:05
cyclicAMI ... but only sometimes! chris_j_meyer OpenFOAM Running, Solving & CFD 1 April 16, 2015 04:40
Boundary Layer strange result fernexda OpenFOAM Running, Solving & CFD 14 January 15, 2015 08:21
problem with cyclicAMI and wall distance Maff OpenFOAM Bugs 5 August 14, 2014 15:41
CyclicAMI Boundary Condition CUBoulderPhDStudent OpenFOAM Running, Solving & CFD 0 May 21, 2014 19:34


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