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

Using Variables from multiple Physics Continua in Field Function

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 30, 2013, 17:21
Default Using Variables from multiple Physics Continua in Field Function
  #1
cwl
Senior Member
 
Chaotic Water
Join Date: Jul 2012
Location: Elgrin Fau
Posts: 438
Rep Power: 18
cwl is on a distinguished road
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: 16
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
Senior Member
 
Chaotic Water
Join Date: Jul 2012
Location: Elgrin Fau
Posts: 438
Rep Power: 18
cwl is on a distinguished road
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: 16
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


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 18:22
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 07:09
User field function for specific heat deifnition crevoise STAR-CCM+ 2 January 28, 2013 05:25
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 19:51.