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

Using Variables from multiple Physics Continua in Field Function

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 30, 2013, 17:21
Default Using Variables from multiple Physics Continua in Field Function
  #1
cwl
Member
 
Chaotic Water
Join Date: Jul 2012
Posts: 51
Rep Power: 5
cwl is on a distinguished road
Send a message via Skype™ to cwl
Good day, enginners

If there are two Physics Continua (say, Water and Air) in my simulation - which are related to different Regions (so Continua/Variables are not coupled at all) - is there a way to use Variables (say, "Air.Velocity", "Air.Temperature" etc) from one Physics Continua in Field function that is used in another?

For example - i would like to have something like this [written in pseudo-code]:

$$Air.Velocity[0] < 300.0 ? $Water.Temperature*0.5 : pow($Water.Temperature, 2)*0.01

Any ideas?
cwl is offline   Reply With Quote

Old   November 4, 2013, 10:55
Default
  #2
Member
 
Ryan Coe
Join Date: Jun 2010
Location: Albuquerque, NM
Posts: 98
Rep Power: 7
ryancoe is on a distinguished road
The only way that I know to do this is to use field functions to define the physics continua parameters. For example, you could create a field function named airVelocity
airVelocity = [1, 0, 0.1]
then define physics continua with that field function.
set initial velocity in Continua1 to '$$airVelocity'
This way you can use airVelocity in other field functions and other continua.

Hope this helps.
__________________
Ryan
ryancoe is offline   Reply With Quote

Old   November 4, 2013, 11:17
Default
  #3
cwl
Member
 
Chaotic Water
Join Date: Jul 2012
Posts: 51
Rep Power: 5
cwl is on a distinguished road
Send a message via Skype™ to cwl
thanx a lot for your answer - but unfortunately that won't work in case that variable is not constant :<
cwl is offline   Reply With Quote

Old   November 4, 2013, 17:23
Default
  #4
Member
 
Ryan Coe
Join Date: Jun 2010
Location: Albuquerque, NM
Posts: 98
Rep Power: 7
ryancoe is on a distinguished road
The variable does not need to be constant. You can set the field function variable (airVelocity in my example above) dynamically (e.g., as a function of time or any monitor value that you like).

Am I not understanding your problem correctly?
__________________
Ryan
ryancoe is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set periodic boundary conditions Ganesh FLUENT 13 January 22, 2014 05:11
User field function for specific heat deifnition crevoise STAR-CCM+ 2 January 28, 2013 05:25
mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 12 December 12, 2011 05:16
Multiple Physics Continua boathead STAR-CCM+ 6 December 4, 2011 13:33
Droplet Evaporation Christian Main CFD Forum 2 February 27, 2007 07:27


All times are GMT -4. The time now is 09:02.