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

Continuing a parallel job with dnamic mesh and topoSet

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 25, 2019, 04:54
Default Continuing a parallel job with dnamic mesh and topoSet
  #1
Member
 
Hüseyin Can Önel
Join Date: Sep 2018
Location: Ankara, Turkey
Posts: 47
Rep Power: 8
hconel is on a distinguished road
Hello,

I'm running a case with dynamic mesh and topoSet. The solver I'm using is pimpleDyMFoam. The mesh gets refined as I expect during the run, but the problem is, when I try to continue the job from the latestTime, I run into problems. I get the following error in log.pimpleDyMFoam:

Code:
[4] 
[4] 
[4] --> FOAM FATAL ERROR: 
[4] Cannot find directory "polyMesh/sets" in times 173.612294099971336 down to 173.612294099971336
[4] 
[4]     From function Foam::word Foam::Time::findInstance(const Foam::fileName&, const Foam::word&, Foam::IOobject::readOption, const Foam::word&) const
[4]     in file db/Time/findInstance.C at line 175.
[4]
This error is raised for all processes which are supposed to include the set of cells defined by topoSet.

To overcome this, I have run topoSet in parallel before running pimpleDyMFoam to create the sets directory in time directories, but this time, I get the following error:

Code:
    Reading/initialising field UMean
[62] 
[62] 
[62] --> FOAM FATAL IO ERROR: 
[62] size 541 is not equal to the given value of 538
[62] 
[62] file: /cfd/honel/OpenFOAM/honel-5.x/c.adapt/processor62/173.612294099971336/UMean.boundaryField.procBoundary62to61 from line 91 to line 92.
[62] 
[62]     From function Foam::Field<Type>::Field(const Foam::word&, const Foam::dictionary&, Foam::label) [with Type = Foam::Vector<double>; Foam::label = long int]
[62]     in file /cfd/honel/OpenFOAM/OpenFOAM-5.x/src/OpenFOAM/lnInclude/Field.C at line 302.
[62] 
FOAM parallel run exiting
[62]
Now, I can not reconstruct the mesh and continue from there, because dynamicMesh tool uses the base mesh to determine refinement levels, and my current mesh is already refined. There should be a way to overcome this problem, but I could not find.

My constant/dynamicMeshDict is as follows:

Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dynamicFvMesh   dynamicRefineFvMesh;

// How often to refine
refineInterval  4;

// Field to be refinement on
field           nut;//refineHere;

// Refine field inbetween lower..upper
lowerRefineLevel 0.200;
upperRefineLevel 0.999;

// If value < unrefineLevel unrefine
unrefineLevel   0.05;

// Have slower than 2:1 refinement
nBufferLayers   1;

// Refine cells only up to maxRefinement levels
maxRefinement   2;

// Stop refinement if maxCells reached
maxCells        2000000;

// Flux field and corresponding velocity field. Fluxes on changed
// faces get recalculated by interpolating the velocity. Use 'none'
// on surfaceScalarFields that do not need to be reinterpolated.
correctFluxes
(
    //(phi none)
    //(nHatf none)
    //(rhoPhi none)
    //(alphaPhi none)
    //(ghf none)
);

// Write the refinement level as a volScalarField
dumpLevel       true;
hconel 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
Possible to create cyliner baffle (internal) using topoSet or stl Mesh? keepfit OpenFOAM 4 February 19, 2017 15:40
Running parallel case after parallel meshing with snappyHexMesh? Adam Persson OpenFOAM Running, Solving & CFD 0 August 31, 2015 23:04
[mesh manipulation] multiple calls to refineMesh parallel w/ dict failing Regis_ OpenFOAM Meshing & Mesh Conversion 2 June 4, 2015 14:44
[mesh manipulation] Cannot get refineMesh to run in parallel smschnob OpenFOAM Meshing & Mesh Conversion 2 June 3, 2014 12:20
[Other] topoSet removes some of my cell mesh adambarfi OpenFOAM Meshing & Mesh Conversion 1 March 27, 2014 06:24


All times are GMT -4. The time now is 01:25.