TAGGED: apdl, mechanical-apdl, mwrite
-
-
September 21, 2021 at 12:01 pm
massey95
Subscriber*MWRITE,xxarray,xx_results,txt (34(F11.9, X))
The above code works providing the xxarray has 34 columns. However the formatting line stops working if I use a variable instead.
((par_total_sets)(F11.9, X)) !doesn't work
How can I write result files that vary in size?
Many Thanks!
September 21, 2021 at 2:16 pmmassey95
SubscriberPaulsar on reddit answered this issue. The below code works well for now.
*cfopen, inputCommands,txt
*vwrite,'*MWRITE,xxarray,xx_results,txt'
%C
*vwrite,'(',par_total_sets
%C%d(F11.9, X))
*cfclos
/input,inputCommands,txt
/del,inputCommands,txt
Viewing 1 reply thread- The topic ‘How to use parameter in apdl MWRITE format line to write array of varying size?’ is closed to new replies.
Innovation SpaceTrending discussions- The legend values are not changing.
- LPBF Simulation of dissimilar materials in ANSYS mechanical (Thermal Transient)
- Convergence error in modal analysis
- APDL, memory, solid
- How to model a bimodular material in Mechanical
- Meaning of the error
- Simulate a fan on the end of shaft
- Real Life Example of a non-symmetric eigenvalue problem
- Nonlinear load cases combinations
- How can the results of Pressures and Motions for all elements be obtained?
Top Contributors-
4137
-
1487
-
1318
-
1164
-
1021
Top Rated Tags© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-