|
[Sponsors] |
May 31, 2016, 10:43 |
user field function
|
#1 |
New Member
roberto
Join Date: Jul 2015
Posts: 4
Rep Power: 11 |
Hello everybody,
i'm quite new in the definition of user field function, I want to impose as initial condition a volume fraction equal 1 for all points of the domain with y<0. Can anyone help me?? Thanks |
|
May 31, 2017, 10:34 |
|
#2 |
Senior Member
|
Instead of writing a field function you can try to make a boundary with y<0. Let me know how you tried to write a field function.
Sent from my Redmi Note 3 using CFD Online Forum mobile app |
|
June 26, 2017, 05:05 |
|
#3 | |
Member
HARIHARAN K
Join Date: Oct 2014
Posts: 40
Rep Power: 11 |
Quote:
I assume that you have two phases: air and water. Put this definition for water, ($$Position[1]<0)?1:0. Hope this helps. |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] installation problem with version 0.2.3 | Claudio87 | OpenFOAM Community Contributions | 9 | May 8, 2013 10:20 |
is internalField(U) equivalent to zeroGradient? | immortality | OpenFOAM Running, Solving & CFD | 7 | March 29, 2013 01:27 |
channelFoam for a 3D pipe | AlmostSurelyRob | OpenFOAM | 3 | June 24, 2011 13:06 |
latest OpenFOAM-1.6.x from git failed to compile | phsieh2005 | OpenFOAM Bugs | 25 | February 9, 2010 04:37 |
User Field Function | hannow | STAR-CCM+ | 3 | November 24, 2009 20:20 |