|
[Sponsors] |
Time-varying step function boundary condition |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 20, 2022, 04:36 |
Time-varying step function boundary condition
|
#1 |
New Member
Giulia
Join Date: Feb 2022
Posts: 19
Rep Power: 4 |
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 |
|
July 21, 2022, 10:06 |
|
#2 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Quote:
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 |
||
Tags |
boundary condition, inlet boundary condition, time-varying b.c., velocity profile |
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |