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 Display Modes
Old   October 29, 2018, 22: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: 2
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

Reply

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
Error snappyhexmesh - Multiple outside loops avinashjagdale OpenFOAM Native Meshers: snappyHexMesh and Others 52 November 12, 2018 17:16
SnappyHexMesh for internal Flow vishwa OpenFOAM Native Meshers: snappyHexMesh and Others 24 June 27, 2016 09:54
Cluster ID's not contiguous in compute-nodes domain. ??? Shogan FLUENT 1 May 28, 2014 16:03
Layers:problem with curvature giulio.topazio OpenFOAM Native Meshers: snappyHexMesh and Others 10 August 22, 2012 10:03
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


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