CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Constant field inside the volume

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 17, 2008, 11:43
Default Constant field inside the volume
  #1
Ben Makhal
Guest
 
Posts: n/a
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!

  Reply With Quote

Old   January 17, 2008, 14:16
Default Re: Constant field inside the volume
  #2
andy2o
Guest
 
Posts: n/a
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
  Reply With Quote

Old   January 17, 2008, 15:09
Default Re: Constant field inside the volume
  #3
Ben Makhal
Guest
 
Posts: n/a
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.
  Reply With Quote

Old   January 17, 2008, 17:54
Default Re: Constant field inside the volume
  #4
Glenn Horrocks
Guest
 
Posts: n/a
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
  Reply With Quote

Old   January 18, 2008, 02:23
Default Re: Constant field inside the volume
  #5
Ben Makhal
Guest
 
Posts: n/a
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.

  Reply With Quote

Old   January 20, 2008, 05:08
Default No Ideas? *NM*
  #6
Ben Malhal
Guest
 
Posts: n/a
  Reply With Quote

Old   January 20, 2008, 17:59
Default Re: Constant field inside the volume
  #7
Glenn Horrocks
Guest
 
Posts: n/a
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
  Reply With Quote

Old   January 21, 2008, 04:48
Default Re: Constant field inside the volume
  #8
Ben Makhal
Guest
 
Posts: n/a
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?
  Reply With Quote

Old   January 22, 2008, 18:07
Default Re: Constant field inside the volume
  #9
Glenn Horrocks
Guest
 
Posts: n/a
Hi,

I discussed this issue with a developer some time ago. It might also be in the documentation, I have not checked.

Glenn Horrocks
  Reply With Quote

Old   February 6, 2008, 06:19
Default Re: Constant field inside the volume
  #10
Ben Makhal
Guest
 
Posts: n/a
I think it's still an issue.
  Reply With Quote

Old   February 6, 2008, 17:32
Default Re: Constant field inside the volume
  #11
Glenn Horrocks
Guest
 
Posts: n/a
Hi,

If you don't take my word for it then contact CFX support and ask them.

Glenn Horrocks
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sample a volume field gwierink OpenFOAM Post-Processing 15 September 22, 2022 12:49
Initialize volume temperature field with a computed field magnounibo FLUENT 2 December 11, 2009 04:06
How to create a fluid volume inside a solid volume sanin FLUENT 4 November 13, 2008 16:17
for loop inside a cell_loop? MHDWill FLUENT 0 September 26, 2007 22:24
transient temperature field with constant velocity Törnquist CFX 0 September 16, 2003 05:22


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