-
-
July 30, 2019 at 5:37 pm
jordimarce
SubscriberHi, I need to write my frequency response results (deformation, velocity, phase, for example) in a text file. I can write thew array for each substep and include the frequency of each substep and the displacement in the freuqency range. But I did not find how to include the respective velocity or the phase in the array. (I include the code I am using, which works).
/post1
*set,last
*get,freq_count,active,,set,sbst
*dim,freq_array,ARRAY,freq_count,2
*do,ii,1,freq_count
SET,1,ii
*GET,temp_b,ACTIVE,0,SET,FREQ
freq_array(ii,1)=temp_b
cmsel,s,MY_KEYPOINT
*get,node_id,NODE,0,num,max
*get,displ,NODE,node_id,U,sum
freq_array(ii,2)=displ
*enddo
*cfopen,'myharmonic','txt'
*vwrite,'Freq','displ'
(A8,X,A8)
*vwrite,freq_array(1,1),freq_array(1,2)
(F6.0,X,F10.2)
*cfclos
-
July 31, 2019 at 5:29 am
jj77
SubscriberThe velocity is simple. Multiply displacements with frequency array and time it with 2*pi. That is because velocity is angular frequency times displacement.
For the phase have a look at plcplx commands and search for examples.
https://books.google.co.uk/books?id=o9K-q9G6pgIC&pg=PA99&lpg=PA99&dq=plcplx+and+/output+and+ansys&source=bl&ots=pSc04cIwgM&sig=ACfU3U3axpySQD2zFjgVJp3llMSRuSIcTA&hl=en&sa=X&ved=2ahUKEwjI9vO0ud7jAhWIUcAKHT1OBX4Q6AEwGHoECAkQAQ#v=onepage&q=plcplx%20and%20%2Foutput%20and%20ansys&f=false
-
- You must be logged in to reply to this topic.

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.
- Saving & sharing of Working project files in .wbpz format
- An Unknown error occurred during solution. Check the Solver Output…..
- Understanding Force Convergence Solution Output
- Solver Pivot Warning in Beam Element Model
- Colors and Mesh Display
- How to calculate the residual stress on a coating by Vickers indentation?
- whether have the difference between using contact and target bodies
- What is the difference between bonded contact region and fixed joint
- The solver engine was unable to converge on a solution for the nonlinear problem as constrained.
- User manual
-
2564
-
2080
-
1299
-
1106
-
459
© 2023 Copyright ANSYS, Inc. All rights reserved.