While applying the factors on the gravity, point- and line loads works fine, I’m having some trouble with the meshLoad.
Right now I’m constructing new loads with the factors applied, however I can’t seem to find the correct/sufficient documentation on constructing a MeshLoad.
Diving into the karamba components for a bit I think I’ve found the solution.
Sorry for maybe being to quick with my question.
I’m still interested in some documentation on the construction of a MeshLoad though.
If anyone else is interested, this is how I applied the factor to the original meshLoad:
//Get original MeshLoad
MeshLoad ml = fLoad as MeshLoad;
// Apply factor to original stresses
List stresses = new List();
ml.unit_stresses.ForEach(stress => stresses.Add(Vector3d.Multiply(ml.unit_stresses_factor * factors[i], stress)));
//Create new resultant MeshLoad with factors applied
MeshLoad resMl = new MeshLoad(stresses, 9);
resMl.SetModelUnitLoads(ml.model_unit_loads);
res = resMl;
Hi Merijn,
the Karamba3D unit test library contains the test ‘MeshLoadProfiling’ which shows how Mesh-Loads can be generated in Karamba3D 1.3.2. It can be downloaded from https://github.com/karamba3d/K3D_tests.
Regards,
Clemens
When applying the factor as I did in my “solution” given, the resultant of a mesh load doesn’t seem to be working as expected. Applying a factor of 1 will give me the original load (correct), however, applying a factor of 2 does give me 2 times the “Load” but gives an exponential growth in the resultant:
Hi Merijn,
at the moment (Karamba3D 1.3.1.) scaling of a MeshLoad is a quite tricky. Both the underlying unit loads and load values are scaled using the square of the resultant of the loads. In order to get the correct resultant in your example you would have to scale the underlying unit loads - however there is no write access to that property.
Currently the mesh gets discarded as soon as the unit loads are calculated.
I will set both issues on my TODO-list.
Best,
Clemens
Is there any update on how meshloads can be scaled in one if the nightly builds?
I am running into the same problem and it would improve my workflow by a lot if this would be possible.
Hello @lfuhrimann,
load-case and result superposition will be the next feature to be implemented in Karamba3D. This includes scaling of Meshloads as a special case.
– Clemens