Kindly I am attaching the updated files for your scene in the following link: https://drive.google.com/open?id=1t-4KfJ4Y-c7d8XJlRcdR66Y9YQku4lZJ
As far as I understood from your question that you are looking for changing the value the constant force field applied at a specific time frame or by pressing a certain key.
For doing that:…[Read more]
I have done some work on validation: basically comparing several forcefields in SOFA w.r.t. a real experiment with a phantom and simulation in Abaqus and FEBio.
I’ve created several slides which I put online:
In any case, the validation was quite preliminary, done only…[Read more]
Hi SOFA community!
I know that some people have tried to validate some SOFA implementations during the past years, but the works remained isolated and not shared within the community.
It would be nice to collect the attempts that people have made in this direction, so that we could benefit from each others works, and align our efforts for further…[Read more]
Sorry I forgot to include the mesh files. Below please find the required files:
Thank you for your help.Now I can use the haptic device.
Also, I want to do the carving with the hatic device.
I observed that “CollisionResponse” response=”default” in SofaCarving plugin but response=”FrictionContact” in Geomagic plugin.
If I use response=”FrictionContact”,I get the following error when the carvingTool collides with…[Read more]
I observed the following error when i am compiling Sensable plugin from Sofa-1806. Although this plugin may not be maintained for a while, I really hope i can still use the Sensable plugin since i have been working based on that plugin and made quite a few features.
The followings are the compilation errors I have:
Error C2385 ambiguous…[Read more]
First of all, you have to build SOFA, once it has been built correctly, you will have the binaries folder in build directory.
I have never tried SOFA on windows platform, but if you have the virtual version of SOFA running on windows, you can directly run SOFA from binary folder.
If you still stuck, I would try to help as much as I…[Read more]
I need to run a scene several times while at each run the applied force changes and the resulted mesh should be exported after a specified time steps with different name. I tried to add some loops in the python script but it is not working. Would any one help me regarding this?
The python script is available in the link…[Read more]
fatima replied to the topic Error Building SOFA V.17.12 on windows 10 in Qt IDE in the forum Building SOFA 2 days, 2 hours ago
I think that I have the problem similar to your problem:
c:userscmossofasrcsofakernelextlibsjsonnlohmann_json.h(1519): error C2784: '_Ty *std::begin(_Ty (&)[_Size]) noexcept': could not deduce template argument for '_Ty (&)[_Size]' from 'add_rvalue_reference<const ContiguousContainer>::type'
Do you find the solution?
Thank you so much for your attention 🙂
I asked the question because I was not successful to build the SOFA and I was not sure whether I should build the sofa or I can use the binary version.
Now, I get some errors in building the solution in the VS2015.
c:userscmossofasrcsofakernelextlibsjsonnlohmann_json.h(1519): error C2784: '_Ty…[Read more]
I have discovered two memory leaks in SOFA while debugging my code. I hope this is the right place to post them.
The first is in Object.getDataFields()
I was using mechanicalobject.getDataFields()[“position”] at each iteration to get the coordinate of a MechanicalObject. This resulted in a data leak. I solved the problem by using…[Read more]
here is my cpp scene:
Node::SPtr groot = sofa::simulation::getSimulation()->createNewGraph("Root");
groot->setGravity(sofa::defaulttype::Vector3(0, -9.81, 0));
sofa::component::visualmodel::VisualStyle::SPtr style =…[Read more]
Hugo replied to the topic Rotation problem with AffineMovementConstraint and BeamFEMForceField in the forum Using SOFA 5 days, 7 hours ago
Thank you very much for you notice and for daring taking a look into the c++ code!
That’s brave and that’s a good reflex.
We noticed this week (on master branch) that some check of unity on the quaternion (for Rigid3Types) disappeared. However, the addition instead of multiplication might be an error. I need to check this part.
Thanks again for…[Read more]
it appears that you are having an issue due to an wrong access in memory (un-initialized vector, or pointer). The creation of the FreeMotionAnimationLoop should not be an issue in cpp. Could you share with us you cpp scene ?
Christiane replied to the topic Rotation problem with AffineMovementConstraint and BeamFEMForceField in the forum Using SOFA 5 days, 21 hours ago
I believe I found the problem, however I’m unable to correct it myself…
On line 288 of AffineMovementConstraint.inl, the rotation is calculated using quaternions. The final rotation is obtained by adding the initial orientation quaternion and the rotation quaternion. Normally, combining rotations is done by multiplying…[Read more]
Christiane started the topic Rotation problem with AffineMovementConstraint and BeamFEMForceField in the forum Using SOFA 6 days ago
I’ve been working on a model where I need curved beams, amongst other things. I managed to simulate those curved beams with the BeamFEMForceField and apply a force at one end while clamping the other. This worked fine and the results were consistent with an equivalent FEM of the same beam.
I’ve also been trying to apply a…[Read more]
Christiane replied to the topic How can I construct a stable beam force field while the beams are not straight? in the forum Using SOFA 6 days ago
I had the same issue; I managed to stabilize it by setting the orientations of the DOFs in the mechanical object. Basically, you need to orient each node so that the x-axis is the slope of the curved beam.
I did this by creating a spline of my curved beams and then calculating the immediate slope at each node, aligning the x-axis…[Read more]
mbarrow started the topic Bug. Mismatch between image plugin .obj and .png co-ordinate systems in the forum Using SOFA 6 days, 4 hours ago
I have run into weird behavior in the flexible app and Image plugin.
It seems there is some slight mismatch between the coordinate systems. I’m not sure how to remedy the situation.
I have a beam simulation where I want to map an ogl model to a mechanical object for display. The ogl model has a slight y and z offset that I did not specify. I…[Read more]
- Load More