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

Implementation of rotating walls with the interFoam solver

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 28, 2024, 08:01
Default Implementation of rotating walls with the interFoam solver
  #1
New Member
 
Join Date: Jul 2024
Posts: 16
Rep Power: 2
dachs is on a distinguished road
Hi Foamers,


I have the following Problem, i want to simulate the oil flow through a pipe, where the fluid come in contact with three rotating clyinders. I use the interFoam Solver. My BC for each rotating surface is:

Code:
0/U


roller
    {
    type            rotatingWallVelocity;        
    origin          (0 -0.0832 0);         
    axis            (0 0 1);
    omega           -98;         
    }





0/p_rgh


roller
        {
        type            fixedFluxPressure;
        value           uniform 0;
     }




0/nut


roller
        {
        type            nutkWallFunction;
    value        uniform 0;
     }




0/k


roller
    {
    type            kqRWallFunction;
    value        uniform 0;
     }


0/epsilon


roller
    {
    type            epsilonWallFunction;
    value           $internalField;
    }




0/alpha.oil
roller
    {
    type            zeroGradient;
    }

running this code will lead to the error Message:


Code:
--> FOAM FATAL ERROR:
Continuity error cannot be removed by adjusting the outflow.
Please check the velocity boundary conditions and/or run potentialFoam to initialise the outflow.
Total flux              : 2.22507e-308
Specified mass inflow   : 3.98506e-18
Specified mass outflow  : 4.06142e-18
Adjustable mass outflow : 0

Can anyone tell me what is wrong with my BC? All the other walls that are displayed are defined as walls and not as patches.


Mesh.jpgPhases.png
dachs is offline   Reply With Quote

Old   September 3, 2024, 05:44
Default
  #2
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 646
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi,

It seems like you have no inlets or outlets and the solver therefore does not know a reference pressure to set.

You probably need to define a pRefCell or pRefPoint with a pRefValue in your fvSolution file (in the PIMPLE subDict). An example may be found in $FOAM_TUTORIALS/multiphase/interFoam/laminar/sloshingTank2D, copied here:

Code:
PIMPLE
{
    momentumPredictor no;
    nCorrectors     2;
    nNonOrthogonalCorrectors 0;
    correctPhi      no;
    pRefPoint       (0 0 0.15);
    pRefValue       1e5;
}
Good luck,
Tom
tomf is offline   Reply With Quote

Reply

Tags
interfoam solver, rotatingwallvelocity


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
Error SIGSEGV using VOF and UDF JERC_UTFSM Fluent UDF and Scheme Programming 14 November 7, 2021 23:17
interFoam solver error askarli OpenFOAM Running, Solving & CFD 0 July 13, 2021 02:33
Question about interFoam Solver Kahnbein.Kai OpenFOAM Running, Solving & CFD 2 August 26, 2019 15:36
Car external aerodynamic with wheel spinning issue hokhay FloEFD, FloWorks & FloTHERM 2 August 18, 2016 04:23
thobois class engineTopoChangerMesh error Peter_600 OpenFOAM 4 August 2, 2014 09:52


All times are GMT -4. The time now is 15:17.