how to get and save in an external text file the maximum nodal displacements in y direction for a volume

HS
hugo.silva@citin.pt
Fri, Feb 17, 2023 3:51 PM

Hi,

I am doing a static analysis to a volume. How can I get and save in an external  text file the maximum nodal displacements in y direction for the volume ID 1 and 2?

Best regards,

Hugo Silva, Ph.D.,

Research and Development Engineer,

CiTin, Portugal

Hi, I am doing a static analysis to a volume. How can I get and save in an external text file the maximum nodal displacements in y direction for the volume ID 1 and 2? Best regards, Hugo Silva, Ph.D., Research and Development Engineer, CiTin, Portugal
MG
Mohammad Gharaibeh
Sat, Feb 18, 2023 1:59 PM

Hi Hugo,

I think ANSYS can provide displacements for nodes not volumes, as I
remember.

If I understand your post correctly, You can select your volumes 1 and 2
using VSEL then use NSLV to select the nodes associated with such vols.
Then using *GET you might be able to extract the y-displacements. To export
to a file, try *VWRITE.

This is a very basic procedure. Maybe someone else could provide a more
sophisticated method.

Good luck!
Mohammad

On Friday, February 17, 2023, hugo.silva@citin.pt wrote:

Hi,

I am doing a static analysis to a volume. How can I get and save in an
external  text file the maximum nodal displacements in y direction for the
volume ID 1 and 2?

Best regards,

Hugo Silva, Ph.D.,

Research and Development Engineer,

CiTin, Portugal


Xansys mailing list -- xansys-temp@list.xansys.org
To unsubscribe send an email to xansys-temp-leave@list.xansys.org
If you are receiving too many emails from XANSYS please consider changing
account settings to Digest mode which will send a single email per day.

Please send administrative requests such as deletion from XANSYS to
xansys-mod@tynecomp.co.uk and not to the list

--

---====
Mohammad A Gharaibeh, Ph.D.
Associate Professor
Department of Mechanical Engineering
The Hashemite University
P.O. Box 330127
Zarqa, 13133, Jordan
Tel: +962 - 5 - 390 3333 Ext. 4771
Fax: +962 - 5 - 382 6348

---====

Hi Hugo, I think ANSYS can provide displacements for nodes not volumes, as I remember. If I understand your post correctly, You can select your volumes 1 and 2 using VSEL then use NSLV to select the nodes associated with such vols. Then using *GET you might be able to extract the y-displacements. To export to a file, try *VWRITE. This is a very basic procedure. Maybe someone else could provide a more sophisticated method. Good luck! Mohammad On Friday, February 17, 2023, <hugo.silva@citin.pt> wrote: > Hi, > > I am doing a static analysis to a volume. How can I get and save in an > external text file the maximum nodal displacements in y direction for the > volume ID 1 and 2? > > Best regards, > > Hugo Silva, Ph.D., > > Research and Development Engineer, > > CiTin, Portugal > _______________________________________________ > Xansys mailing list -- xansys-temp@list.xansys.org > To unsubscribe send an email to xansys-temp-leave@list.xansys.org > If you are receiving too many emails from XANSYS please consider changing > account settings to Digest mode which will send a single email per day. > > Please send administrative requests such as deletion from XANSYS to > xansys-mod@tynecomp.co.uk and not to the list > -- ===================================== Mohammad A Gharaibeh, Ph.D. Associate Professor Department of Mechanical Engineering The Hashemite University P.O. Box 330127 Zarqa, 13133, Jordan Tel: +962 - 5 - 390 3333 Ext. 4771 Fax: +962 - 5 - 382 6348 =====================================
IG
Iker Gomez
Sat, Feb 18, 2023 3:44 PM

this is the code I'd use in APDL following the simplistic method that
Mohammad suggested

Crate a ELEMENT component  for the elements in the specific volumes:
vsel,s,,,volid1 !replace volid1 with the number of your volume
eslv, s, 1
cm, CMVOL1, elem
vsel,s,,,volid2 !replace volid1 with the number of your volume
eslv, s, 1
cm, CMVOL2, elem
!assuming you are already under /post1
*cfopen, outputdata, txt
*vwrite
component,DYMax
*do, i, 1, 2, 1
cmsel, s, cmvol%i%
nsle
*get, nmax, node,,num, max
*vget, nmasm, node,,nsel
*vmask, nmask
*vget, disp_y, node,,u, y
*vmask, nmask
*vscfun, dymax, MAX, disp_y
*vwrite, i,dymax
CMVOL%i, %f
*enddo
*cfclose

Other approaches can be followed:

  1. APDL: in the *do loop just plot the UY figure and *GET the maximum value
    of the current displayed plot
    2)Python scripting in Ansys Mechanical

Best regards
iker


Iker Gomez
Static Structures / Optimization associate fellow
ITP Aero
Queretaro, Mexico


El vie, 17 feb 2023 a las 9:52, hugo.silva@citin.pt escribió:

Hi,

I am doing a static analysis to a volume. How can I get and save in an
external  text file the maximum nodal displacements in y direction for the
volume ID 1 and 2?

Best regards,

