The distribution from file expects an ASCII (text) file that contains the data in the following format for scalar distributions:
#X Y Z V1
0 0 0 1
10 0 0 2
10 10 0 3
0 10 0 4
The # denotes a comment line - a line that is skipped by the data reader
X, Y and Z are spatial coordinates of the point
V1 is the value of the distribution
For a vector distribution three values V1, V2 and V3 are expected. Vector distribution can be ised to specify the distribution of the Surface traction load in all three directions. The unit for the distributed surface traction is force/area.
The Uniform pressure load now has the ability to use distribution, so it was renamed to Pressure load. With this, I feel like the imported pressure load is not necessary anymore. It is used to import the pressure from the OpenFoam only. If it is not hard to export the pressure from the OpenFoam in the format required to define the distributions, I would like to remove this load. Any opinions?
Is there a need to add support for distribution to any other existing loads?
When selecting “Distribution > From File”, it’s possible to shift the coordinates using “Translations”.
A similar approach might also be useful for “Distribution > From Equation”. I’m thinking of cases shown below, where a triangular distributed load, defined by f(x)=mx+b, doesn’t start or end at the origin. Perhaps this could also be achieved by selecting a previously defined local coordinate system.
Hm, usually it is pretty easy to translate equation-defined fields directly by modifying the equations. In the case you are showing the If function will help.