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

How to define volume of a fluid in star ccm+ using a field function?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 19, 2015, 11:11
Default How to define volume of a fluid in star ccm+ using a field function?
  #1
New Member
 
Deutschland
Join Date: May 2015
Posts: 5
Rep Power: 10
sarvesh34 is on a distinguished road
Hello

Can anyone help me define volume of a fluid in star ccm+ using a feild function.

Thnak you

Regards

Sarvesh
sarvesh34 is offline   Reply With Quote

Old   December 20, 2015, 13:33
Default
  #2
Senior Member
 
Lane Carasik
Join Date: Aug 2014
Posts: 692
Rep Power: 14
lcarasik is on a distinguished road
Quote:
Originally Posted by sarvesh34 View Post
Hello

Can anyone help me define volume of a fluid in star ccm+ using a feild function.

Thnak you

Regards

Sarvesh
Can you give a few more details? Such as, are you trying to define a water level in a volume?

Also, please take a look at the VOF: Gravity Driven Flow tutorial of the user manual. It discusses some basics of VOF.
lcarasik is offline   Reply With Quote

Old   December 21, 2015, 16:23
Default
  #3
New Member
 
Deutschland
Join Date: May 2015
Posts: 5
Rep Power: 10
sarvesh34 is on a distinguished road
Sir

I want to define a Liquid Steel level in a single strand tundish using a field function there is a tutorial that says you can define fluid levels by coordinats example:
The setup steps for the example in Figure 1 are shown below.
For the water:
Tools > Field Functions > New > User Field Function 1 > Properties
Type: Scalar
Function Name:Change User Field Function 1 to Initial_Height_Water
Definition: ($$Position[2]<=0.7)?1:0
For the oil:
Tools > Field Functions > New > User Field Function 1 > Properties
Type: Scalar
Function Name: Change User Field Function 1 to Initial_Height_Oil
Definition: ($$Position[2]>=0.7)?1:0
$$Position[2]: Z direction (height)

In my case my inlet is through the air level and submerged in the fluid. My tundish is of 1m height and 0.8m consist of liquid steel and the rest is air. My inlet consist of only liquid steel not air i just want to know how can I setup my field function definition. I am not able to share my image here if i can have your email id i can send it to you. let me know if you need any further details

Thank you
sarvesh34 is offline   Reply With Quote

Old   April 23, 2016, 12:03
Default
  #4
Member
 
Ahmed Elhanfi
Join Date: Nov 2014
Posts: 30
Rep Power: 11
Ahmed Elhanafi is on a distinguished road
Hi All,

I have the same problem discussed here. I need to assign Water (VOF) to specific volumes (two volumes).

The full domain is 0<=x<=10 m, 0<=y<=2 m, 0<=z<=10 m. The domain should contain air, while the following volumes should have water:

Volume1: 0<=x<=10, 0<=y<=2, 0<=z<=5
Volume2: 4<=x<=6, 0<=y<=2, 5<=z<=6

I know how to do this for one volume using a field function such as the following for Volume 1:
(0<=$$Centroid[0]<=10 && 0<=$$Centroid[1]<=2 && 0<=$$Centroid[2]<=5)?0.0 : 1.0.

For Volume 2:

(4<=$$Centroid[0]<=6 && 0<=$$Centroid[1]<=2 && 5<=$$Centroid[2]<=6)?0.0 : 1.0.

But I do not know how to combine them properly.

Would you please help me solving this problem.

Attached is a simple description of what I'm looking for.

Cheers,

Ahmed
Attached Images
File Type: png VOF.png (6.8 KB, 93 views)
Ahmed Elhanafi is offline   Reply With Quote

Old   April 24, 2016, 05:00
Default
  #5
New Member
 
Deutschland
Join Date: May 2015
Posts: 5
Rep Power: 10
sarvesh34 is on a distinguished road
Hello!

Is your domain square or cylinder?
Can you send me your simulation file?
sarvesh34@gmail.com
I can try it!!

Thanks
sarvesh34 is offline   Reply With Quote

Old   April 25, 2016, 11:53
Default
  #6
Member
 
Ahmed Elhanfi
Join Date: Nov 2014
Posts: 30
Rep Power: 11
Ahmed Elhanafi is on a distinguished road
Hi All,

I figured out how to combine the two field functions using a || logical operator.

Now it works, and using a scene to show the selected/combined field function.

Attached is the outcome.

Cheers,

Ahmed
Attached Images
File Type: jpg VOF_Problem_Scene 1.jpg (32.9 KB, 111 views)
Ahmed Elhanafi 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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 17:22
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 05:42
blockMesh error ... balkrishna OpenFOAM Pre-Processing 0 August 17, 2010 02:39
Droplet Evaporation Christian Main CFD Forum 2 February 27, 2007 06:27
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11


All times are GMT -4. The time now is 19:30.