Hugo Silva, Ph.D.,

Research and Development Engineer,

CiTin, Portugal


Xansys mailing list -- xansys-temp@list.xansys.org
To unsubscribe send an email to xansys-temp-leave@list.xansys.org
If you are receiving too many emails from XANSYS please consider changing
account settings to Digest mode which will send a single email per day.

Please send administrative requests such as deletion from XANSYS to
xansys-mod@tynecomp.co.uk and not to the list

--
Iker Gómez Vázquez
Santa Rita 102, #52
Queretaro 76230
Mexico
Tfno. +52 442 2841569

this is the code I'd use in APDL following the simplistic method that Mohammad suggested Crate a ELEMENT component for the elements in the specific volumes: vsel,s,,,volid1 !replace volid1 with the number of your volume eslv, s, 1 cm, CMVOL1, elem vsel,s,,,volid2 !replace volid1 with the number of your volume eslv, s, 1 cm, CMVOL2, elem !assuming you are already under /post1 *cfopen, outputdata, txt *vwrite component,DYMax *do, i, 1, 2, 1 cmsel, s, cmvol%i% nsle *get, nmax, node,,num, max *vget, nmasm, node,,nsel *vmask, nmask *vget, disp_y, node,,u, y *vmask, nmask *vscfun, dymax, MAX, disp_y *vwrite, i,dymax CMVOL%i, %f *enddo *cfclose Other approaches can be followed: 1) APDL: in the *do loop just plot the UY figure and *GET the maximum value of the current displayed plot 2)Python scripting in Ansys Mechanical Best regards iker *********************** Iker Gomez Static Structures / Optimization associate fellow ITP Aero Queretaro, Mexico ********************** El vie, 17 feb 2023 a las 9:52, <hugo.silva@citin.pt> escribió: > Hi, > > I am doing a static analysis to a volume. How can I get and save in an > external text file the maximum nodal displacements in y direction for the > volume ID 1 and 2? > > Best regards, > > Hugo Silva, Ph.D., > > Research and Development Engineer, > > CiTin, Portugal > _______________________________________________ > Xansys mailing list -- xansys-temp@list.xansys.org > To unsubscribe send an email to xansys-temp-leave@list.xansys.org > If you are receiving too many emails from XANSYS please consider changing > account settings to Digest mode which will send a single email per day. > > Please send administrative requests such as deletion from XANSYS to > xansys-mod@tynecomp.co.uk and not to the list > -- Iker Gómez Vázquez Santa Rita 102, #52 Queretaro 76230 Mexico Tfno. +52 442 2841569
CW
Christopher Wright
Sat, Feb 18, 2023 9:20 PM

On Feb 18, 2023, at 7:59 AM, Mohammad Gharaibeh via Xansys xansys-temp@list.xansys.org wrote:

If I understand your post correctly, You can select your volumes 1 and 2
using VSEL then use NSLV to select the nodes associated with such vols.
Then using *GET you might be able to extract the y-displacements. To export
to a file, try *VWRITE.

Unless I mis-remember, this was aways a pretty trivial problem. Once you issued NSLV you can just list the displacements to a text file; then open a spreadsheet program and import the text listing. You'll have columns with al 6 displacements and it's simple to delete the columns you don't want. In the text file you can also format the numerical format of each column for the type of notation and rounding format you prefer. Arithmetic rounding and text formatting in Excel or whatever spreadsheet you like is always easier that fiddling around with the ANSYS numerical formats, and you can export Excel to your report writing software or do sorting and math operations much easier and better than with ANSYS. If someone handed me an ANSYS listing when I asked for summary results, I tended to be grumpy and dismissive and no fun at all.

Christopher Wright P.E. (ret'd) |"They couldn't hit an elephant at
chrisw@skypoint.com | this distance" (last words of Gen.
http://www.skypoint.com/members/chrisw/ | John Sedgwick, Spotsylvania (1864)

> On Feb 18, 2023, at 7:59 AM, Mohammad Gharaibeh via Xansys <xansys-temp@list.xansys.org> wrote: > > If I understand your post correctly, You can select your volumes 1 and 2 > using VSEL then use NSLV to select the nodes associated with such vols. > Then using *GET you might be able to extract the y-displacements. To export > to a file, try *VWRITE. Unless I mis-remember, this was aways a pretty trivial problem. Once you issued NSLV you can just list the displacements to a text file; then open a spreadsheet program and import the text listing. You'll have columns with al 6 displacements and it's simple to delete the columns you don't want. In the text file you can also format the numerical format of each column for the type of notation and rounding format you prefer. Arithmetic rounding and text formatting in Excel or whatever spreadsheet you like is always easier that fiddling around with the ANSYS numerical formats, and you can export Excel to your report writing software or do sorting and math operations much easier and better than with ANSYS. If someone handed me an ANSYS listing when I asked for summary results, I tended to be grumpy and dismissive and no fun at all. Christopher Wright P.E. (ret'd) |"They couldn't hit an elephant at chrisw@skypoint.com | this distance" (last words of Gen. http://www.skypoint.com/members/chrisw/ | John Sedgwick, Spotsylvania (1864)