# Surface spring : can not reproduce a case previuosly succeed

**URL:** <https://prepomax.discourse.group/t/surface-spring-can-not-reproduce-a-case-previuosly-succeed/1237>\
**Category:** General Questions\
**Created:** [November 11, 2023, 8:30am UTC](https://prepomax.discourse.group/t/surface-spring-can-not-reproduce-a-case-previuosly-succeed/1237 "2023-11-11T08:30:22Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![synt](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/synt/32/4658_2.png) [@synt](https://prepomax.discourse.group/u/synt)\
**Post date:** [November 11, 2023, 8:30am UTC](https://prepomax.discourse.group/t/surface-spring-can-not-reproduce-a-case-previuosly-succeed/1237/1 "2023-11-11T08:30:22Z")

</div>

hi,

i’m using latest development versions, need to know compression only features about how it’s actually work. Before conduct of these advanced new feature, i need to do compared to surface spring case i [previously](https://prepomax.discourse.group/t/units-of-spring-stiffness/45) succeed. However, result out of expectation: deformation shown unstable, deflection is too large and nearly to rigid body motions. Also, stress along longitudinal of section shown uneven in distribution and low in values.

since this feature is an equivalency to \*Foundation keyword in Abaqus which not available in CalculiX i.e special implementation of PrePoMax. So, i checked each step by step: only found a discrepancy in nodal spring values defined by PrePoMax, try to do re-adjustment still not changing the results and global behavior of structural model.

maybe i miss something, or it’s related to CalculiX solver versions, but i need to make it sure before submit a bug. Attached PrePoMax files ([download](https://we.tl/t-62rWpDsSgw)) and some screenshot below,

regards,

 ![2023-11-11 14_38_35-](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/f/f968b0692921f1afa587a7a6ddb616c0b2d9251a.png)

 ![2023-11-11 14_38_56-](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/a/a2bbdfbe56c8784904d795168325db40c3634f4b.png)

 ![2023-11-11 14_48_26-](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/7/7783a87cbca47e5ecdf1ffe8b0c1bf59db01ad74.png)

 ![2023-11-11 13_27_59-Calculix keyword editor](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/f/fcfa08f6266f334d18d1a24e7693d1ae7f5a7cd2.png)

 ![2023-11-11 15_04_33-Untitledmesh.skp - SketchUp](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/b/b3fa18c343bedc021c7f8f930d7cf4535f1f9b20.png)

 ![2023-11-11 14_44_53-SMath Solver - Worksheet1spring.sm_](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/f/fe12a922a8497d14c7a0e55df5e3acc44b2da06f.png)

---

<div class="post-metadata">

**Author:** ![ANYS](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/anys/32/7737_2.png) [@ANYS](https://prepomax.discourse.group/u/ANYS)\
**Post date:** [November 11, 2023, 1:25pm UTC](https://prepomax.discourse.group/t/surface-spring-can-not-reproduce-a-case-previuosly-succeed/1237/2 "2023-11-11T13:25:42Z")

</div>

This looks like some units are internally wrong converted in Prepomax or some Constraining problem?

Expected z displazement:

P/Ks=-0.0018 [MPa] /0.018 [Mpa/mm]= -0.1 mm.

Pressure is compressive . I think the representative value should be S33.

S33=-0.0018 MPa (Must be the same as applied)

Ccx + Mecway delivers the right displacement but just one half the expected S33 on shells. I guess it’s averaging with the zero value from the springs side ¿?¿.

 ![imagen](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/b/bb67e37ed53ba521f1301283b23407b5c5fecf54.png)

When doing the solid model response is right. I think this is a prepomax problem not calculix.

 ![imagen](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/b/bef63c4f2416810cb51de0d2fc86bac56d8a8343.png)

---

<div class="post-metadata">

**Author:** ![synt](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/synt/32/4658_2.png) [@synt](https://prepomax.discourse.group/u/synt)\
**Post date:** [November 11, 2023, 1:50pm UTC](https://prepomax.discourse.group/t/surface-spring-can-not-reproduce-a-case-previuosly-succeed/1237/3 "2023-11-11T13:50:22Z")

</div>

> [@ANYS](#):
>
> or some Constraining problem?

probably no, i’m frequently used single node to constraint in-plane displacement only for stability purpose. Previous CalculiX version is working well, i.e no generate unstable structural models or rigid body motion.

> [@ANYS](#):
>
> When doing the solid model response is right. I think this is a prepomax problem not calculix.

i’m still thinking it’s related to CalculiX solver in the latest versions, i just remodeling using solid element and the result is uneven behavior similar to shell models.

 ![2023-11-11 20_40_32-](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/5/58c8ef2d55af2fccaedf4f4dbbcdd69bf2407612.png)

 ![2023-11-11 20_42_18-](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/6/6606c4f8bbd62d1f39df6d10897f5119ea8a6014.png)

 ![2023-11-11 20_42_40-](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/b/bc3e0397b1e3e2c19987bec54cec5f0786bd1110.png)

---

<div class="post-metadata">

**Author:** ![ANYS](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/anys/32/7737_2.png) [@ANYS](https://prepomax.discourse.group/u/ANYS)\
**Post date:** [November 11, 2023, 2:58pm UTC](https://prepomax.discourse.group/t/surface-spring-can-not-reproduce-a-case-previuosly-succeed/1237/4 "2023-11-11T14:58:52Z")

</div>

U3 displacement is 1E+11 on a model with 3E+2 thickness. There is some issue on the BC or units. It fails in Nonlinear.

---

<div class="post-metadata">

**Author:** ![ANYS](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/anys/32/7737_2.png) [@ANYS](https://prepomax.discourse.group/u/ANYS)\
**Post date:** [November 11, 2023, 3:16pm UTC](https://prepomax.discourse.group/t/surface-spring-can-not-reproduce-a-case-previuosly-succeed/1237/5 "2023-11-11T15:16:12Z")

</div>

Changing the surface Spring stiffness doesn’t change anything.

¿Is this right?

\*Spring, Elset=Surface\_Spring-1\_26\_DOF\_3  
**0** \<--------  
337500.

First line is Blank or an integer indicating the involved degree of freedom ¿Right?  
¿What does 0 mean?

Also, the shell has free body rotation arround z.

---

<div class="post-metadata">

**Author:** ![synt](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/synt/32/4658_2.png) [@synt](https://prepomax.discourse.group/u/synt)\
**Post date:** [November 11, 2023, 3:27pm UTC](https://prepomax.discourse.group/t/surface-spring-can-not-reproduce-a-case-previuosly-succeed/1237/6 "2023-11-11T15:27:53Z")

</div>

i downloaded again of previous version (2018) as reference, re-run analysis and it seems i can be wrong. It may not related to the solver, but i have no idea which input section is inappropriate and difference with [previous version of PrePoMax known working properly](https://prepomax.discourse.group/t/units-of-spring-stiffness/45/5).

 ![2023-11-11 22_06_29-boef.inp - SciTE](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/3/30d4632b04feeb57d80e2fda7595e5e8b2080420.png)

 ![2023-11-11 22_12_09-CalculiX GraphiX](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/a/a7d2347ae2e04b8a5ff42674a7e6217e791a1c25.png)

 ![2023-11-11 22_05_16-CalculiX GraphiX](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/e/e92c75e478049698351fa88c1e814f7ec3f90398.png)

---

<div class="post-metadata">

**Author:** ![ANYS](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/anys/32/7737_2.png) [@ANYS](https://prepomax.discourse.group/u/ANYS)\
**Post date:** [November 11, 2023, 3:36pm UTC](https://prepomax.discourse.group/t/surface-spring-can-not-reproduce-a-case-previuosly-succeed/1237/7 "2023-11-11T15:36:22Z")

</div>

> [@synt](#):
>
> which input section is inappropriate

I would say there is an error in Prepomax wher translating the \*Spring Card.  
It is not reading the Stiffness.

It anticipates DOF\_3 but dof is set to 0.

\*Spring, Elset=Surface\_Spring-1\_20\_DOF\_3  
0  
1687500.

---

<div class="post-metadata">

**Author:** ![synt](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/synt/32/4658_2.png) [@synt](https://prepomax.discourse.group/u/synt)\
**Post date:** [November 11, 2023, 3:44pm UTC](https://prepomax.discourse.group/t/surface-spring-can-not-reproduce-a-case-previuosly-succeed/1237/8 "2023-11-11T15:44:31Z")

</div>

> [@ANYS](#):
>
> It anticipates DOF\_3 but dof is set to 0.

i’m overlook at this, previously thinking ‘0’ (zero) will be the same as blank in reading by the solver CalculiX or throwing some error messages since DOF’s ‘0’ zero does not exist.

in conclusion, that’s main source of problem and the other contribute is spring stiffness value calculated by PrePoMax.

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [November 11, 2023, 5:35pm UTC](https://prepomax.discourse.group/t/surface-spring-can-not-reproduce-a-case-previuosly-succeed/1237/9 "2023-11-11T17:35:22Z")

</div>

Sorry guys. I checked the code. I rewrote the spring class to a more general form to be able to add the gap class and failed to assign a direction properly. I fixed it and published a new version.

Please check if it works as expected.

---

<div class="post-metadata">

**Author:** ![ANYS](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/anys/32/7737_2.png) [@ANYS](https://prepomax.discourse.group/u/ANYS)\
**Post date:** [November 11, 2023, 6:40pm UTC](https://prepomax.discourse.group/t/surface-spring-can-not-reproduce-a-case-previuosly-succeed/1237/10 "2023-11-11T18:40:02Z")

</div>

Wow. really quick fix.

Removing the Rigid body rotation arround z and the punctual loads. I’m also considering  
rigid plate.

S33=-0.0009MPa which is 1/2 the expected value.

---

<div class="post-metadata">

**Author:** ![synt](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/synt/32/4658_2.png) [@synt](https://prepomax.discourse.group/u/synt)\
**Post date:** [November 11, 2023, 6:57pm UTC](https://prepomax.discourse.group/t/surface-spring-can-not-reproduce-a-case-previuosly-succeed/1237/11 "2023-11-11T18:57:52Z")

</div>

> [@Matej](#):
>
> I rewrote the spring class to a more general form to be able to add the gap class and failed to assign a direction properly.

indeed, as i guessed since previous version of PrePoMax have no problem at this case. Many thanks to consider returning surface spring feature to be working again.

Next, i’ll try the latest implementation of advanced feature in compression only support. It has spring stiffness adjustment values and capable to assign at surface, theoretically the behavior is similar to surface spring except in uplift.

 ![2023-11-12 01_48_27-Create Constraint](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/6/63289d755392b423e1025ff6b1153c0f12a2f8f0.png)

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [November 11, 2023, 6:59pm UTC](https://prepomax.discourse.group/t/surface-spring-can-not-reproduce-a-case-previuosly-succeed/1237/12 "2023-11-11T18:59:59Z")

</div>

[N/mm] is a unit of linear spring when the surface area of the surface string is not taken into account. The same spring is used regardless of the surface area. If you use [N/mm/mm^2] the computed stiffness depends on the surface area size.

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [November 11, 2023, 7:00pm UTC](https://prepomax.discourse.group/t/surface-spring-can-not-reproduce-a-case-previuosly-succeed/1237/13 "2023-11-11T19:00:56Z")

</div>

The compression only constraint uses GAP elements, which are used for solving contact problems.

---

<div class="post-metadata">

**Author:** ![synt](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/synt/32/4658_2.png) [@synt](https://prepomax.discourse.group/u/synt)\
**Post date:** [November 11, 2023, 7:14pm UTC](https://prepomax.discourse.group/t/surface-spring-can-not-reproduce-a-case-previuosly-succeed/1237/14 "2023-11-11T19:14:11Z")

</div>

> [@ANYS](#):
>
> EDITED: I think there is some dimensions not right ?¿?.  
> K has [N/mm3] or [N/mm] in Prepomax. I need to check this on the manual sorry.

unit of spring stiffness for surface is in Pressure/Length(dsiplacment) e.g kPa/m or kN/m^2/m or kN/m3. It’s look unfamiliar for the latter of units but equal.

please refer to `*Foundation` keywords in Abaqus to be more clear, this implementation in PrePoMax should have similarity and equivalent.

---

<div class="post-metadata">

**Author:** ![ANYS](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/anys/32/7737_2.png) [@ANYS](https://prepomax.discourse.group/u/ANYS)\
**Post date:** [November 11, 2023, 7:15pm UTC](https://prepomax.discourse.group/t/surface-spring-can-not-reproduce-a-case-previuosly-succeed/1237/15 "2023-11-11T19:15:15Z")

</div>

That seems to work different than Mecway.

So [N/mm/mm^2] is the proper one to obtain a uniform distributed support no matter the mesh ¿isn’t it?

¿Why do we obtain 1/2 the Expected stress?

---

<div class="post-metadata">

**Author:** ![synt](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/synt/32/4658_2.png) [@synt](https://prepomax.discourse.group/u/synt)\
**Post date:** [November 11, 2023, 8:18pm UTC](https://prepomax.discourse.group/t/surface-spring-can-not-reproduce-a-case-previuosly-succeed/1237/16 "2023-11-11T20:18:29Z")

</div>

> [@Matej](#):
>
> Please check if it works as expected.

thanks again for updating development versions. Defining surface spring with option stiffness per area is ;‘No’ (N/mm) given expected result. However, with option of stiffness per area is ‘Yes’ (N/mm3) shown to be too stiff. It seems nodal spring stiffness value is not properly defined.

Stiffness per area (No)

![2023-11-12 03_03_08-Edit Constraint_ Surface_Spring-1](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/e/e0f1089fcaffdae554cf7b27dc52a24f1ecd4611.png)

 ![2023-11-12 02_47_19-Calculix keyword editor](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/e/e316f0f3120841ccca0d303d9875941ca0694fd8.png)

 ![2023-11-12 02_47_58-](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/e/eb95c67c845e7cc205355abedd06ed63acde6dad.png)

 ![2023-11-12 02_49_50-](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/2/2a30f77fff71e81cce39df83ee77a57a4d481c25.png)

Stiffness per area (Yes)

![2023-11-12 02_45_30-PropertyGrid](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/6/67f436fcb04d6cd3a831a3d229966270dbd218a8.png)

 ![2023-11-12 02_39_17-Calculix keyword editor](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/3/3e360eaec7563efcc6a31c03d2328aa28dab18eb.png)

 ![2023-11-12 02_50_42-](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/f/f1a544c9340b13393a54a3aa6e3c207d95c7cd15.png)

 ![2023-11-12 02_50_55-](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/8/8c703240d2740121222a5acba503fe2fcd3f449f.png)

---

<div class="post-metadata">

**Author:** ![synt](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/synt/32/4658_2.png) [@synt](https://prepomax.discourse.group/u/synt)\
**Post date:** [November 11, 2023, 8:19pm UTC](https://prepomax.discourse.group/t/surface-spring-can-not-reproduce-a-case-previuosly-succeed/1237/17 "2023-11-11T20:19:15Z")

</div>

> [@ANYS](#):
>
> ¿Why do we obtain 1/2 the Expected stress?

mesh is too coarse in the model, refining should increase the accuracy., Above problem can be simplified based on free-body diagram. The model structures act like cantilever due to distributed loads and supported at the midspan, when the mesh is too coarse, some nodal force is missing in the calculation of bending force thus make it lower than actually.

---

<div class="post-metadata">

**Author:** ![ANYS](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/anys/32/7737_2.png) [@ANYS](https://prepomax.discourse.group/u/ANYS)\
**Post date:** [November 11, 2023, 9:26pm UTC](https://prepomax.discourse.group/t/surface-spring-can-not-reproduce-a-case-previuosly-succeed/1237/18 "2023-11-11T21:26:20Z")

</div>

> [@synt](#):
>
> refining should increase the accuracy

No.  
It is not exclusive of Spring Supports.  
Constraning the base in Z gives the same result. Stress S33 is 1/2 the expected value. Simple to check. 1 rigid plate under 1MPa uniform pressure end up with an overall S33 Stress of 1/2 the expected value (.5 MPa).

 ![imagen](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/5/540ad08b9846f6b526d71220cd485eaec8793957.jpeg)

Your real stress is probably twice the one obtained in the areas under pure compression.

---

<div class="post-metadata">

**Author:** ![synt](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/synt/32/4658_2.png) [@synt](https://prepomax.discourse.group/u/synt)\
**Post date:** [November 12, 2023, 4:20am UTC](https://prepomax.discourse.group/t/surface-spring-can-not-reproduce-a-case-previuosly-succeed/1237/19 "2023-11-12T04:20:14Z")

</div>

> [@ANYS](#):
>
> No.  
> It is not exclusive of Spring Supports.

it seems referencing to another case, not a bending stress of the original problem input files i attached.

below shown, the accuracy is increase after mesh refinement

 ![2023-11-12 11_04_22-](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/8/8cab962fe2412153edf8b78af56d8e5d91b4a452.png)

A model using input surface spring as units force/length (N/mm) is working as expected. However, switching to units of pressure/length (N/mm3) still have a problem due to improperly calculated of nodal spring values.

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [November 12, 2023, 11:18am UTC](https://prepomax.discourse.group/t/surface-spring-can-not-reproduce-a-case-previuosly-succeed/1237/20 "2023-11-12T11:18:13Z")

</div>

It seems many strange things are happening. I am looking into it and have fixed two bugs, but I will test extensively before releasing an update.

[Next page](https://prepomax.discourse.group/t/surface-spring-can-not-reproduce-a-case-previuosly-succeed/1237.md?page=2)
