|
[Sponsors] |
November 7, 2022, 16:03 |
How to Add AMR @ MPPICInterFoam ??
|
#1 |
New Member
asfik
Join Date: Dec 2016
Posts: 1
Rep Power: 0 |
Dear All,
I would like to add dynamic mesh refinement with MPPICInterFoam Solver(v2206) and did the following task: a. Modified the .C file according to InterFoam/InterDyMFoam b. Added dynamicRefine2DFvMesh @dynamicMeshDict Solver Complied successfully, tried to simulate the dam brake 2D refinement tutorial along with dynamicRefine2DFvMesh. the solver refined the mesh for a few timesteps and then got the error which is coming from PEqn.H file of the solver. ************************************************* fvScalarMatrix p_rghEqn ( fvm::laplacian(Dp, p_rgh) == fvc::ddt(alphac) + fvc::div(alphacf*phiHbyA) ); p_rghEqn.setReference(pRefCell, getRefCellValue(p_rgh, pRefCell)); p_rghEqn.solve(mesh.solver(p_rgh.select(pimple.fin alInnerIter()))); *** Works until this stage then got singularity from following part*********** if (pimple.finalNonOrthogonalIter()) { phi = phiHbyA - p_rghEqn.flux()/alphacf; p_rgh.relax(); U = HbyA + rAUc*fvc::reconstruct((phig - p_rghEqn.flux()/alphacf)/rAUcf); U.correctBoundaryConditions(); fvOptions.correct(U); } } ************************************************** Please show me some light of hope. Thanks |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Gmsh reports an OpenCascade exception when opening a .geo file | algc | Main CFD Forum | 2 | October 24, 2022 05:59 |
How to apply AMR settings | kahjoonyong | CONVERGE | 11 | July 28, 2017 04:18 |
[snappyHexMesh] SnappyHex add layers, is it adding hex's? | Madeleine P. Vincent | OpenFOAM Meshing & Mesh Conversion | 1 | July 18, 2016 09:05 |
[PyFoam] and paraview | eelcovv | OpenFOAM Community Contributions | 28 | May 30, 2016 09:23 |
How to add fire source in STAR-CD?? | raymond | Siemens | 2 | February 22, 2002 13:49 |