Polynomial velocity boundary condition
Hello FOAMers,
I'm trying to set a polynomial velocity Ux boundary condition in y-z inlet. Initial values: Ux relationship with Z coordinates into a polynomial. what should I do to create such polynomial velocity boundary condition. Is there a funtion that can implement it? or I need to program it. I heard the functionality in swak4Foam can fix it. Has anyone tried that? I would be grateful if someone could answer me. |
Swak4Foam is great, and very easy to use. But what version of OpenFOAM are you using - ESI or foundation? Swak4Foam cannot currently be used with v9 of the foundation flavour of OpenFOAM, but you could instead use a codedFixedValue BC.
|
Quote:
|
The video linked below explains how to set up a codedFixedValue boundary condition for a parabolic inlet velocity profile:
https://www.youtube.com/watch?v=3zcT...el=HyperLyceum Alternatively, you can use a .csv file as input for a fixedValue boundary condition. https://www.youtube.com/watch?v=rfNY...nicalModelling This explains more broadly the use of codedFixedValue: https://www.youtube.com/watch?v=cvWa...el=HolzmannCFD If I understand correctly, the following should be the end result (change the equation to the one you want to relate u(z) "field[i]" to z "Cf[i].z()"): Code:
/*--------------------------------*- C++ -*----------------------------------*\ |
All times are GMT -4. The time now is 15:52. |