*MWRITE formatting in a macro

*MWRITE formatting in a macro

Posted in the ANSYS Forum


Austin, TX

#1 Feb 2, 2014
Hello all,

I am trying to write a fairly general macro to output nodal results using the *MWRITE command. The one thing I cannot figure out is how to use input parameters (arguments) when calling the macro to change the FORTRAN formatting of the *MWRITE command. I have tried something like the following code, but I get a "format syntax error":

bb ='F12.6'

When I remove the parameter bb and manually enter the formatting, the *MWRITE command works the way I want it to. Does anyone have any suggestions of how to make this work?


Tell me when this thread is updated:

Subscribe Now Add to my Tracker

Add your comments below

Characters left: 4000

Please note by submitting this form you acknowledge that you have read the Terms of Service and the comment you are posting is in compliance with such terms. Be polite. Inappropriate posts may be removed by the moderator. Send us your feedback.

ANSYS Discussions

Title Updated Last By Comments
topology optimization code_ansys apdl May '17 ju_ange 1
ansys apdl_derivatives May '17 ju_ange 1
Ansys APDL- problem with spring (Feb '17) Feb '17 Anonymous 2
Structural Calculation (Jan '17) Jan '17 genry 1
ANSYS DesignModeler (Jan '17) Jan '17 VSt12 1
Contraction test on ansys (Dec '16) Dec '16 bert 1
Where to find the cohesion value of metal in AN... (Jun '09) Dec '16 tuanpvan 2
More from around the web