|
[Sponsors] |
July 1, 2010, 02:15 |
Transport of additional variable
|
#1 |
New Member
Join Date: Jul 2010
Posts: 4
Rep Power: 16 |
Hi everyone,
I´m trying to model the transport of an additional variable in a fluid (water) domain within CFX. The diffusivity of the corressponding transport equation is also dependent on the additional variable I´m trying to model. The definition of this kinematic diffusivity in CFX results in an error. Therefore I´d like to know wheter it is possible to use this approach or if not, what other approach might be feasible? Thanks in advance, bearli |
|
July 1, 2010, 19:47 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,844
Rep Power: 144 |
If the diffusion coefficient is a function of the transport equation variable you are no longer using a standard additional variable transport equation. You will have to have a careful think about how to implement this numerically as it is tricky to get stable.
So by default I think CFX will reject this (as you have found), but you may be able to trick it by defining either a CEL function with the diffusivity or an additional variable with the diffusivity and using that as your diffusion coefficient. The aim here is to get the diffusivity to take the value from the previous iteration rather than being coupled. If this does not work your only way forward is to do a user fortran routine to set the diffusivity. Can you describe what you are doing? |
|
July 2, 2010, 08:25 |
|
#3 | ||
New Member
Join Date: Jul 2010
Posts: 4
Rep Power: 16 |
Thanks for the answer!
Quote:
were as well as Quote:
|
|||
July 2, 2010, 08:38 |
|
#4 | |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,844
Rep Power: 144 |
Quote:
There is no way in CEL to access variables from previous iterations or timesteps. My suggestion about using a CEL variable or a further additional variable is you may be able to trick CFX into giving you the value from the previous time step. From memory, CEL is evaluated at the start of an iteration before the equations are solved. The CEL is evaluated based on the values from the last iteration. So you may be able to use this to get the CEL to evaluate using the values from the last iteration and then solve the equations. You will have to fiddle with this to get it to work. You might need an additional CEL expression in there, you might need a callback function (eg probe, areaAve() etc) or you might need an additional variable. As what you are trying to do is make use of an "undocumented feature" you will need to fiddle to get it to work - and no guarantees it will work at all in the end. |
||
July 7, 2010, 13:10 |
|
#5 |
New Member
Join Date: Jul 2010
Posts: 4
Rep Power: 16 |
Thanks for the answer. I had some tries but finally I decided to model my problem in FLUENT with UDS/UDF. Works fine!
|
|
Tags |
additional variable, kinematic diffusivity, old iteration, previous iteration |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Transport equation for an Additional Variable | HariBol | CFX | 2 | November 26, 2007 17:07 |
Additional Variable - Diffusive Transport Equation | RadheShyam Das | CFX | 3 | October 18, 2007 13:35 |
Source terms for additional variable transport eqn | Nandini Rohilla | CFX | 0 | February 6, 2004 14:38 |
Replace periodic by inlet-outlet pair | lego | CFX | 3 | November 5, 2002 21:09 |