Transport of additional variable
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 
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? 
Thanks for the answer!
Quote:
were as well as Quote:

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. 
Thanks for the answer. I had some tries but finally I decided to model my problem in FLUENT with UDS/UDF. Works fine!

All times are GMT 4. The time now is 10:55. 