Constant field inside the volume
Dear colleagues,
I would like to have a steady state simulation with the constant field of some quantity in all domain. I can calculate the field in any point inside the volume, but the calculation is slow enough. If I do such calculation every iteration, it will slow down the simulation very much. Instead, I would like to calculate the field only one time, store it into, for example, user variable, and use it in the all iterations. But I can't imagine how to do that. Could anybody help me? Thank you! 
Re: Constant field inside the volume
We need more information to help you:
Q1: What else is involved in your steady state simulation? I assume there's a steady state flow calculation involved. Describe it a bit. Q2: Also, what is the 'field'? How is it to be calculated: (a)  from an equation that needs to be *solved*, e.g. such as a diffusion equation for a concentration? or (b)  can it just be *computed directly* once you have the velocity / pressure / temperature that CFX solves for already in your simulation? Does the field influence the flow pattern? Let us know, and then we can give better help. andy 
Re: Constant field inside the volume
You need no more information. Please reread my question.
I would like to have additional scalar variable in my simulation and initialize it only once with the exturnal calculated values (it has no matter, what are these value and meaning). I need just to initialize it once. But now solver recalculate the values of such variable every iteration step. 
Re: Constant field inside the volume
Ben,
Andy was right to ask the question. Depending on what type of scalar field it is will determine appropriate ways of doing it. Also, knowing the background of an issue always helps put it in context. If you define a CEL expression and send it to a user scalar variable which does not include properties which vary during the simulation it will be calculated once and kept constant during the simulation. I think this is what you are asking about. Glenn Horrocks 
Re: Constant field inside the volume
Thank you, Glenn!
Ok, I'll try to explain my needs. I have additional volumetric scalar variable in the domain. I add transport equation for this variable. The source in the subdomain(==domain) includes my user function. I tried to describe my user function through the function that interpolate table data, calculated outside CFX. The arguments for the function are only (x, y, z) coordinates. This is the scalar field I talked earlier. Interpolation function works quite slowly. If I ran the simulation it lasts many times longer comparing to the case without additional variables or the case without interpolation function. That means my interpolation function is calculated every time step, not once. Thank you. 
No Ideas? *NM*

Re: Constant field inside the volume
Hi,
My understanding was that if the inputs to a function were constant and could therefore just be evaluated once at the start of a simulation and kept for future use. I would talk to your support office about this. Glenn Horrocks 
Re: Constant field inside the volume
Thank you for the answer.
But why do you think that "If you define a CEL expression and send it to a user scalar variable which does not include properties which vary during the simulation it will be calculated once and kept constant during the simulation."? Is that stated somewhere in the CFX manuals/specs? 
Re: Constant field inside the volume
Hi,
I discussed this issue with a developer some time ago. It might also be in the documentation, I have not checked. Glenn Horrocks 
Re: Constant field inside the volume
I think it's still an issue.

Re: Constant field inside the volume
Hi,
If you don't take my word for it then contact CFX support and ask them. Glenn Horrocks 
All times are GMT 4. The time now is 03:28. 