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

The number of points in the mesh seems to have changed

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 29, 2018, 21:55
Default The number of points in the mesh seems to have changed
  #1
New Member
 
Motiur Rahman
Join Date: Jul 2018
Posts: 3
Rep Power: 7
Motiur is on a distinguished road
I run a case which have dynamic motion and AMR. I merged two libraries (motion lib and refinement llib) in Foam Extend 3.0. My case is stopped at 2nd iteration. After looking into the run file, it seems that both motion and refinement works. I got a error like -

" --> FOAM FATAL ERROR:

The number of points in the mesh seems to have changed.

In constant/polyMesh there are 402132 points; in the current mesh there are 497416 points.


From function sixDoFRigidBodyMotionSolver::curPoints() const

in file sixDoFRigidBodyMotionSolver/sixDoFRigidBodyMotionSolver.C at line 177.


FOAM exiting'


I think, the error comes due to mesh refinement. After each refinement it didn't overwrite the polyMesh file.



My question is, how can I overwrite polyMesh file in each iteration? If I need to recompile sixDoFRigidBodyMotionSolver.C , How I need to edit it?







FoamFile
{
version 2.0;
format ascii;
class dictionary;
object dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dynamicFvMesh dynamicMotionSolverRefineFvMesh;

motionSolverLibs ("libsixDoFRigidBodyMotion.so");

solver sixDoFRigidBodyMotion;

sixDoFRigidBodyMotionCoeffs
{
patches (obstacle);
innerDistance 1.1;
outerDistance 1.3;

centreOfMass (0 0 0);
mass 2091.88;
momentOfInertia (1673.5 1673.5 1673.5);
rhoInf 1;
report on;

value uniform (0 0 0);

accelerationRelaxation 0.4;

solver
{
type Newmark;
}

constraints
{
zAxis
{
sixDoFRigidBodyMotionConstraint line;
direction (0 0 1);
}
yPlane
{
sixDoFRigidBodyMotionConstraint axis;
axis (0 1 0);
}
}

restraints
{
translationDamper
{
sixDoFRigidBodyMotionRestraint linearDamper;
coeff 8596;
}
rotationDamper
{
sixDoFRigidBodyMotionRestraint sphericalAngularDamper;
coeff 11586;
}
}
}
dynamicMotionSolverRefineFvMeshCoeffs
{
// How often to refine
refineInterval 1;
// Field to be refinement on
field alpha.water;
// Refine field inbetween lower..upper
lowerRefineLevel 0.01;
upperRefineLevel 0.99;
// If value < unrefineLevel unrefine
unrefineLevel 10;
// Have slower than 2:1 refinement
nBufferLayers 1;
// Refine cells only up to maxRefinement levels
maxRefinement 2;
// Stop refinement if maxCells reached
maxCells 35000000;
correctFluxes
(
(rhoPhi none)
(nHatf none)
(alphaPhi none)
(ghf none)
(phi U)
(phi_0 U_0)
(rhorUf phi)
(faceDiffusivity none)
(meshPhi none)
(weights none)
);
dumpLevel true;
}
Motiur is offline   Reply With Quote

Old   September 26, 2021, 03:11
Default Reply to Motiur
  #2
New Member
 
Trey
Join Date: Sep 2021
Posts: 1
Rep Power: 0
Trey is on a distinguished road
Hi, Motiur. Have you solved this problem? I have a similar problem recently.
If you can offer some pointers, I will be very grateful.
Trey is offline   Reply With Quote

Reply

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
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops avinashjagdale OpenFOAM Meshing & Mesh Conversion 53 March 8, 2019 09:42
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 08:54
Cluster ID's not contiguous in compute-nodes domain. ??? Shogan FLUENT 1 May 28, 2014 15:03
[snappyHexMesh] Layers:problem with curvature giulio.topazio OpenFOAM Meshing & Mesh Conversion 10 August 22, 2012 09:03
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55


All times are GMT -4. The time now is 13:30.