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

past itteration register value

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 13, 2005, 14:24
Default past itteration register value
  #1
cmv
Guest
 
Posts: n/a
Hi it is me again!

This is a programming question, do you know how to define a vector that could give you the value of a variable calculated one iteration before. In posdat.f, this could mean a variable 'A' that gives you the value of variable 'B' calculated on the past level. For example you calculate B as a function of the mass fraction of scalar 1: B=t(ic,2)*alpha, and you would like to know what this value was the last time it was calculated: A=B(past), not this level or itteration the "past one".

Many thanks CM
  Reply With Quote

Old   March 13, 2005, 14:52
Default Re: past itteration register value
  #2
Richard
Guest
 
Posts: n/a
In each iteration you calculate B and then set A=B. As long as A is either SAVEd or it is in a COMMON block, it will be "remembered" in the next iteration (up until the point when you do A=B anyway).
  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
post register operation star CD-adapco 2 July 20, 2007 03:03
Post Register anonymous CD-adapco 3 July 10, 2006 06:47
How to get data out from register? leo CD-adapco 1 May 2, 2003 08:16
post register Astrid Hostrup CD-adapco 1 July 31, 2000 08:11


All times are GMT -4. The time now is 11:48.