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

Precusor Simulation Using Cyclic BC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 10, 2024, 19:30
Default Precusor Simulation Using Cyclic BC
  #1
New Member
 
Kevin Flora
Join Date: Oct 2009
Location: California, USA
Posts: 19
Rep Power: 17
kflora is on a distinguished road
Hello FOAMERs,
I am trying to setup a simple precursor simulation using OpenFOAM 5.0 (I know this is quite old, but I need to use it for other reasons) a rigid lid for a simulation of flow in a flume so that I can develop the flow for inflow characteristics of future simulations. I am using RAS with k-omegaSST with pisoFoam.


I setup the boundaries in my blockMeshDict as:
boundary
(
inlet
{
type cyclic;
neighbourPatch outlet;
faces
(
(0 4 7 3)
);
}

outlet
{
type cyclic;
neighbourPatch inlet;
faces
(
(1 2 6 5)
);
}

top
{
type wall;
faces
(
(4 5 6 7)
);
}

bottom
{
type wall;
faces
(
(0 3 2 1)
);
}

frontAndBack
{
type wall;
faces
(
(0 1 5 4)
(3 7 6 2)
);
}
);

and my 0/U as:

internalField uniform (1 0 0);

boundaryField
{
inlet
{
type cyclic;
neighbourPatch outlet;
value uniform (1 0 0);
}

outlet
{
type cyclic;
neighbourPatch inlet;
}

top
{
type slip;
value uniform (0 0 0);
}

bottom
{
type fixedValue;
value uniform (0 0 0);
}

frontAndBack
{
type slip;
}
}



and 0/p as:


internalField uniform 0;

boundaryField
{
top
{
type zeroGradient;
}
bottom
{
type zeroGradient;
}

inlet
{
type cyclic;
neighborPatch outlet;
}

outlet
{
type cyclic;
neighborPatch inlet;
}

frontAndBack
{
type zeroGradient;
}
turbine
{
type zeroGradient;
}
}

The case does run cyclically;however, while the flow develops a vertical profile, it loses velocity (and mass) as the flow develops. As shown in the attached 2 files showing a Slice in the spanwise direction of the velocity, the flow at 10 seconds is 1 throughout most of the flow (except at the bottom with has a fixed condition), but by 100 seconds, as the flow develops, the velocity magnitude throughout most of the flow is less than 0.5.

My goal is to have an average velocity throughout the flow of 1 and so I would expect velocities to redistribute with velocity magnitudes near the surface to exceed 1.

Clearly, something is still wrong. Any suggestions are greatly appreciated.
Attached Images
File Type: png UmagAt10s.png (9.5 KB, 7 views)
File Type: png UmagAt100s.png (9.6 KB, 7 views)
kflora is offline   Reply With Quote

Old   November 11, 2024, 07:59
Default
  #2
Member
 
Shravan
Join Date: Mar 2017
Posts: 75
Rep Power: 9
Severus is on a distinguished road
Hello,
From what I see, this reason could be due to not applying a source term that will drive the flow.

Check out my answer here: 3D channel flow cyclic BC's pisoFOAM

Thanks
Severus is offline   Reply With Quote

Old   November 14, 2024, 11:50
Default
  #3
New Member
 
Kevin Flora
Join Date: Oct 2009
Location: California, USA
Posts: 19
Rep Power: 17
kflora is on a distinguished road
Severus,

Thank you for you advice. This took care of my problem nicely and now have the correct velocity profile.
kflora is offline   Reply With Quote

Reply

Tags
cyclic, openfoam, precusor


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
High time step continuity errors when activating RAS model smhk OpenFOAM Running, Solving & CFD 0 August 24, 2024 19:06
cyclic patch error cesarjets OpenFOAM Pre-Processing 0 July 25, 2023 21:14
Cyclic boundary condition in foam-extend 4.0 rellumeister OpenFOAM Pre-Processing 2 March 3, 2020 09:03
time step continuity error increases with time_SRFSimplefoam mostafa kamal OpenFOAM Running, Solving & CFD 7 October 2, 2019 03:00
Possible createPatch/createBaffles bug? simpomann OpenFOAM Bugs 2 July 15, 2014 08:07


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