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 ! |
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.
|
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?
|
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. |