|
[Sponsors] |
Using Variables from multiple Physics Continua in Field Function |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 30, 2013, 17:21 |
Using Variables from multiple Physics Continua in Field Function
|
#1 |
Senior Member
Chaotic Water
Join Date: Jul 2012
Location: Elgrin Fau
Posts: 437
Rep Power: 18 |
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: 16 |
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 |
Senior Member
Chaotic Water
Join Date: Jul 2012
Location: Elgrin Fau
Posts: 437
Rep Power: 18 |
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: 16 |
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 |
|
|
|
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 |