|
[Sponsors] |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
![]() |
#3 | |
Member
HARIHARAN K
Join Date: Oct 2014
Posts: 40
Rep Power: 12 ![]() |
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 | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] installation problem with version 0.2.3 | Claudio87 | OpenFOAM Community Contributions | 9 | May 8, 2013 11:20 |
is internalField(U) equivalent to zeroGradient? | immortality | OpenFOAM Running, Solving & CFD | 7 | March 29, 2013 02:27 |
channelFoam for a 3D pipe | AlmostSurelyRob | OpenFOAM | 3 | June 24, 2011 14:06 |
latest OpenFOAM-1.6.x from git failed to compile | phsieh2005 | OpenFOAM Bugs | 25 | February 9, 2010 05:37 |
User Field Function | hannow | STAR-CCM+ | 3 | November 24, 2009 21:20 |