CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

Setting Initial Volume Fraction

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By me3840
  • 1 Post By me3840

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 5, 2014, 12:43
Question Setting Initial Volume Fraction
  #1
Member
 
Join Date: May 2009
Posts: 58
Rep Power: 16
amir2920 is on a distinguished road
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 )?
amir2920 is offline   Reply With Quote

Old   May 6, 2014, 09:28
Default
  #2
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24
me3840 is on a distinguished road
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.
amir2920 likes this.
me3840 is offline   Reply With Quote

Old   May 6, 2014, 12:56
Question
  #3
Member
 
Join Date: May 2009
Posts: 58
Rep Power: 16
amir2920 is on a distinguished road
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,
amir2920 is offline   Reply With Quote

Old   May 6, 2014, 20:41
Default
  #4
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24
me3840 is on a distinguished road
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
me3840 is offline   Reply With Quote

Old   May 26, 2014, 04:35
Default
  #5
Member
 
Join Date: May 2009
Posts: 58
Rep Power: 16
amir2920 is on a distinguished road
Quote:
Originally Posted by me3840 View Post
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
Thank you so much.
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,
amir2920 is offline   Reply With Quote

Old   May 26, 2014, 22:25
Default
  #6
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24
me3840 is on a distinguished road
Do it the same way, just replace Centroid with Velocity
amir2920 likes this.
me3840 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
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


All times are GMT -4. The time now is 16:21.