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

passive scalars

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 15, 2004, 14:34
Default passive scalars
  #1
CMB
Guest
 
Posts: n/a
Hi, I defined some passive scalars in my model because these donot influence dependant variables and are not part of the solving equations. So I have been assigning them values with: t(is,1+nsc)=value(ip) An error appears while running, it says error#076, negative densities found at more than 100 cells! When I take away this command line of the program, it runs well. These scalars have no direct or indirect influence on the density calculation. I appreciate any help or suggestions Regards, c
  Reply With Quote

Old   February 16, 2004, 03:01
Default Re: passive scalars
  #2
Richard
Guest
 
Posts: n/a
If you want to write to the T() array directly like that, you have to make sure that you have allocated the memory correctly, otherwise you will be over-writing memory which STAR is using for something else. Perhaps this memory corruption is the cause of the negative densities. To define the values of a scalar explicitly, it is much better to use the built-in capabilities of STAR: define a passive scalar with "Solution Method"="User". This will activate the SCALFN user subroutine, in which you can specify PHI (the scalar value) for scalar IS in cell IP, as a function of the usual local field values.
  Reply With Quote

Old   February 16, 2004, 09:46
Default Re: passive scalars
  #3
CMB
Guest
 
Posts: n/a
hi richard, you are right,the memory was overwriting itself, I tried to define my passive scalars using SCALFN but did'nt work. This is very strange, I defined that in the solution method and specified them to be solved by this subroutine, but it did'nt work. Instead I define the calculation to be done only once per time step, with the following: if(intflg(1).eq.0)then / intflg(2)=-1 / intflg(1)=1 / endif / if(intflg(2).ne.iter) then / coding / intflg(2)=iter / endif. And it worked!! Many thanks C.
  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
Passive scalars and Star-CCM+ Tim Siemens 1 May 19, 2008 11:04
star-ccm+ and passive scalars tomy Siemens 3 August 21, 2007 15:15
gradients of passive scalars Ulle Siemens 1 July 10, 2005 12:24
Passive Scalars CMB Siemens 2 January 15, 2004 08:27
passive scalars CMB Siemens 0 December 10, 2003 06:14


All times are GMT -4. The time now is 14:29.