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

Mass residuals

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 25, 2001, 05:04
Default Mass residuals
  #1
Hamsdi
Guest
 
Posts: n/a
Hello, I want to check the mass residuals before choosing a turbulunce model in my USR Fortran routine. Is there a variable which stores the mass residuals? (I haven't found it in the manual ) (Using CFX 4.4)

Thanks in advance!
  Reply With Quote

Old   October 25, 2001, 05:34
Default Re: Mass residuals
  #2
Jan Rusås
Guest
 
Posts: n/a
It is in the manual

You can declare all the residuals as a variable under

>>VARIABLE NAMES USER SCALAR1 'MASS RESIDUAL'

You must then read how to get acces to this variable in the actual usr. fortran you want to use , ie CALL GETSCA(......

Hope this is a help.

Jan
  Reply With Quote

Old   October 25, 2001, 07:48
Default Re: Mass residuals
  #3
Hamsdi
Guest
 
Posts: n/a
Thanks for the quick response. I still have a problem accessing the variable in my routine. The error text in the output file is as follows:

THE FOLLOWING KEYWORD HAS NOT BEEN PROCESSED

USER SCALAR1

I called it with

CALL GETSCA('MASS RESIDUALS', IRMASS, CWORK)

Thanks again ;-)

  Reply With Quote

Old   October 25, 2001, 10:55
Default Re: Mass residuals
  #4
cfd guy
Guest
 
Posts: n/a
Hi,
Did you check out if you included the number of user scalar equations in the options of the command file? I'll give you a brief example:


--CFX4
--OPTIONS


THREE DIMENSIONS


BODY FITTED GRID


CARTESIAN COORDINATES


TURBULENT FLOW


ISOTHERMAL FLOW


INCOMPRESSIBLE FLOW


USER SCALAR EQUATIONS 1
--VARIABLE NAMES


USER SCALAR1 'MASS RESIDUAL'

Hope this helps,
Regards,
cfd guy
  Reply With Quote

Old   October 29, 2001, 05:29
Default Re: Mass residuals
  #5
Hamsdi
Guest
 
Posts: n/a
Thanks, now it works!
  Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
mass flow in is not equal to mass flow out saii CFX 2 September 18, 2009 08:07
v & mass residuals azmir CD-adapco 0 January 4, 2005 06:11
CFX4.4 - mass residuals in 2D? Novak Elliott CFX 4 September 16, 2003 23:55
adjust a range of target residuals shown on mass a Jackie CFX 0 February 14, 2003 10:40


All times are GMT -4. The time now is 01:22.