|
[Sponsors] |
May 5, 2014, 12:43 |
Setting Initial Volume Fraction
|
#1 |
Member
Join Date: May 2009
Posts: 58
Rep Power: 16 |
Hi,
In my simulation I want to define an air droplet in water. How can I set the initial air drop (a circle in 2D simulation )? |
|
May 6, 2014, 09:28 |
|
#2 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24 |
Create a cylindrical coordinate system at the center of the drop. Then use a field function to specify an R value for the size of the droplet, and use that as the initial condition.
|
|
May 6, 2014, 12:56 |
|
#3 |
Member
Join Date: May 2009
Posts: 58
Rep Power: 16 |
Thank you so much for your reply. I am new to STARCCM+ and have not worked with field function. How can I define this field function? I read the software help and I could not figure that out. Could you help me with that too? I really appreciate your help.
The other question is that can I put an initial velocity for the droplet? Thanks, |
|
May 6, 2014, 20:41 |
|
#4 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24 |
Read the field function programming reference in the help guide.
Consider a cylindrical coordinate system "cylSys". Pretend the drop is 0.2m in size. r=0 is the center of the drop. We need a field function that returns a value 1 inside the drop and 0 elsewhere. Call the coordinate system in a conditional, saying if r is below 0.2, then 1, else 0. $$Centroid(@CoordinateSystem("cylSys"))[0]<0.2?1:0 |
|
May 26, 2014, 04:35 |
|
#5 | |
Member
Join Date: May 2009
Posts: 58
Rep Power: 16 |
Quote:
I used this field function to define the droplet in my initial condition. But I have another question. How can I specify an initial velocity for this drop? Thanks, |
||
May 26, 2014, 22:25 |
|
#6 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24 |
Do it the same way, just replace Centroid with Velocity
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
buoyantSimpleFoam and watertank | Tobi | OpenFOAM Running, Solving & CFD | 100 | December 18, 2022 08:15 |
Extrusion with OpenFoam problem No. Iterations 0 | Lord Kelvin | OpenFOAM Running, Solving & CFD | 8 | March 28, 2016 11:08 |
Why RNGkepsilon model gives floating error | shipman | OpenFOAM Running, Solving & CFD | 3 | September 7, 2013 08:00 |
How to write k and epsilon before the abnormal end | xiuying | OpenFOAM Running, Solving & CFD | 8 | August 27, 2013 15:33 |
On the damBreak4phaseFine cases | paean | OpenFOAM Running, Solving & CFD | 0 | November 14, 2008 21:14 |