|
[Sponsors] |
Normal distance from a complex shaped wall - initial conditions |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 20, 2017, 09:08 |
Normal distance from a complex shaped wall - initial conditions
|
#1 |
New Member
Prash Valluri
Join Date: Sep 2017
Posts: 2
Rep Power: 0 |
Dear Forum - I have a complex shaped wall. And I need to set an initial condition on volume fraction only upto a certain distance normal to the wall. This height is (one of my) input parameters and I dont really want to spend time recreating mesh-domains.
Is there a simpler way I can use via CEL or functions wherein I calculate the describe either a) a part of the wall distance or b) simply indicate the number of cells (elements) normal to the walls. Any help will be most appreciated. Prash |
|
September 20, 2017, 10:00 |
|
#2 |
Senior Member
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 12 |
I can see this working with:
something like; If(Wall Distance>2[mm],1,0) this would give you volume fraction of 1 up to 2mm away from the wall. Althoug this does have a problem => this wil than be true for all the wals you have if this is not a problem than this should work but if you have walls where you dont want your fluid than I am not sure what to do exactly. locator is all the wals majbe there is a waj to select |
|
September 20, 2017, 10:55 |
|
#3 |
New Member
Prash Valluri
Join Date: Sep 2017
Posts: 2
Rep Power: 0 |
Thanks. So, "wall distance" can be used directly as a function?
Prash |
|
September 20, 2017, 14:26 |
|
#4 |
Senior Member
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 12 |
Yes Wall Distance is one of the wariables so this should work direktly in an expression
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Suppress twoPhaseEulerFoam energy | AlmostSurelyRob | OpenFOAM Running, Solving & CFD | 33 | September 25, 2018 18:45 |
simpleFoam error - "Floating point exception" | mbcx4jc2 | OpenFOAM Running, Solving & CFD | 12 | August 4, 2015 03:20 |
should Courant number always be kept below 1? | wc34071209 | OpenFOAM Running, Solving & CFD | 16 | March 9, 2014 20:31 |
Unstabil Simulation with chtMultiRegionFoam | mbay101 | OpenFOAM Running, Solving & CFD | 13 | December 28, 2013 14:12 |
Micro Scale Pore, icoFoam | gooya_kabir | OpenFOAM Running, Solving & CFD | 2 | November 2, 2013 14:58 |