TAGGED: array
-
-
August 30, 2024 at 3:50 pmMehdi BaghaeeSubscriber
In APDL, If A and B are two arrays with the same dimentions, how is it possible to simply substitute the entire value of B in A without substituing one by one (using DO loop)?
A=B , *SET, A, B and *VOPER, A, EQ, B produces error (Parameter A needs subscripts).
-
September 13, 2024 at 12:29 pmAshish KhemkaForum Moderator
Hi Mehdi,
In APDL (ANSYS Parametric Design Language), you can substitute the entire value of one array into another without using a DO loop by using the
*VOPER
command. This command allows you to perform vector operations on entire arrays. Here’s how you can do it:*VOPER, A, B, COPY
This command will copy all the values from array
B
into arrayA
in one step, assuming both arrays have the same dimensions.Regards,
Ashish Khemka
-
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Ansys Innovation Space
Trending discussions
- Speed up simulation in HFSS
- Workbench license error
- ansys fluent error when opening it “unexpected license problem”
- Unexpected error on Workbench: Root element not found.
- not able to get result
- Unable to recover corrupted project in Workbench
- Unattended (silent) installation of 2024R2 & -productfile switch
- Unexpected issues with SCCM deployment of Ansys Fluids and Structures 2024 R1
- Questions and recommendations: Septum Horn Antenna
- AQWA: Hydrodynamic response error
Top Contributors
-
1191
-
513
-
488
-
225
-
209
Top Rated Tags
© 2024 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.