-
-
January 13, 2021 at 3:05 pm
ikoutromanos
SubscriberHello, I am using LS-PrePost to postprocess with a research code, and I had a question regarding beam elements: how do I print the beam sectional dimensions in the d3plot file? nI understand that I need to have this information in the IX2() matrix, when I print the geometry information for the beam elements, but the database manual is a bit confusing. It reads that each 2-node element requires 6 numbers in the input, ordered as follows:nConnectivity, orientation node, 2 null entries, and the material number. But after that, the same description says the last two number (sic) contain the beam type and length to width ratio*100 and length to height ratio*100.nShould the aforementioned 2 ratios be placed in the 4th and 5th values? If yes, do I also need to provide any additional information for the element, so that the sectional dimensions are read by PrePost?n -
January 14, 2021 at 2:32 pm
-
January 15, 2021 at 4:55 am
-
January 15, 2021 at 5:49 am
ikoutromanos
SubscriberPhilip, thank you for your reply and for providing the correction. I have 2 follow-up questions:n1) If ix2(5,*) =length/height*100, then why is the height = 0.01*length/ix2(5,*)? Shouldn't the height be 100*length/ix2(5,*) ? n2) I am sorry for my ignorance, but is it possible for you to clarify what we mean by the operation: ix2(4,*) & 0x3F? Do we logically compare every single bit of ix2(4,*) and of the hexadecimal 0x3F, and then somehow return a single number? Also, what is the meaning of ix2(4,*)>>6? Is it a bit shift operation?nI think what would help me a lot would be an example: if length/width = 9, length/height = 11, type = 5, what values would one assign to ix2(4,*) and ix2(5,*)?nAgain, thank you for your reply and help with my questions.nYannisnn -
January 15, 2021 at 6:38 pm
philwho32
Ansys EmployeeHi Yannis,nAgain, you are right, I was not carefully about the statements on the manual, it should be divided by, see the new pcituren
For the example and explanation, read here:nn  before we give the example, let explain the '& 0x3f' and '>>' operations:nn  This is in C language, for single precision number, there is 32bit in an integer, using binary numbering system n          n  there will be 01010101010101001010101011010111 to represent a number (32digit), n  if you are using Hexadecimal number then, you will represent a single precision numbern  like 0xFFFFFFFF, (only 8 digit), each digit will take 4 bits, when I use a number 0x3F, that is using 6 bits, see following tablenn  here is the equivalent table of the number convertionn  Hex  Binaray   Decemaln  0  -   0n  1  -   1n  2  -   10n  3  -   11n  4  -  100n  5  -  101n  6  -  110n  7  -  111n  8  -  1000n  9  -  1001n  A  -  1010  -  10n  B  -  1011  -  11n  C  -  1100  -  12n  D  -  1101  -  13n  E  -  1110  -  14n  F  -  1111  -  15n  3F  - 111111  -  63n   n  in the following statement:n  A = B & 0x3f,  Means we are masking the first 6 bits of B and put that in An  C = D>>6,    means we are shifting the number D by 6 bits to the right, this is equivalent to take D/64nn  Now the example:n  type = 5n  Length = 9.0,n  width = 1.0n  Height = 0.8181818nn  L/W = Length/width = 9.0/1.0 = 9n  L/H = Length/height = 9.0/0.8181818 = 11nn  ix(4,*) = ((L/W)*100.0)<<6 + type = 9*100*64 + 5 = 57605n  ix(5,*) = ((L/H)*100.0) = 11*100 = 1100nn  to revers the process to get width and heightn  W = Width = L / (0.01 * (ix(4,*)>>6) = 9 / 0.01* (57605/64) = 9/9 = 1.0n  H = height = L / (0.01 * ix(5,*)) = 9 / (0.01 * 1100) = 9/11 = 0.818181nn
-
January 15, 2021 at 8:22 pm
ikoutromanos
SubscriberHi Philip,nnThank you for your very detailed response. nBy coincidence, I found out what the specific expressions meant, at the same time as you were posting your reply. I realized that ix2(4,*) &0x3f = modulo( ix2(4,*), 64 ), while ix2(4,2) is simply the result of the integer division that you describe in your message.nThank you for the example you provide: this also clarifies everything.nI only have one final question on this matter: nI experimented with assigning different values to the beam type parameter, and was able to see that each value corresponds to a different cross-sectional shape. In fact, some values even lead to the element being printed as spring or damper. The only sectional shape which I was unable to reproduce was a solid (filled) rectangle. Is there any value of the beam type parameter, for which we have a filled rectangular cross-section in our beam elements?nYannisn -
January 15, 2021 at 9:39 pm
-
January 15, 2021 at 10:08 pm
ikoutromanos
SubscriberPhilip, nOK, I had already tried setting the type = 0, but PrePost is drawing a triangular cross-section for this case. nAnyway, it's not a problem if we cannot draw a rectangular solid section (we can do with drawing a rectangular hollow section, which I have already found).nAs I told you, I tried using different integer values for the beam type parameter. For what it's worth, I obtained the following sectional shapes in LS-PrePost, for the various values of the type parameter:ntype = 1:hollow circlentype = 2: I-section ntype = 3:C-section ntype = 4:L-section ntype = 5:T-section ntype = 6:Rectangular hollow section, ntype = 7:Z section, ntype = 8:triangle ntype = 9:solid circle, ntype = 13:cross, ntype = 14:H-section (rotated I!) ntype = 15:rotated T, ntype = 17:C-section, ntype = 18:U-section (rotated C), ntype = 19:inverted T, ntype = 21:Hexagon, ntype = 22: Inverted U with protrusions, ntype = 23: Inverted Box girder with flange protrusions, ntype = 24:solid circle, ntype = 26:spring (the entire beam element is drawn as a spring)ntype = 27:damper (the entire beam element is drawn as a damper)nYannis -
January 18, 2021 at 4:26 pm
philwho32
Ansys EmployeeHi Yannis,n We have a beam database, where the type of the beam section is 0, and when drawing the beam prism, it is shows as rectangular section. Can you send us your data that is showing as triangular section? nThanks,nPhilip n -
January 18, 2021 at 9:27 pm
ikoutromanos
SubscriberHi Philip,nYes, you are correct. I was not printing the orientation node information in my files (I was printing a 0 for orientation node ID), as I had (mistakenly) assumed that the orientation info should not affect drawing the beam elements as prisms.nI have now fixed this issue (I print the orientation node in my binary files), and I can verify that type = 0 gives a solid rectangular section.nI also need to correct my previous message: type = 9 does NOT correspond to a solid circular cross-section. If one wants to draw a solid circular section, they must set type = 24. nThank you for all your help on this.nYannisn
-
Viewing 9 reply threads
- The topic ‘LS PrePost – How to print beam element sectional dimensions in d3plot file’ is closed to new replies.
Innovation Space
Trending discussions
Top Contributors
-
4663
-
1545
-
1386
-
1230
-
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.


