-
Owen replied to the topic Update parameters during simulation in the forum Using SOFA 6 months, 1 week ago
Dear Hugo,
Thank you for your reply!
This new mechanism could be extremely useful for dynamics randomisation. I am going to give it a try. Thank you and all the other developers’ great effort! I will close the post now.
Best wishes,
Owen -
Owen replied to the topic Update parameters during simulation in the forum Using SOFA 6 months, 3 weeks ago
Hi @hugo
I am sorry to bother you. I guess you are very busy at the moment but I would like to know if there is any recent update on updating parameters in FEMForceFields like ‘TetrahedronFEMForceField.youngModulus’.
Thank you,
Owen -
Owen started the topic Update parameters during simulation in the forum Using SOFA 7 months ago
Hi everyone,
I encountered a little problem when I was trying to update the Young’s modulus with `self.pneu1Node.getObject(‘FEM’).findData(‘youngModulus’).value = 100000000000
`.In the GUI it looked like the value has been updated, but it was not actually updated until I manually clicked on the ‘Update’ button. I am wondering if there is a way…[Read more]
-
Owen replied to the topic Help! Model order reduction – 'can't find anything to animate' in the forum Using SOFA 7 months, 1 week ago
Hi,
I have resolved the problem by installing a Ubuntu 18.04 virtual machine. Now MOR is running smoothly. Thus I am going to close this post now. I want to go a big thanks to Olivier for returning to Python2 is the right thing to do to solve the problem.
Best,
Owen -
Owen replied to the topic Help! Model order reduction – 'can't find anything to animate' in the forum Using SOFA 7 months, 1 week ago
Hi @olivier-goury,
Yes, I agree that going back to Python2 could solve the error. The only reason I choose to use Python3 is that I found it difficult to install PyQt4 with my current version of Qt5, while PyQt5 only supports Python3.
If I understand it correctly, PyQt is for the GUI so it is essentially optional for the plugin. I am wondering…[Read more]
-
Owen replied to the topic Help! Model order reduction – 'can't find anything to animate' in the forum Using SOFA 7 months, 1 week ago
Update: the syntax error seems to be fixed after I changed originalScene = r’$ORIGINALSCENE’ to originalScene = r”$ORIGINALSCENE” in the phase1_snapshots template.
However, this ‘fix’ might not be correct as I got a new error:
========= STDERR-LOG============
[Read more]
CUDA: 1 device(s) found.
CUDA: 0 : "Quadro T2000", 3112/3903 MB, 128 cores at 1.785… -
Owen started the topic Help! Model order reduction – 'can't find anything to animate' in the forum Using SOFA 7 months, 1 week ago
Hello SOFA community,
I’ve been really struggling to use MOR plugin to refine my mesh as I am stuck in Phase 1: add animations to the actuators. In the beginning, I thought there were some problems with my code until I tried to run the code in /ModelOrderReduction/tools with the diamondRobot.py example scene. The error was the…[Read more]
-
Owen replied to the topic Error into use the LinearSolverConstraintCorrection with SofaCUDA types in the forum Programming with SOFA 7 months, 1 week ago
Hi @Hugo,
Sadly, I am experiencing the same problem described in this post. As you mentioned earlier ‘This is due to the fact that the constraint resolution has no CUDA version (CudaVec instantiation) in the open-source version of SOFA. However, it does exist in some private plugins.’, do you refer to the SOFA Multicore-GPU plugin? If so, I think…[Read more]
-
Owen replied to the topic Modeling Hyper-elastic Material in the forum Programming with SOFA 8 months, 3 weeks ago
Hi @hugo
I am trying to use the Ogden model for my simulation as well. I am very pleased to see the TetrahedronHyperelasticityFEMForceField contains Ogden, but I am struggling to set the parameters.
As you mentioned in your previous reply, in Ogden.h:
Real k0=param.parameterArray[0];
[Read more]
Real mu1=param.parameterArray[1];
Real… -
Owen replied to the topic Unable to create 'BilateralInteractionConstraint' in the forum Using SOFA 9 months, 1 week ago
Hi @hugo,
I feel kinda stupid to waste your time on fixing this tiny error… However, I have one more question to ask about
BilateralInteractionConstraint
if you don’t mind. I found this page explaining the Args:…[Read more] -
Owen replied to the topic Unable to create 'BilateralInteractionConstraint' in the forum Using SOFA 9 months, 1 week ago
Hi @secretdevil
Thank you for your reply!
I have corrected the case of “Constraint” as Hugo suggested, and then I don’t have this error anymore. I am sorry that my code is a bit messy… Even though I don’t fully understand how the templates work, I think the mechanical state was created in the children of rootNote. Like in Line 126
pneu2.createO…
[Read more] -
Owen started the topic Unable to create 'BilateralInteractionConstraint' in the forum Using SOFA 9 months, 2 weeks ago
Hello SOFA community,
I encountered a problem when I was trying to use
BilateralInteractionConstraint
to attach one soft actuator to another. The error shown in the command line is below:
[Read more]
[ERROR] [PythonScript] RuntimeError: Unable to create 'BilateralInteractionConstraint' of type 'BilateralInteractionConstraint' in node 'root'. Object type… -
Owen replied to the topic Failing to build CGAL plugin in the forum Building SOFA 9 months, 3 weeks ago
Hi JN,
I tried the first suggestion and it works! You have really made my day. Thanks a million!
Best,
Owen -
Owen replied to the topic Failing to build CGAL plugin in the forum Building SOFA 9 months, 3 weeks ago
Hi JN,
Thank you for your reply.
Yes, the full output seems a bit too long. I just redirected it to a text file. Please find the file in the link: https://drive.google.com/open?id=1sfmqP_7E-r6_ziejZGYV-lICtGFjVBaY
Many thanks,
Owen -
Owen started the topic Failing to build CGAL plugin in the forum Building SOFA 9 months, 3 weeks ago
Hi SOFA community,
SOFA used to work smoothly on my computer but I had to rebuild SOFA today as I upgraded my OS to Ubuntu 20.04. Then I encountered a problem that I cannot build CGAL plugin while the rest of SOFA works fine.
A part of the command line outputs is below:
[Read more]
[13/19] Building CXX object… -
Owen replied to the topic Export the state of a specified node in the forum Using SOFA 10 months, 1 week ago
Hi Hugo,
Thank you for your quick reply.
You solved my problems! Everything works perfectly in the console. I just realised that there is so much potential in using python script.
Thank you!
Regards,
Owen -
Owen's profile was updated 10 months, 1 week ago
-
Owen started the topic Export the state of a specified node in the forum Using SOFA 10 months, 1 week ago
Hi,
First of all, I am aware that similar questions have been answered… Unfortunately, I am still struggling ;(
What I am trying to do is to obtain the position values of one single node and plot a graph of displacement vs time. With the WriteState function, I have managed to export the positions of 10450 nodes which is the total number of…[Read more]
-
Owen replied to the topic Tetrahedral mesh generation in the forum Using SOFA 10 months, 2 weeks ago
Thank you Hugo. I am gonna close the topic now.
Owen
-
Owen replied to the topic Tetrahedral mesh generation in the forum Using SOFA 10 months, 2 weeks ago
Hi Hugo,
Sure, after removing the borders, I used cellSize=’2′, facetSize=’2′, cellRatio=’2′, facetApproximation=’0.15′. However, they only give me an acceptable mesh because I am running SOFA on my laptop which is not very powerful.
I guess I will start with BilateralInteractionConstraint. Is there any example code I can take a look?
Many thanks,
Owen - Load More