# Arbitrary distributed load

**URL:** <https://prepomax.discourse.group/t/arbitrary-distributed-load/1704>\
**Category:** General Questions\
**Created:** [April 28, 2024, 9:15pm UTC](https://prepomax.discourse.group/t/arbitrary-distributed-load/1704 "2024-04-28T21:15:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![m\_farrokh](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@m\_farrokh](https://prepomax.discourse.group/u/m_farrokh)\
**Post date:** [April 28, 2024, 9:15pm UTC](https://prepomax.discourse.group/t/arbitrary-distributed-load/1704/1 "2024-04-28T21:15:13Z")

</div>

Hi,

Is there a way to define arbitrary distributed load in PrePoMax? In some engineering applications, it is necessary to define a pressure load its magnitude depends on the coordinates: x, y, and z. For instance, the hydrodynamic pressure of water on a dam wall can be approximated as follows:  
 ![image](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/1/1dd5346d8b8def1c7cf0bb1b651bd781ee9d4dc5.png)

In Calculix, it can be defined by using “dload.f” subroutine. However, it needs to build the Calculix from the source. Calculix supports calling DLL of “umat” subroutine. It would also be a good idea for the “dload” subroutine.

---

<div class="post-metadata">

**Author:** ![FEAnalyst](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/feanalyst/32/688_2.png) [@FEAnalyst](https://prepomax.discourse.group/u/FEAnalyst)\
**Post date:** [April 28, 2024, 11:08pm UTC](https://prepomax.discourse.group/t/arbitrary-distributed-load/1704/2 "2024-04-28T23:08:04Z")

</div>

PrePoMax has a built-in hydrostatic pressure load that can be used for any load with triangular or trapezoidal distribution (since you specify two points and pressure values for them). But there’s no load with arbitrary/analytical distribution and you would need workarounds like multiple pressure loads applied to surface patches, mapping nodal values as \*CLOAD forces or using the dload.f subroutine.

---

<div class="post-metadata">

**Author:** ![m\_farrokh](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@m\_farrokh](https://prepomax.discourse.group/u/m_farrokh)\
**Post date:** [April 28, 2024, 11:53pm UTC](https://prepomax.discourse.group/t/arbitrary-distributed-load/1704/3 "2024-04-28T23:53:50Z")

</div>

Thanks for your reply.  
The problem of the dload.f subroutine is that you have to build Calculix from the source. As it has several dependencies, it will be a cumbersome task in Windows.

Mapping nodal values as \*CLOAD forces needs some FE calculations.

---

<div class="post-metadata">

**Author:** ![FEAnalyst](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/feanalyst/32/688_2.png) [@FEAnalyst](https://prepomax.discourse.group/u/FEAnalyst)\
**Post date:** [April 29, 2024, 6:17am UTC](https://prepomax.discourse.group/t/arbitrary-distributed-load/1704/4 "2024-04-29T06:17:26Z")

</div>

Yes, this is the last resort. The easiest workaround is with surface partitions. But at least there’s a hydrostatic pressure load in PrePoMax - CalculiX itself doesn’t have it.

---

<div class="post-metadata">

**Author:** ![m\_farrokh](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@m\_farrokh](https://prepomax.discourse.group/u/m_farrokh)\
**Post date:** [May 12, 2024, 10:03am UTC](https://prepomax.discourse.group/t/arbitrary-distributed-load/1704/5 "2024-05-12T10:03:34Z")

</div>

I could call the “dload” subroutine from a DLL file. The details can be found in the following link:

> **[Calling user subroutines in shared libraries](https://calculix.discourse.group/t/calling-user-subroutines-in-shared-libraries/2247)**
>
> Hi, There is a good option to call UMAT in shared libraries. It does not require any modiﬁcation to CalculiX, is generally easier to set up and is very ﬂexible. I wonder if this functionality can be used for the other subroutines like “dload.f”. ...

Here is an example:

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

 ![image](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/8/8dba9e3db4b6e6571e621759a3f52f04da1ab3d2.png)

It can be useful to define analytical load distributions.

---

<div class="post-metadata">

**Author:** ![m\_farrokh](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@m\_farrokh](https://prepomax.discourse.group/u/m_farrokh)\
**Post date:** [May 12, 2024, 11:57pm UTC](https://prepomax.discourse.group/t/arbitrary-distributed-load/1704/6 "2024-05-12T23:57:06Z")

</div>

Here is the Calculix-2.21-Win64 built with a feature to call “dload” subroutine from a shared library:

[CalculiX-2.21-Win64-with-external-dload.zip](https://prepomax.discourse.group/uploads/short-url/vrQHf1sjyeejG0tKjFFcb0gEqbL.zip) (4.6 MB)
