|
[Sponsors] |
IcoReactingMultiphaseinterFoam - Adaptive meshing issue - CorrectPhi was not declare |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 2, 2021, 09:53 |
IcoReactingMultiphaseinterFoam-Adaptive meshing issue/CorrectPhi was not declared
|
#1 | ||
New Member
Harris Daniel S
Join Date: Oct 2017
Posts: 8
Rep Power: 9 |
Dear OpenFOAM users,
I am trying to create an adaptive meshing solver with IcoReactingMultiphaseInterFoam as a basic solver. I included the dynamics mesh portion of the code from multiphaseInterFoam solver and added all the relevant libraries in the make/options file. But the solver does not recognize "CorrectPhi" function called from "correctPhi.H" and "initCorrectPhi.H" file during compilation. Correct phi is placed in the following location /home/OpenFOAM/OpenFOAM-v1806/src/finiteVolume/lnInclude Added libraries are called using the following line in the Options file: -I$(LIB_SRC)/finiteVolume/lnInclude \ and -lfiniteVolume \ But I get CorrectPhi not declared error when I try to compile. Quote:
Couple of question: If we copy the dynamic mesh portion of the code from a incompressible solver into a compressible solver, will it cause problems associated with mass flux, phi? MultiphaseInterFoam uses mixture model and icoReactingMutiphaseInterFoam seems to use it only partially(Need clarity here), will that lead to problems when mixture object is called? Thanks and Regards, Harris. Contents of option file: Quote:
Last edited by Harris_Daniel; June 3, 2021 at 02:17. |
|||
June 2, 2021, 19:21 |
|
#2 |
Senior Member
Join Date: Aug 2015
Posts: 494
Rep Power: 15 |
For the first question, you'll note that CorrectPhi.H is included in the interMixingFoam.C file (and is missing in yours) -- this is why the compiler is complaining. As for the flux correction for compressible vs incompressible, it makes a difference. Just take a look at how CorrectPhi is used in e.g. rhoPimpleFoam vs pimpleFoam.
A quick look at code, though, and you'll see that it uses an incompressible formulation of the pressure corrector like interFoam/interMixingFoam does. So the flux correction would be the same. If you look at the dev branch, you'll even notice that dynamic mesh functionality is now included with icoReactingMultiphaseInterFoam. Caelan
__________________
Public git repository : https://github.com/clapointe2011/public |
|
June 5, 2021, 07:40 |
Dynamic Mesh IcoReactingMultiPhaseInterFoam
|
#3 |
New Member
Harris Daniel S
Join Date: Oct 2017
Posts: 8
Rep Power: 9 |
Dear OpenFOAM users,
I am using OpenFOAM-v2012. I am interested in IcoReactingMultiphaseinterFoam. I came to know that dynamic meshing is defined in the solver. But could not find code related to adaptive meshing or mesh motion in the solver. Do I need to include dynamic mesh related code into the solver? I tried using the solver for dynamic meshing unsuccessfully. Please find the dynamicMeshDict attached here. Please suggest a fix and advice appropriately. Thanks -Harris. Code:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dynamicFvMesh dynamicRefineFvMesh; dynamicRefineFvMeshCoeffs { // How often to refine refineInterval 1; // Field to base refinement on field alpha.liquid; // Refine field inbetween lower..upper lowerRefineLevel 0.00001; upperRefineLevel 0.99999; unrefinedLevel 10; // Have slower than 2:1 refinement nBufferLayers 1; // Refine cells only up to maxRefinement levels maxRefinement 2; // Stop refinement if maxCells reached maxCells 200000; // 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) (ghf none) (alphaPhi none) (alphaPhiUn none) (alphaPhi0.liquid none) ); // Write the refinement level as a volScalarField dumpLevel true; } // ************************************************************************* // |
|
June 5, 2021, 13:22 |
|
#4 |
Senior Member
Join Date: Aug 2015
Posts: 494
Rep Power: 15 |
The dynamic mesh functionality is included in the solver in the dev branch. I don't know offhand if it is included in v2012. It sounds like it is not, so you could use the dev branch solver as a reference and update the v2012 one accordingly.
Caelan
__________________
Public git repository : https://github.com/clapointe2011/public |
|
Tags |
adaptive meshing, correctphi, dynamicmesh error, multiphase mixture model, phi openfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] OpenFOAM 2.3.x on Mac OS X 10.10.1 Installation Errors | Petru | OpenFOAM Installation | 15 | December 29, 2015 13:51 |
[Gmsh] Vertex numbering is dense | KateEisenhower | OpenFOAM Meshing & Mesh Conversion | 7 | August 3, 2015 11:49 |
Meshing related issue in Flow EFD | appu | FloEFD, FloWorks & FloTHERM | 1 | May 22, 2011 09:27 |
Simple Frustrating Meshing Issue in Gambit (w/pics) | Dylan | ANSYS Meshing & Geometry | 6 | March 23, 2009 17:14 |