Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
iMSTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ben Boeckel
iMSTK
Commits
b50bfed1
Commit
b50bfed1
authored
5 years ago
by
Nghia Truong
Browse files
Options
Downloads
Patches
Plain Diff
BUG: Set default value for PBDModelConfig to fix non-deterministic behaviors
parent
a296055e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Source/Constraint/PbdConstraints/imstkPbdConstraint.h
+1
-1
1 addition, 1 deletion
Source/Constraint/PbdConstraints/imstkPbdConstraint.h
Source/DynamicalModels/ObjectModels/imstkPbdModel.h
+9
-9
9 additions, 9 deletions
Source/DynamicalModels/ObjectModels/imstkPbdModel.h
with
10 additions
and
10 deletions
Source/Constraint/PbdConstraints/imstkPbdConstraint.h
+
1
−
1
View file @
b50bfed1
...
...
@@ -83,6 +83,6 @@ public:
protected
:
std
::
vector
<
size_t
>
m_vertexIds
;
///> index of points for the constraint
double
m_epsilon
=
1.0e-6
;
///> Tolerance used for the costraints
double
m_epsilon
=
1.0e-
1
6
;
///> Tolerance used for the costraints
};
}
This diff is collapsed.
Click to expand it.
Source/DynamicalModels/ObjectModels/imstkPbdModel.h
+
9
−
9
View file @
b50bfed1
...
...
@@ -42,20 +42,20 @@ struct PBDModelConfig
double
m_viscousDampingCoeff
=
0.01
;
///> Viscous damping coefficient [0, 1]
double
m_contactStiffness
=
1.0
;
///> Contact stiffness for collisions
double
m_proximity
;
///> Proximity for collisions
double
m_proximity
=
0.1
;
///> Proximity for collisions
unsigned
int
m_maxIter
;
///> Max. pbd iterations
double
m_dt
;
///> Time step size
double
m_DefaultDt
;
///> Default Time step size
unsigned
int
m_maxIter
=
10
;
///> Max. pbd iterations
double
m_dt
=
0.01
;
///> Time step size
double
m_DefaultDt
=
0.01
;
///> Default Time step size
std
::
vector
<
std
::
size_t
>
m_fixedNodeIds
;
///> Nodal IDs of the nodes that are fixed
Vec3r
m_gravity
;
///> Gravity
Vec3r
m_gravity
=
Vec3r
(
0
,
-
9.81
,
0
)
;
///> Gravity
double
m_mu
;
///> Lame constant, if constraint type is FEM
double
m_lambda
;
///> Lame constant, if constraint type is FEM
double
m_mu
=
0
;
///> Lame constant, if constraint type is FEM
double
m_lambda
=
0
;
///> Lame constant, if constraint type is FEM
double
m_YoungModulus
;
///> FEM parameter, if constraint type is FEM
double
m_PoissonRatio
;
///> FEM parameter, if constraint type is FEM
double
m_YoungModulus
=
1000
;
///> FEM parameter, if constraint type is FEM
double
m_PoissonRatio
=
0.2
;
///> FEM parameter, if constraint type is FEM
std
::
vector
<
std
::
pair
<
PbdConstraint
::
Type
,
double
>>
m_RegularConstraints
;
///> Constraints except FEM
std
::
vector
<
std
::
pair
<
PbdConstraint
::
Type
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment