CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

3D channel flow cyclic BC's pisoFOAM

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 6, 2024, 08:33
Default 3D channel flow cyclic BC's pisoFOAM
  #1
New Member
 
Sjors Kremer
Join Date: Jun 2024
Posts: 1
Rep Power: 0
sjorskremer is on a distinguished road
Hi,
Anybody that can help me out with the following problem?

I want to simulate turbulence in a 3D channel (steady flow).
The similationtype is RAS and the RASModel is LienCubucKE (nonlinear k-eps)

in the blockMeshDict:
I have setup the bottom, top, left and right as a wall type. The inlet and outlet are setup as a cyclic type. and the following dimensions:

// L:length, H:height, W:width
L 20;
H 0.1;
W 1;

blocks
(
hex ( 0 1 2 3 4 5 6 7) (20 10 100) simpleGrading (1 1 1)
);

In the 0 files:
the U, p, nut, k and epsilon all seem to be setup properly (with cyclic inlet and outlet).


I am using pisoFOAM (mandatory for this assignment). However, a very small dT (0.0005) gives a Courant number of 23 after 1.5 seconds, and increasing the dT leads to the following error:

--> FOAM FATAL ERROR: (openfoam-2406)
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.2607073
Specified mass inflow : 4.2978406e-08
Specified mass outflow : 0
Adjustable mass outflow : 8.0379753e-17


From bool Foam::adjustPhi(Foam::surfaceScalarField&, const volVectorField&, Foam::volScalarField&)
in file cfdTools/general/adjustPhi/adjustPhi.C at line 110.

FOAM exiting

Now i dont now what i can do to fix it??
sjorskremer is offline   Reply With Quote

Old   November 7, 2024, 16:51
Default
  #2
Member
 
Shravan
Join Date: Mar 2017
Posts: 89
Rep Power: 10
Severus is on a distinguished road
Hello,
Do you apply a body force term that drives the flow? If you have cyclic boundary conditions for pressure, you will not have a pressure gradient to drive the flow and hence you need to use meanVelocityForce in fvOptions or fvConstraints file (depending on the version of OpenFOAM you use).

Check these links
https://develop.openfoam.com/Develop...tant/fvOptions
https://github.com/OpenFOAM/OpenFOAM.../fvConstraints
https://caefn.com/openfoam/fvoptions-meanvelocityforce

One other suggestion, instead of specifying deltaT, use adjustTimeStep option and provide a maximum Courant number, so that the solver will adjust the time step so that the maximum
Courant number limit is satisfied.
https://www.openfoam.com/documentati...output-control

Thanks
Severus is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
What are the best settings for a channel flow simulation? Ashkan Kashani CFX 3 October 13, 2022 22:36
Plane Poiseuille Flow (Channel Flow) with cyclic BC's irwin OpenFOAM 1 April 28, 2021 15:48
Enabling Open Channel Flow Sub-Model in Mixture model cod213 FLUENT 0 January 10, 2017 14:40
Simulating a Laminar Isothermal Flow in a 2D rectangular Channel HectorRedal Main CFD Forum 1 December 18, 2016 12:41
Modeling the mixing of air and kerosene in a flow channel StefanG CFX 3 June 11, 2012 21:21


All times are GMT -4. The time now is 20:45.