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

Time-varying step function boundary condition

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 20, 2022, 04:36
Default Time-varying step function boundary condition
  #1
New Member
 
Giulia
Join Date: Feb 2022
Posts: 19
Rep Power: 4
letoppina is on a distinguished road
Hello,

Is there a way to impose a squared (or trapezoidal) velocity profile (on the boundary condition of my fluid) instead of a simple sinusoidal shape?

I am using OpenFOAM version 6 and chtmultiregionfoam solver.

Thank you
letoppina is offline   Reply With Quote

Old   July 21, 2022, 10:06
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by letoppina View Post
Hello,

Is there a way to impose a squared (or trapezoidal) velocity profile (on the boundary condition of my fluid) instead of a simple sinusoidal shape?

I am using OpenFOAM version 6 and chtmultiregionfoam solver.

Thank you

Doesn't exactly fit your question, but openfoam6 is also pretty old. If you pick up something like the newest OpenFOAM-v2206 or OpenFOAM-v2112 etc, they have a pre-defined square wave function that even supports having a different length on vs off period. Other alternatives would be an expression function with your own intervals. If none of these work for you, can also just specify a table of values. It does mean that you essentially need to specify the switching points twice (eg, off until 1.0, on after 1.00001 etc) but could be the path of least resistance for you at the moment.



https://www.openfoam.com/documentati...e.html#details
olesen is offline   Reply With Quote

Reply

Tags
boundary condition, inlet boundary condition, time-varying b.c., velocity profile

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
bash script for pseudo-parallel usage of reconstructPar kwardle OpenFOAM Post-Processing 42 May 8, 2024 00:17
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 16:33
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 05:03
latest OpenFOAM-1.6.x from git failed to compile phsieh2005 OpenFOAM Bugs 25 February 9, 2010 05:37
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00


All times are GMT -4. The time now is 05:19.