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

users fortran USRBCS

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 14, 2003, 09:00
Default users fortran USRBCS
  #1
cfx4.3 user
Guest
 
Posts: n/a
hello all

I would like to read inlet temperature profile from a matrix file for a transient flow (the 1st column is time and the second is temperature) using the fortran routine USRBCS at user area 5. Is there any one who knows howto do it in fortran. I mean calling a file or array defination....

thanks a lot

cfx 4.3 user

  Reply With Quote

Old   March 3, 2003, 05:11
Default Re: users fortran USRBCS
  #2
Azeez
Guest
 
Posts: n/a
I am also trying to solve a similar problem. I want to fix my own temperature in the bounday condition at the start of every time step which is dependent on the reaction heat(flow with reaction) produced in the previous time step. the same applies to the pressure. if u managed to find a solution for ur problem can u please help me in solving this. thanks in advance. sincerely Azeez
  Reply With Quote

Old   March 5, 2003, 18:02
Default Re: users fortran USRBCS
  #3
Jeff
Guest
 
Posts: n/a
These are two slightly different problems:

CFX4.3 User ============ Open the file in USRINT and read the array of times and temperatures into arrays and store them in a common block. Then in USRBCS, you have access to the TIME variable. Compare this TIME variable to your time array and set the corresponding (or interpolated) inlet temperature on the boundary condition.

Azeez =========== Through the WORK array (see chapter 11 of the manual) you have access to the VAROLD stack. You can access all temperature and pressure values from the previous time step there. You can then use these values to set your current time step values.

NOTE: for both cases, make sure you set the BCSFLG so that the routine gets called for every iteration and timestep (this is a value of 3 I think). Usage of this flag is documented in the comments.

Cheers, Jeff
  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
Fortran Compiler-CFX12.1 Araz CFX 13 March 27, 2017 05:37
visual fortran Monica Main CFD Forum 1 August 28, 2004 20:45
Why Favoring Fortran over C/C++? Zi-Wei Chiou Main CFD Forum 35 September 26, 2001 09:34
Fluent 5.5. What the differences with fluent 5.3?? confused FLUENT 2 July 29, 2001 21:58
2000 North American STAR-CD Users Conference Andrew Robertson Siemens 0 March 31, 2000 18:18


All times are GMT -4. The time now is 21:58.