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

cfx boundary condition added by user fortran subroutine doesn't work

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 29, 2018, 07:22
Default cfx boundary condition added by user fortran subroutine doesn't work
  #1
New Member
 
Join Date: May 2018
Posts: 6
Rep Power: 4
leizi is on a distinguished road
Hi everyone, i'm learning cfx user fortran using a very simple steady case: to simulate the flow through a tube. I write a fortran subroutine to supply the outlet back pressure, which is in fact a constant value in the fortran code. I monitored the value from the subroutine and the value of calculated outlet pressure. The subroutine value remains the same during the calculation, but the calculated outlet pressure keeps on dropping to a very low value which is much lower than the subroutine value. How can i fix this?
leizi is offline   Reply With Quote

Old   May 29, 2018, 08:23
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 16,467
Rep Power: 128
ghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the rough
Please attach your CCL.

What happens if you set the outlet pressure to the same value in CFX-Pre, so no user fortran?
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   May 29, 2018, 11:24
Default
  #3
New Member
 
Join Date: May 2018
Posts: 6
Rep Power: 4
leizi is on a distinguished road



the function is added like this. It's a simple cel function, reads time step and pressure , returns a constant back pressure value, which is the red line in the monitor. But the calculated outlet pressure(the green line) keeps on dropping as if the back pressure is zero. If i replace the function with the constant value everything is ok.
leizi is offline   Reply With Quote

Old   May 29, 2018, 11:26
Default
  #4
New Member
 
Join Date: May 2018
Posts: 6
Rep Power: 4
leizi is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Please attach your CCL.

What happens if you set the outlet pressure to the same value in CFX-Pre, so no user fortran?
if i replace the fortran function with actual value, every thing is ok.
leizi is offline   Reply With Quote

Reply

Tags
user fortran

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
Wind turbine simulation Saturn CFX 58 July 3, 2020 02:13
Low Mixing time Problem Mavier CFX 5 April 29, 2013 01:00
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 08:00
CFX User Fortran: Particle User Sources hustxinxin CFX 0 March 8, 2012 09:37
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19:56


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