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

Normal distance from a complex shaped wall - initial conditions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 20, 2017, 09:08
Default Normal distance from a complex shaped wall - initial conditions
  #1
New Member
 
Prash Valluri
Join Date: Sep 2017
Posts: 2
Rep Power: 0
prashantvalluri is on a distinguished road
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
prashantvalluri is offline   Reply With Quote

Old   September 20, 2017, 10:00
Default
  #2
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 12
urosgrivc is on a distinguished road
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
urosgrivc is offline   Reply With Quote

Old   September 20, 2017, 10:55
Default
  #3
New Member
 
Prash Valluri
Join Date: Sep 2017
Posts: 2
Rep Power: 0
prashantvalluri is on a distinguished road
Thanks. So, "wall distance" can be used directly as a function?

Prash
prashantvalluri is offline   Reply With Quote

Old   September 20, 2017, 14:26
Default
  #4
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 12
urosgrivc is on a distinguished road
Yes Wall Distance is one of the wariables so this should work direktly in an expression
urosgrivc is offline   Reply With Quote

Reply


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
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


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