|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Francesco
Join Date: Jan 2011
Posts: 4
Rep Power: 15 ![]() |
Dear all,
I'm using InterDyMFoam to simulate a multiphase problem in which I need to refine dinamically the mesh according to the interface position as follows: Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.6 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "constant"; object dynamicMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // //dynamicFvMesh staticFvMesh; dynamicFvMesh dynamicRefineFvMesh; dynamicRefineFvMeshCoeffs { // How often to refine refineInterval 1; // Field to be refinement on field alpha1; // Refine field inbetween lower..upper lowerRefineLevel 0.001; upperRefineLevel 0.999; // If value < unrefineLevel unrefine unrefineLevel 10; // Have slower than 2:1 refinement nBufferLayers 1; // Refine cells only up to maxRefinement levels maxRefinement 2; // Stop refinement if maxCells reached maxCells 2250000; // Flux field and corresponding velocity field. Fluxes on changed // faces get recalculated by interpolating the velocity. correctFluxes ( ( phi U ) ); // Write the refinement level as a volScalarField dumpLevel true; } // ************************************************************************* // Do you know how I can manage this issue? ![]() Thanks in advance Francesco ![]() |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Francesco
Join Date: Jan 2011
Posts: 4
Rep Power: 15 ![]() |
I decided to hack the code of InterDyMFoam to add the Coriolis and the centrifugal term. At the moment I'm adding the SRFModel to the original InterDyMFoam. I'll let you know if it will work
bye |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Albrecht vBoetticher
Join Date: Aug 2010
Location: Zürich, Swizerland
Posts: 240
Rep Power: 17 ![]() |
Hi Francesco,
I model a rotating drum partially filled with liquid, including internal faces using interDyMFoam, I use the solid-body motion function rotatingMotion and apply it to a cellZone containing the whole grid. Since the simulation always crushes after mesh.update() and I am stuck, I thought maybe you could post your fvSolution and fvSchemes dict because you seeem to be more successful? Thanks, Albrecht |
|
![]() |
![]() |
![]() |
Tags |
dynamic mesh, interface position, multiphase flow, reference frame |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Second Derivative Zero - Boundary Condition | fu-ki-pa | OpenFOAM | 11 | March 27, 2021 05:28 |
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 | Attesz | OpenFOAM Installation | 45 | January 13, 2012 13:38 |
Error with Wmake | skabilan | OpenFOAM Installation | 3 | July 28, 2009 01:35 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |
G95 + CGNS | Bruno | Main CFD Forum | 1 | January 30, 2007 01:34 |