# U1 Element Direction Issue

**URL:** <https://calculix.discourse.group/t/u1-element-direction-issue/2603>\
**Category:** Uncategorized\
**Created:** [February 17, 2025, 2:13am UTC](https://calculix.discourse.group/t/u1-element-direction-issue/2603 "2025-02-17T02:13:29Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![SBlade](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@SBlade](https://calculix.discourse.group/u/SBlade)\
**Post date:** [February 17, 2025, 2:13am UTC](https://calculix.discourse.group/t/u1-element-direction-issue/2603/1 "2025-02-17T02:13:29Z")

</div>

Dear ALL,  
I have the following code which was originally excerpted from userbeam.inp and slightly modified to suit my needs, I have difficulty of understanding the orientation and direction assignment in Claculix code, for orthogonal systems it converges with other commercial softwares but if the elements are oblique then it starts to deviate.

I’ve seen that comparison exmaples but this is for very basic element and doesn’t totally corresponds to what I really need.

> **[CalculiX-Examples/Test/BeamSections at c6b5cc68fc5e868afe04ee312763779cad9302ef...](https://github.com/calculix/CalculiX-Examples/tree/c6b5cc68fc5e868afe04ee312763779cad9302ef/Test/BeamSections)**
>
> CalculiX examples by Prof. Martin Kraska from Brandenburg University of Applied Sciences. Excellent starting point to master parametric modelling with CGX and CCX. - calculix/CalculiX-Examples

My shape is actually like that:

 ![image](https://global.discourse-cdn.com/free1/uploads/calculix/original/2X/7/71879191c73f7e3f827be425a73734e456d7e972.png)

I think that orientation is what is malfunctiniong here, the 3rd line under the BEAMSECTION keyword, your guidance will be appreciated.

```auto

** Structure: cantilever beam.
** Test objective: user beam element U1
*NODE, NSET=Nall
1, -4.,0.,0.
2, -5.,0.,3.
3, -1,0,6
4, 4,0,3
5, 3,0,0

*ELEMENT, TYPE=U1
     1, 1,2
     2, 2,3
     3, 3,4
     4, 4,5

*USER ELEMENT,TYPE=U1,NODES=2,INTEGRATION POINTS=2,MAXDOF=6

*ELSET, ELSET=E1
1
*ELSET, ELSET=E2
2
*ELSET, ELSET=E3
3
*ELSET, ELSET=E4
4

*BOUNDARY
1,1,6
5,1,6

*MATERIAL,NAME=EL
*ELASTIC
210000,.3

*BEAM SECTION,ELSET=E1,MATERIAL=EL,SECTION=GENERAL
0.0625,3.2552083333e-4,0.,3.2552083333e-4,0.8333
1,0,0

*BEAM SECTION,ELSET=E2,MATERIAL=EL,SECTION=GENERAL
0.0625,3.2552083333e-4,0.,3.2552083333e-4,0.8333
0,1,0

*BEAM SECTION,ELSET=E3,MATERIAL=EL,SECTION=GENERAL
0.0625,3.2552083333e-4,0.,3.2552083333e-4,0.8333
0,1,0

*BEAM SECTION,ELSET=E4,MATERIAL=EL,SECTION=GENERAL
0.0625,3.2552083333e-4,0.,3.2552083333e-4,0.8333
1,0,0

*STEP
*STATIC
*CLOAD
3,3,1000

*NODE PRINT,NSET=Nall
U

**EL PRINT,ELSET=Eall
**S

*END STEP

```

---

<div class="post-metadata">

**Author:** ![xyont](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/xyont/32/3553_2.png) [@xyont](https://calculix.discourse.group/u/xyont)\
**Post date:** [February 17, 2025, 4:25am UTC](https://calculix.discourse.group/t/u1-element-direction-issue/2603/2 "2025-02-17T04:25:54Z")

</div>

beam element orientation at input just below section properties related to element local axes not global.

below an example of modified version from test case in distribution,

 ![2022-01-14 03_44_16-CalculiX GraphiX](https://global.discourse-cdn.com/free1/uploads/calculix/original/2X/7/71dffc21edd4d09f4029274a876a010d763f6af1.png)

---

<div class="post-metadata">

**Author:** ![SBlade](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@SBlade](https://calculix.discourse.group/u/SBlade)\
**Post date:** [February 17, 2025, 11:37am UTC](https://calculix.discourse.group/t/u1-element-direction-issue/2603/3 "2025-02-17T11:37:19Z")

</div>

thanks for the response I’m reading the section 6.3.3 of user manual but it still mentions the global coordinates, most probably I don’t get it, It would quite good to have that example, do you mind to share that modified example with us ?

 ![image](https://global.discourse-cdn.com/free1/uploads/calculix/original/2X/f/f2d695811dd01ea56553e6e99460344a6ba234c7.png)

---

<div class="post-metadata">

**Author:** ![Calc\_em](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Calc\_em](https://calculix.discourse.group/u/Calc_em)\
**Post date:** [February 17, 2025, 11:43am UTC](https://calculix.discourse.group/t/u1-element-direction-issue/2603/4 "2025-02-17T11:43:34Z")

</div>

> [@SBlade](#):
>
> I’m reading the section 6.3.3 of user manual but it still mentions the global coordinates

Because local directions are defined relative to global directions. So you specify the global X, Y and Z coordinates of a unit vector that will form the local 1 direction.

---

<div class="post-metadata">

**Author:** ![SBlade](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@SBlade](https://calculix.discourse.group/u/SBlade)\
**Post date:** [February 17, 2025, 12:14pm UTC](https://calculix.discourse.group/t/u1-element-direction-issue/2603/5 "2025-02-17T12:14:24Z")

</div>

> Because local directions are defined relative to global directions. So you specify the global X, Y and Z coordinates of a unit vector that will form the local 1 direction.

Thank you but, In any case any working example( more complicated than simple ones which includes U1 element) will be the best guide.

---

<div class="post-metadata">

**Author:** ![xyont](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/xyont/32/3553_2.png) [@xyont](https://calculix.discourse.group/u/xyont)\
**Post date:** [February 17, 2025, 4:11pm UTC](https://calculix.discourse.group/t/u1-element-direction-issue/2603/6 "2025-02-17T16:11:19Z")

</div>

it seems previous orientation not properly aligned since all beam section properties are the same, i do simple modified to visualize with rectangular section.

 ![2025-02-17 23_06_08-CalculiX GraphiX](https://global.discourse-cdn.com/free1/uploads/calculix/original/2X/f/ff6d8a9dcb33e3a93913fd5e9521c2b2b40917e5.png)

and modified version of `swing.inp` from test case.

 ![2022-01-14 03_44_00-exor.inp - SciTE](https://global.discourse-cdn.com/free1/uploads/calculix/original/2X/6/63cf81bebd241b503eb4fa29c130abcf5f467eee.png)

---

<div class="post-metadata">

**Author:** ![Disla](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/disla/32/3548_2.png) [@Disla](https://calculix.discourse.group/u/Disla)\
**Post date:** [February 17, 2025, 5:28pm UTC](https://calculix.discourse.group/t/u1-element-direction-issue/2603/7 "2025-02-17T17:28:52Z")

</div>

> [@SBlade](#):
>
> but if the elements are oblique then it starts to deviate

Do you meanlike this?. ¿Is that deviation wrong or unexpected?

 ![imagen](https://global.discourse-cdn.com/free1/uploads/calculix/original/2X/a/acc675846b8fbc28eccb4a29654e628d3d5ba778.png)

Try to refine:

 ![imagen](https://global.discourse-cdn.com/free1/uploads/calculix/original/2X/6/6dc0f96b7559c9f71938c3b363d3444d7fb5af1b.png)

---

<div class="post-metadata">

**Author:** ![SBlade](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@SBlade](https://calculix.discourse.group/u/SBlade)\
**Post date:** [February 17, 2025, 5:38pm UTC](https://calculix.discourse.group/t/u1-element-direction-issue/2603/8 "2025-02-17T17:38:30Z")

</div>

Exact solution is more like yours, look below almost identical

 ![image](https://global.discourse-cdn.com/free1/uploads/calculix/original/2X/a/adeada43adaf12698917bec40cb696b3c7001f35.png)

---

<div class="post-metadata">

**Author:** ![SBlade](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@SBlade](https://calculix.discourse.group/u/SBlade)\
**Post date:** [February 17, 2025, 5:41pm UTC](https://calculix.discourse.group/t/u1-element-direction-issue/2603/9 "2025-02-17T17:41:29Z")

</div>

> [@Disla](#):
>
> Do you meanlike this?. ¿Is that deviation wrong or unexpected?

I mean if you look the displacement I got from runing the script that I previously shared deviation only occurs on rotational component of 6 DOF node 5th component see below

 ![2025-02-17 203546](https://global.discourse-cdn.com/free1/uploads/calculix/original/2X/5/5eebf40e96053f712464caa69916ccd405b06ef8.png)

---

<div class="post-metadata">

**Author:** ![SBlade](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@SBlade](https://calculix.discourse.group/u/SBlade)\
**Post date:** [February 17, 2025, 5:45pm UTC](https://calculix.discourse.group/t/u1-element-direction-issue/2603/10 "2025-02-17T17:45:43Z")

</div>

> [@Disla](#):
>
> Try to refine:

@Disla If you run my code with correct direction/up vectors what displacement do you get ?

---

<div class="post-metadata">

**Author:** ![xyont](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/xyont/32/3553_2.png) [@xyont](https://calculix.discourse.group/u/xyont)\
**Post date:** [February 17, 2025, 6:04pm UTC](https://calculix.discourse.group/t/u1-element-direction-issue/2603/11 "2025-02-17T18:04:08Z")

</div>

user element of beam (U1) and shell (US3) in CalculiX is improved version from standard structural analysis package in the market such as SAP2000. I can confirm to be more accurate for shell user element, but not yet for beam.

it can be clearer if the problem sketch from other FE results provided, specifically in beam shape and section size, element local axes rotation also.

regarding to beam deformation along member length is only visualization, as i know result of single element processed further by slope-deflection analysis to eliminated meshing or element division and computationally effective.

---

<div class="post-metadata">

**Author:** ![SBlade](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@SBlade](https://calculix.discourse.group/u/SBlade)\
**Post date:** [February 17, 2025, 6:46pm UTC](https://calculix.discourse.group/t/u1-element-direction-issue/2603/12 "2025-02-17T18:46:09Z")

</div>

> [@xyont](#):
>
> user element of beam (U1) and shell (US3) in CalculiX is improved version from standard structural analysis package in the market such as SAP2000. I can confirm to be more accurate for shell user element, but not yet for beam.

Thanks for clarification, it is good to hear that shell element is more robust, it seems that I was exepecting Calculix to be in total convergence with standart applications.

Aside from that, I shuffled through the code that I wrote in the past and noticed that I used (PREMIZNIECKI Eq. 5.116 / Fig 5.4) local stiffness matrix which was totally finding the same results with SAP2000.

I know it is very hard to respond immediatley to that but is that implementation(PREMIZNIECKI Eq. 5.116 / Fig 5.4) resemble the way that Calculix handles the Timoshenko beam or does it differ ?

Thanks in advance,

---

<div class="post-metadata">

**Author:** ![xyont](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/xyont/32/3553_2.png) [@xyont](https://calculix.discourse.group/u/xyont)\
**Post date:** [February 17, 2025, 7:13pm UTC](https://calculix.discourse.group/t/u1-element-direction-issue/2603/13 "2025-02-17T19:13:21Z")

</div>

is the book mentioned from sixty era? probably differs with CalculiX user beam element implementation ([link](https://www.researchgate.net/publication/259345543_An_efficient_3D_Timoshenko_beam_element_with_consistant_shape_functions))

---

<div class="post-metadata">

**Author:** ![Disla](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/disla/32/3548_2.png) [@Disla](https://calculix.discourse.group/u/Disla)\
**Post date:** [February 17, 2025, 10:21pm UTC](https://calculix.discourse.group/t/u1-element-direction-issue/2603/14 "2025-02-17T22:21:53Z")

</div>

Hi,

The frame has a maximum height of 6 units and your vertical displacement is 38.69 units.  
I know it’s only aesthetic but I have reduced the load to 10N.

My numbers and reference are different. I am using as the strong axis the same and only one they all have in common. (0,1,0) It shouldn’t matter as they all have the same section,… but.  
I’m using a Timoshenko shear coefficient for a rectangle cross-section of K= 3/2=1.5.

 ![imagen](https://global.discourse-cdn.com/free1/uploads/calculix/original/2X/3/32289b7413e9ca0b8ea5b66a0f1cb779105a60bf.png)

```auto
*NODE, NSET=Nall
1, -4.,0.,0.
2, -5.,0.,3.
3, -1,0,6
4, 4,0,3
5, 3,0,0
*NSET,NSET=Node_1
1
*NSET,NSET=Node_5
5
*NSET,NSET=Nodes_all
1
2
3
4
5
*ELEMENT, TYPE=U1,ELSET=Eall
1,1,2
2,2,3
3,3,4
4,4,5
*USER ELEMENT,TYPE=U1,NODES=2,INTEGRATION POINTS=2,MAXDOF=6
*ELSET, ELSET=E1
1
*ELSET, ELSET=E2
2
*ELSET, ELSET=E3
3
*ELSET, ELSET=E4
4
*TRANSFORM,NSET=Node_1,TYPE=R
-1,0,3,0,1,0
*TRANSFORM,NSET=Node_5,TYPE=R
-1,0,-3,0,1,0
*BOUNDARY
1,1,6
5,1,6
*MATERIAL,NAME=EL
*ELASTIC
210000.,0.3
*BEAM SECTION,ELSET=E1,MATERIAL=EL,SECTION=GENERAL
0.0625,3.25520833333333E-4,0.0,3.25520833333333E-4,0.833333
0,1,0
*BEAM SECTION,ELSET=E2,MATERIAL=EL,SECTION=GENERAL
0.0625,3.25520833333333E-4,0.0,3.25520833333333E-4,0.833333
0,1,0
*BEAM SECTION,ELSET=E3,MATERIAL=EL,SECTION=GENERAL
0.0625,3.25520833333333E-4,0.0,3.25520833333333E-4,0.833333
0,1,0
*BEAM SECTION,ELSET=E4,MATERIAL=EL,SECTION=GENERAL
0.0625,3.25520833333333E-4,0.0,3.25520833333333E-4,0.833333
0,1,0
*STEP
*STATIC
*CLOAD
3,3,10
*NODE PRINT,NSET=Nodes_all,GLOBAL=YES
U
*EL PRINT,ELSET=Eall,GLOBAL=YES
S
*END STEP

```

---

<div class="post-metadata">

**Author:** ![SBlade](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@SBlade](https://calculix.discourse.group/u/SBlade)\
**Post date:** [February 18, 2025, 4:06am UTC](https://calculix.discourse.group/t/u1-element-direction-issue/2603/15 "2025-02-18T04:06:03Z")

</div>

> [@xyont](#):
>
> is the book mentioned from sixty era?

yes I think so I can not find it even among my own books, google retrives nothing, pretty weird

Thanks for the link btw

---

<div class="post-metadata">

**Author:** ![SBlade](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@SBlade](https://calculix.discourse.group/u/SBlade)\
**Post date:** [February 18, 2025, 4:31am UTC](https://calculix.discourse.group/t/u1-element-direction-issue/2603/16 "2025-02-18T04:31:35Z")

</div>

I can confirm that with your settings in 2nd case I get the same results as yours in Calculix,  
1st example’s 5th DOF rotation is more than expected, IMHO I’d expect %3~4 percentage deviation normal but %12,48 is realy huge.

 ![image](https://global.discourse-cdn.com/free1/uploads/calculix/original/2X/c/c7634bdc5f2fae01308913c9cb0b6f481c0724ba.png)

---

<div class="post-metadata">

**Author:** ![Disla](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/disla/32/3548_2.png) [@Disla](https://calculix.discourse.group/u/Disla)\
**Post date:** [February 18, 2025, 8:06am UTC](https://calculix.discourse.group/t/u1-element-direction-issue/2603/17 "2025-02-18T08:06:10Z")

</div>

Which is your deviation criteria?. Mine for first node\_first term is computed as:(0.20469-0.2117)/0.2117\*100=+/-3.3% (¿0.7%?)

Regarding the expected values, I think results are very good for just 1 element. Your reference seems to have at leat 6 sections per member. That’s not fair.

---

<div class="post-metadata">

**Author:** ![Disla](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/disla/32/3548_2.png) [@Disla](https://calculix.discourse.group/u/Disla)\
**Post date:** [February 18, 2025, 11:51am UTC](https://calculix.discourse.group/t/u1-element-direction-issue/2603/18 "2025-02-18T11:51:40Z")

</div>

Reading in detail the original paper used for implementing U1 elements, seems there could be some error in the value and meaning of the Timoshenko shear coefficient shown in the manual.

Mr. Yunhua, Luo paper shows the element stiﬀness matrix terms where K always go toghether with G and A (kGA). That means K is not the Timoshenko shear coefficient 3/2 but it’s inverse.

By other hand Sblade value for the rectangular beam (K=0.83333) is the inverse of the Form Factor which is something different.

Now it is not clear to me what value is the user expected to enter for the User element K?

This pdf could maybe bring some light. Just Goole it.

SHEAR FACTORS FOR BEAM ANALYSIS By Tom Irvine

EDITED: Seems it’s just a different naming convention. Wikipedia uses the Timoshenko shear coefficient name for the K value accompanying GA. So U1 example above should contain a K value of 2/3 instead of 3/2 (Modified) or it’s more accurate version (5/6 used by Mr.Kraska on his Github example file)

 ![imagen](https://global.discourse-cdn.com/free1/uploads/calculix/original/2X/9/92747a0128a49e42cea761177adc530aa6b1bda8.png)  
3. Gere and Timoshenko, Mechanics of Materials, Brooks/Cole Engineering Division,  
Monterey, California, 1984.

---

<div class="post-metadata">

**Author:** ![xyont](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/xyont/32/3553_2.png) [@xyont](https://calculix.discourse.group/u/xyont)\
**Post date:** [February 18, 2025, 5:34pm UTC](https://calculix.discourse.group/t/u1-element-direction-issue/2603/20 "2025-02-18T17:34:33Z")

</div>

i deleted previous post since it’s clear related to inverse value in table by equation formed, one use ‘k’ as division and many other as multiplier. Lookup table need to use form factors as noticed more accurate even naming match with another but roughly approach.

btw, nice table is that general in use? i miss two columns but did not know where is gone.

---

<div class="post-metadata">

**Author:** ![Disla](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/disla/32/3548_2.png) [@Disla](https://calculix.discourse.group/u/Disla)\
**Post date:** [February 18, 2025, 8:03pm UTC](https://calculix.discourse.group/t/u1-element-direction-issue/2603/21 "2025-02-18T20:03:13Z")

</div>

> [@xyont](#):
>
> one use ‘k’ as division

By “one” I guess you mean Mr.Timoshenko?

[Next page](https://calculix.discourse.group/t/u1-element-direction-issue/2603.md?page=2)
