CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   how to use CFX coupling with external Fortran procedure (https://www.cfd-online.com/Forums/cfx/168092-how-use-cfx-coupling-external-fortran-procedure.html)

windfire March 15, 2016 21:31

how to use CFX coupling with external Fortran procedure
 
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 !

ghorrocks March 16, 2016 01:53

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.

windfire March 16, 2016 02:50

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?

ghorrocks March 16, 2016 02:52

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.


All times are GMT -4. The time now is 06:16.