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

Question on CFX user fortran: how to obtain variable value of a certain local

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 13, 2019, 06:44
Default Question on CFX user fortran: how to obtain variable value of a certain local
  #1
New Member
 
Join Date: May 2018
Posts: 6
Rep Power: 8
leizi is on a distinguished road
Dear all,

I'm using CFX user fortran to calculate some additional variables. During each step I need to get the pressure and coordinate of a certain boundary, but it seems that the user_getvar do not returns the variable of a specified locale. Is there any other routines/functions that can help me do that?
leizi is offline   Reply With Quote

Old   July 14, 2019, 20:22
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
Could you be more specific on what you are trying to achieve?

Are you coding a UserFortran CEL function? or a junction box?

For the former, the software will evaluate the UserFortran function on the locale of interest for the software; therefore, it is implied and no need to over-specify it.

Are you trying to gather the additional variable at a different locale from the one the function is called for? For example, the function is evaluated at an inlet, and you are trying to gather the variable at the outlet.
Opaque is offline   Reply With Quote

Old   July 15, 2019, 08:42
Default
  #3
New Member
 
Join Date: May 2018
Posts: 6
Rep Power: 8
leizi is on a distinguished road
Sorry for the unclear description. I‘m trying to code a cel function, which is evaluated over the whole flow field domain but it needs the pressure distribution on a certain wall boundary.
leizi is offline   Reply With Quote

Old   July 15, 2019, 08:44
Default
  #4
New Member
 
Join Date: May 2018
Posts: 6
Rep Power: 8
leizi is on a distinguished road
Quote:
Originally Posted by Opaque View Post
Could you be more specific on what you are trying to achieve?

Are you coding a UserFortran CEL function? or a junction box?

For the former, the software will evaluate the UserFortran function on the locale of interest for the software; therefore, it is implied and no need to over-specify it.

Are you trying to gather the additional variable at a different locale from the one the function is called for? For example, the function is evaluated at an inlet, and you are trying to gather the variable at the outlet.

Sorry for the unclear description. I‘m trying to code a cel function, which is evaluated over the whole flow field domain but it needs the temperature distribution on a certain wall boundary.
leizi is offline   Reply With Quote

Old   July 15, 2019, 11:44
Default
  #5
Member
 
Join Date: May 2019
Posts: 30
Rep Power: 7
FCKW36 is on a distinguished road
I found it out. I had to make a Mointor Point in CFX-Pre with the Expression I defined. Than I can Monitor this Monitor Point during the run. Thank you very much.
FCKW36 is offline   Reply With Quote

Reply

Tags
user fortran


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
cfx boundary condition added by user fortran subroutine doesn't work leizi CFX 3 May 29, 2018 11:26
Question about CFX user fortran tengf689 CFX 8 January 9, 2017 21:36
Obtain local volume at node/vertex in user routine honcho62 CFX 6 January 19, 2016 07:39
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19:56
CFX arc-modeling, User Fortran, CEL.... Bloshchitsyn Vladimir CFX 0 October 15, 2007 07:17


All times are GMT -4. The time now is 15:59.