-
Sarah replied to the topic Statistics on AdvancedTimer in the forum Programming with SOFA 9 months ago
Hi Hugo and Erik!
Thanks for all the tips, has been helpful. Also it is very cool to see the documentation and other options expand. Yes, I’ll close the topic. I think it has been resolved.Best,
Sarah
-
Sarah replied to the topic Statistics on AdvancedTimer in the forum Programming with SOFA 9 months, 3 weeks ago
Hi Hugo,
I looked into some of the code of the AdvancedTimer.cpp. This is what I found:
json TimerData::createJSONArray(int s,json jsonObject, StepData& data)
{
double value = 0;
ctime_t ttotal = stepData[AdvancedTimer::IdStep()].ttotal;// Level :
value = strToDouble(getVal(data.level), 4);
jsonObject["Level"] = value;…[Read more] -
Sarah replied to the topic execution time in the forum Programming with SOFA 9 months, 3 weeks ago
Hi!
Was just wondering if it would be better to open my previous post as a new topic. Would be great to get to understand the Advanced Timer more.Best, Sarah
-
Sarah replied to the topic execution time in the forum Programming with SOFA 9 months, 4 weeks ago
Hi!
While not directly related. I thought my question about the statistics retrieved from the Advanced timers may be useful here.
My questions concerns the interpretation of the data.
My question cencerns what the various data types represent? What doesNUM
entail? Is there any reason that theTOTAL
of theTOTAL
is a factor of 100 larger then…[Read more] -
Sarah replied to the topic Export data with WriteState in the forum Using SOFA 10 months ago
Hi Jerry,
It seems to me that you’re just using the export tab in SOFA. But using monitor you export files independent of the export tab in SOFA.
You can use montior as such and then you can choose if you want pos, vel, or force for specific vertices.
node.createObject('Monitor', name="filename", indices='@boxROI.indices', template="Vec3d",…
[Read more] -
Sarah replied to the topic Rayleigh/Numerical damping in the forum Using SOFA 10 months ago
Hi @Hugo,
I added a non-zero Rayleigh stiffness as else using the trapezoidal scheme my object completely lost its shape, it became unstable. Upon slight damping (as I set in the integration scheme it remained stable). I found this useful link, in particualr the second comment about the EulerImplicit (I’m still rather new to FEM) and it makes…[Read more]
-
Sarah replied to the topic Export data with WriteState in the forum Using SOFA 10 months ago
Hi Jerry,
I had a similar issue using monitor but found that in using BoxROI as found in the documentation and then referring to those indices in the monitor
'@boxROI.indices'
(where ‘boxROI’ is the name of your object ‘BoxROI’) was an easy way for me to solve it. Hope that helps.Kind regards,
Sarah
-
Sarah replied to the topic How can I use python to create a scene? in the forum Using SOFA 10 months, 1 week ago
I’m not sure if I can answer all your questions, as I’m not a SOFA expert. But in my experience
1. I don’t think it is not necessary to use a.scn
file.2. I don’t know if you would need to set
RequiredPlugin
in a.scn
file, but from the error message it seems as though you should. And similarly for.py
file but than in pythonrootNode.createObje…
[Read more] -
Sarah replied to the topic Rayleigh/Numerical damping in the forum Using SOFA 10 months, 2 weeks ago
Hi Hugo,
I thought I had responded earlier, but for some reason my posts weren’t coming through as they were being recognized as spam (but got that figured out now!).
To answer some of your questions, I was using UniformMass, but see the same behaviour although with a larger displacement for the DiagonalMass. I don’t have any plasticity set, am…[Read more]
-
Sarah replied to the topic Attach constraint and Fixed constraint difference in the forum Programming with SOFA 10 months, 3 weeks ago
Hi @Hugo,
I want to build a soft Robot that learns to walk with an optimization algorithm. Currently I’m just wanting to study force propagation in various meshes. So the FixedConstraint should be fine. Thanks! It makes sense and in my tests yield similar results! 🙂
Thanks! -
Sarah started the topic Rayleigh/Numerical damping in the forum Using SOFA 10 months, 3 weeks ago
I was doing a test simulation of a mesh(tetras) with the corners constrained and then was looking at the displacement of the bottom facenode of the Mesh when applying gravity.
I’m using Eulerimplicit, a SparseLDLSolver and TetrahedronFEMForceField for the mesh.
Funny enough as I decreased the time step from 0.01 to 0.0001 the node tended to…[Read more]
-
Sarah replied to the topic Pneumatic Actuator using SurfacePressureConstraint in the forum Using SOFA 11 months ago
Thank you Jean-Nicolas,
Also thank you for the addition you made to the scenegraph. Wasn’t getting them all to run in Sofa yet. But I’ll figure. I’m pretty sure it’s a mesh issue, as it seems to be more generic than just my cube. And using a simple flat mesh under gravity I found some similar issues. A sphere indeed may do well to, but would think…[Read more] -
Sarah replied to the topic Pneumatic Actuator using SurfacePressureConstraint in the forum Using SOFA 11 months ago
Hello again,
Found that this last problem with the rank deficiency was caused because I had also turned the subset of nodes into a Mechanical Object. Which is not necessary. Will run now that I removed that. But still shows rotation.. Am now trying option 3 in combination with 1 as lowering the posson ratio didn’t seem to reveal much change to the…[Read more] -
Sarah replied to the topic Pneumatic Actuator using SurfacePressureConstraint in the forum Using SOFA 11 months ago
Hi @jnbrunet,
Thank you for your suggestions!
Have been extracting the propper nodes in order to directly apply the surface pressure to the volume mesh. THis is a promising idea. However, I fell upon a different error… Mainly that SOFA says that [SparseLDLSolver] invalid linear system to solve. Please ensure there are enough constraints (not…[Read more] -
Sarah replied to the topic Pneumatic Actuator using SurfacePressureConstraint in the forum Using SOFA 11 months, 1 week ago
I just tried the triangular squares and found the same behavior again..
-
Sarah replied to the topic Pneumatic Actuator using SurfacePressureConstraint in the forum Using SOFA 11 months, 1 week ago
Hi Hugo thanks for the update. It can be quite challenging to make hexahedron meshes in gmsh for more complex geometries (such as one with a cavity). Would MeshLab be a useful alternative as I don’t have CGAL plugin?
Are you saying I cannot use trianglar mesh in this simulation, because the tetras are angles out and thus generate a momentum……[Read more]
-
Sarah replied to the topic Pneumatic Actuator using SurfacePressureConstraint in the forum Using SOFA 11 months, 1 week ago
Hi!
I relooked at it, and am thinking it may indeed be an issue with the VTK, file.. Do you you have any recommendations for ensuring that one is right. As this changes the situation upon rotation whilst when rotating the stl of the cavity it behaves in the same way as before. I made it in gmsh are there specific things to watch out for besides…[Read more] -
Sarah started the topic Pneumatic Actuator using SurfacePressureConstraint in the forum Using SOFA 11 months, 2 weeks ago
Hello! I’m trying to build a simple system with a soft inflating object. I’ve built up a cube with a cavity and have then applied the following for the actuation:
cavity.createObject('SurfacePressureConstraint', name='SurfacePressureConstraint',
template='Vec3d', value='0.0001', triangles='@topo.triangles', valueType='pressure')The issue is…[Read more]
-
Sarah replied to the topic Exporting files using Monitor in the forum Using SOFA 11 months, 3 weeks ago
You’re right, I got it to work in the example. But haven’t invested a lot of time to further apply it to my simulation. Thanks
-
Sarah replied to the topic Exporting files using Monitor in the forum Using SOFA 11 months, 3 weeks ago
I found that the monitor is working rahter well now. It exports all the files in the bin and only takes the data points I’m concerned with. The VTKExportr is currently running but consistently exports at the beginning and not at the end even when setting exportAtEnd=”1″, which isn’t very helpful when wanting look at the animation. The gnuplots…[Read more]
- Load More