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

InterDyMFoam with rotating reference frame

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 1, 2012, 09:28
Question InterDyMFoam with rotating reference frame
  #1
New Member
 
Francesco
Join Date: Jan 2011
Posts: 4
Rep Power: 15
frank79 is on a distinguished road
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;
        }

// ************************************************************************* //
Now I want to place my computational domain in a non inertial reference frame (i.e. rotation around z axis) keeping the dynamic mesh refinement due to the interface position.

Do you know how I can manage this issue?

Thanks in advance

Francesco
frank79 is offline   Reply With Quote

Old   March 2, 2012, 11:25
Default new code
  #2
New Member
 
Francesco
Join Date: Jan 2011
Posts: 4
Rep Power: 15
frank79 is on a distinguished road
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
frank79 is offline   Reply With Quote

Old   July 2, 2012, 05:41
Default
  #3
Senior Member
 
Albrecht vBoetticher
Join Date: Aug 2010
Location: Zürich, Swizerland
Posts: 237
Rep Power: 16
vonboett is on a distinguished road
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
vonboett is offline   Reply With Quote

Reply

Tags
dynamic mesh, interface position, multiphase flow, reference frame


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
Second Derivative Zero - Boundary Condition fu-ki-pa OpenFOAM 11 March 27, 2021 04:28
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 12:38
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 00:35
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
G95 + CGNS Bruno Main CFD Forum 1 January 30, 2007 00:34


All times are GMT -4. The time now is 00:23.