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

how to use CFX coupling with external Fortran procedure

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 15, 2016, 22:31
Default how to use CFX coupling with external Fortran procedure
  #1
New Member
 
Ian
Join Date: Oct 2013
Posts: 23
Rep Power: 12
windfire is on a distinguished road
hi everyone,i want to use CFX compute waterhammer,i have use Fortran compile method of characteristics,i want to simulate 1D-3D,but MPCCI did't have port to connect CFX and Fortran, can use CEl or CCL to compile method of characteristics and compute in CFX?
thank you !
windfire is offline   Reply With Quote

Old   March 16, 2016, 02:53
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,665
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I would recommend you use a user defined CEL function to do your boundary condition between the 1D and 3D sections, and you put your MOC code in the fortran for the CEL function.
ghorrocks is offline   Reply With Quote

Old   March 16, 2016, 03:50
Default
  #3
New Member
 
Ian
Join Date: Oct 2013
Posts: 23
Rep Power: 12
windfire is on a distinguished road
if I want to update the boundary condition every time step according to the results calculated by Fortran, then CFX passes the simulated values to Fortran in next step, how can I make this kind of two way coupling with CEL function?
windfire is offline   Reply With Quote

Old   March 16, 2016, 03:52
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,665
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Put your fortran in the routine which defines the boundary condition for CFX. To do this you need to define a user variable with fortran in CFX. Then you do not need to pass values - the fortran will run as a part of CFX.
ghorrocks is offline   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
CFX 15 & Intel Fortran papteo CFX 4 December 15, 2015 07:06
User Fortran with CFX 14.5.7 on winnt_amd64 HLo CFX 22 December 13, 2015 09:26
How to get vertex(node) number in CFX user Fortran.. flyply CFX 4 February 4, 2014 20:51
cfx a mechanical thermal coupling keeper CFX 1 May 28, 2013 22:34
How to set environmental variables of Intel Fortran +CFX? Christine MO CFX 0 September 23, 2011 12:11


All times are GMT -4. The time now is 01:27.