Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Saurabh Deshpande
Deliverable_Rainbow
Commits
546e0363
Commit
546e0363
authored
Jan 26, 2021
by
Saurabh Deshpande
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Simulation_canti_general.py
parent
8cb00ad7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
scripts/Simulation_canti_general.py
scripts/Simulation_canti_general.py
+4
-6
No files found.
scripts/Simulation_canti_general.py
View file @
546e0363
#. ---------------------- Main SOFA script for data generation -------------------------- #
#This script has to be run from runSimulation.py
import
Sofa
import
Sofa
import
numpy
as
np
import
numpy
as
np
import
sys
import
sys
...
@@ -107,11 +111,5 @@ def createScene(rootNode):
...
@@ -107,11 +111,5 @@ def createScene(rootNode):
controller
=
CantileverBeam
(
rootNode
,
"controller"
,
"Beam"
,
commandLineArguments
)
controller
=
CantileverBeam
(
rootNode
,
"controller"
,
"Beam"
,
commandLineArguments
)
# print("Run time is", t2-t1)
# print(commandLineArguments)
# 10000 data is generated by applying force on this nodes
#([0,1,4,5,70,71,72,73,74,75,76,79,80,81,82,83,84,85,86,87,88]
#and forces applied are np.random.uniform(-5,5),np.random.uniform(-5,10),np.random.uniform(-5,5)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment