TAGGED: #mechanical-#workbench, apdl, peteroznewman, PyMAPDL, remote-points
-
-
February 12, 2023 at 10:06 pm
iliasse diaz
Subscriber -
February 13, 2023 at 1:50 pm
Chandra Sekaran
Ansys EmployeeThe OPEN and WRITE commands are not APDL commands. Please use *CFOPEN and *VWRITE (and *CFCLOSE)
open('frequency_rotation.txt')
write(unit, 'Frequency (Hz) Rotation_X Rotation_Y Rotation_Z')Also in below do loop I do not see a SET command to change the result set from one mode to another. Use SET command. Also may be you should do *VWRITE inside the DO loop and after *ENDDO use *CFCLOSE
do i = 1, num_freq
*get, my_freq, active,,set,freq
my_rot_x=ROTX(Measure_Pilot)
my_rot_y=ROTY(Measure_Pilot)
my_rot_z=ROTZ(Measure_Pilot)
write(unit, my_freq, my_rot_x, my_rot_y, my_rot_z)
enddo -
February 13, 2023 at 8:20 pm
iliasse diaz
Subscriber/com, *
/com, *******************************************
/com, *******************************************
/com, *******************************************
/com, *
/com, Check rotation result
fini
/post1
set,list
set,1,49,,AMPL ! want amplitude
*get,num_freq,nlst,nfreq
*CFOPEN,unit,'frequency_rotation.txt'
*VWRITE,unit,'Frequency (Hz) Rotation_X Rotation_Y Rotation_Z'
do i = 1, num_freq
*get, my_freq, active,,set,freq
my_rot_x=ROTX(Measure_Pilot)
my_rot_y=ROTY(Measure_Pilot)
my_rot_z=ROTZ(Measure_Pilot)
*VWRITE,unit,my_freq,my_rot_x,my_rot_y,my_rot_z
enddo
*CFCLOSE,unit
/com, *
/com, *******************************************
/com, *******************************************
/com, *******************************************
/com, *
this not work either. What should i correct ? -
February 14, 2023 at 2:27 pm
Chandra Sekaran
Ansys EmployeeThe *VWRITE command should be followed by format in C or Fortran. For example,
*VWRITE,unit,my_freq,my_rot_x,my_rot_y,my_rot_z
%i,%e,%e,%e,%e
-
February 14, 2023 at 10:35 pm
iliasse diaz
SubscriberThis is the modified code which follows your advices.
-
February 15, 2023 at 2:38 pm
iliasse diaz
Subscriber
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Error with workbench SceneGraphChart
- How can I renew ANSYS student version license?
- License Error
- Workbench error
- Workbench not opening
- Sizing on Ansys Workbench 19.2
- Error: Exception of type ‘Ansys.Fluent.Cortex.Cortex not availableException’ was thrown
- Ansys2021R2 ansys212 seg faults immediately on RHEL8.2
- Licensing error while opening ANSYS Mechanical
- An error occurred when the post processor attempted to load a specific result.
-
3744
-
2573
-
1821
-
1236
-
594
© 2023 Copyright ANSYS, Inc. All rights reserved.