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

FOAM FATAL ERROR: mesh flux field does not exist, is the mesh actually moving?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 29, 2022, 14:42
Default FOAM FATAL ERROR: mesh flux field does not exist, is the mesh actually moving?
  #1
New Member
 
Join Date: Jun 2022
Posts: 10
Rep Power: 4
AbhishekTAMU is on a distinguished road
FOAM FATAL ERROR:
mesh flux field does not exist, is the mesh actually moving?
From function const Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> &Foam::fvMesh:: phi() const
in file fvMesh/fvMeshGeometry.C at line 429.


I am trying to refine mesh based on alpha.ndodecane (fuel in diesel engine) by using dynamicRefinefvMesh class and the solver used is 'interPhaseChangeDyMFoam'. But I am gettting above mentioned error every time, I run the simulation.

I am also posting the 'dynamicMeshDict' file that I have written for this simulation.

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dynamicFvMesh dynamicRefineFvMesh;


// Refinement
dynamicRefineFvMeshCoeffs
{
// Refine every refineInterval timesteps
refineInterval 5;

// Maximum refinement level (starts from 0)
maxRefinement 4;
unrefineLevel 10;
nBufferLayers 1;

// Maximum cell limit (approximate)
maxCells 500000000;

// volScalarField to base refinement on
field alpha.ndodecane;


// Which cells to un/refine: based on point values (simple averaging).
// - refine pointCells of point value inbetween minLevel..maxLevel
// - unrefine pointCells that are within nBufferLayers of points marked
// for refinement.
//minLevel 0.0;
//maxLevel 0.8762;
lowerRefineLevel 0.001;
upperRefineLevel 0.999;



// Fluxes to adapt. For newly created faces or split flux
// gets estimated from an interpolated volVectorField ('velocity')
// First is name of the flux to adapt, second is velocity that will
// be interpolated and inner-producted with the face area vector.
correctFluxes
(
(phi U)
(nHatf none)
(rhoPhi none)
(ghf none)
);

// Write the refinement level as a volScalarField
dumpLevel true;
}



// ************************************************** *********************** //

Can anyone help me know the reason of this error and if the inputs in 'dynamicMeshDict' are correct or not.

Last edited by AbhishekTAMU; June 29, 2022 at 18:18.
AbhishekTAMU 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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
[swak4Foam] swak4foam openfoam 7 installation problem Andrea23 OpenFOAM Community Contributions 1 February 17, 2020 19:11
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


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