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

How to Add AMR @ MPPICInterFoam ??

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 7, 2022, 16:03
Default How to Add AMR @ MPPICInterFoam ??
  #1
New Member
 
asfik
Join Date: Dec 2016
Posts: 1
Rep Power: 0
asfik is on a distinguished road
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
asfik 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
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


All times are GMT -4. The time now is 06:28.