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

MFX output of simulation time

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 10, 2008, 09:50
Default MFX output of simulation time
  #1
Richard
Guest
 
Posts: n/a
Hello, I have no solution for the following problem. May be someone can help me.

I perform a FSI-analysis (MFX) with Ansys and CFX. I want to write some information into a file. To identify these information I want to append the simulation time. In my opinion the only possibility is, to write these information with a fortran junction box routine, which is called at the end of every timestep. But performing a FSI, this routine is called several times at the same timestep, up to the simulation at this timestep is converged. Furthermore the output of the simulation time seems to be impossible during a multi field analysis. Anyway the fortran routine according to the CFX help doesn't work: ======================================= #include "cfx5ext.h" dllexport(zeitabfrage)

SUBROUTINE ZEITABFRAGE( CZ,DZ,IZ,LZ,RZ ) C #include "MMS.h" #include "stack_point.h" #include "cfd_constants.h" C

INTEGER IZ(*)

CHARACTER CZ(*)*(1)

DOUBLE PRECISION DZ(*)

LOGICAL LZ(*)

REAL RZ(*) C

CHARACTER*(4) CRESLT

REAL TIME

CHARACTER CFROMR*15 C

CALL PEEKR('/FLOW/SOLUTION/LATEST/ZN1/TIME',

& 1,TIME,'STOP',CRESLT,RZ)

IF (CRESLT.NE. 'GOOD') STOP C

CALL MESAGE( 'WRITE','t= '//CFROMR(TIME)) C

END =======================================

So because of the repeatedly call of the routine, the working output of the timestep "DT" for calculating the simulation time makes no sense. Using the Ansys Input file for defining the output with "*CFOPEN" and "*CFCLOS" seems impossible for me because that code ist called only one time for implementing the model.

I hope my characterisation and my english are understandable. May be anybody knows the way to solve this problem. So I would be glad for an answer. Sincere regards, Richard
  Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding heat source to chtMultiRegionFoam maddalena OpenFOAM Programming & Development 58 July 16, 2014 02:57
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
Multiple floating objects CKH OpenFOAM 10 September 21, 2011 23:13
Full pipe 3D using icoFoam cyberbrain OpenFOAM 4 March 16, 2011 10:20
(chtMultiRegionFoam) reducing gravity increase the simulation time ! openfoam1 OpenFOAM 7 March 10, 2010 09:41


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