# Using Variables from multiple Physics Continua in Field Function

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

 October 30, 2013, 17:21 Using Variables from multiple Physics Continua in Field Function #1 Member   Chaotic Water Join Date: Jul 2012 Posts: 85 Rep Power: 7 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?

 November 4, 2013, 10:55 #2 Member   Ryan Coe Join Date: Jun 2010 Location: Albuquerque, NM Posts: 98 Rep Power: 9 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

 November 4, 2013, 11:17 #3 Member   Chaotic Water Join Date: Jul 2012 Posts: 85 Rep Power: 7 thanx a lot for your answer - but unfortunately that won't work in case that variable is not constant :<

 November 4, 2013, 17:23 #4 Member   Ryan Coe Join Date: Jun 2010 Location: Albuquerque, NM Posts: 98 Rep Power: 9 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

 Thread Tools Display Modes Linear Mode

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

 Similar Threads Thread Thread Starter Forum Replies Last Post Ganesh FLUENT 13 January 22, 2014 05:11 crevoise STAR-CCM+ 2 January 28, 2013 05:25 anand_30 OpenFOAM Meshing & Mesh Conversion 12 December 12, 2011 05:16 boathead STAR-CCM+ 6 December 4, 2011 13:33 Christian Main CFD Forum 2 February 27, 2007 07:27

All times are GMT -4. The time now is 17:54.