Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cm3Libraries
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm3
cm3Libraries
Commits
9af90338
Commit
9af90338
authored
10 months ago
by
MedHddd
Browse files
Options
Downloads
Patches
Plain Diff
setTimeFuction added to MultipleDG3DMaterialLaw
parent
ab8f900a
No related branches found
No related tags found
1 merge request
!426
setTime() Fuction added to MultipleDG3DMaterialLaw
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
dG3D/src/dG3DMaterialLaw.cpp
+8
-0
8 additions, 0 deletions
dG3D/src/dG3DMaterialLaw.cpp
dG3D/src/dG3DMaterialLaw.h
+1
-0
1 addition, 0 deletions
dG3D/src/dG3DMaterialLaw.h
with
9 additions
and
0 deletions
dG3D/src/dG3DMaterialLaw.cpp
+
8
−
0
View file @
9af90338
...
...
@@ -1537,6 +1537,14 @@ void MultipleDG3DMaterialLaw::setWeightGenerator(const generalMapping* wGen)
_weightGenerator = wGen->clone();
}
void MultipleDG3DMaterialLaw::setTime(const double t,const double dtime)
{
dG3DMaterialLaw::setTime(t,dtime);
for(int i=0; i<_allLaws.size();i++){
_allLaws[i]->setTime(t,dtime);
}
};
void MultipleDG3DMaterialLaw::createIPState(IPStateBase* &ips, bool hasBodyForce, const bool* state_,const MElement *ele, const int nbFF_, const IntPt *GP, const int gpt) const
{
// check interface element
...
...
This diff is collapsed.
Click to expand it.
dG3D/src/dG3DMaterialLaw.h
+
1
−
0
View file @
9af90338
...
...
@@ -437,6 +437,7 @@ class MultipleDG3DMaterialLaw : public dG3DMaterialLaw
#ifndef SWIG
MultipleDG3DMaterialLaw
(
const
MultipleDG3DMaterialLaw
&
src
);
virtual
~
MultipleDG3DMaterialLaw
();
virtual
void
setTime
(
const
double
t
,
double
dtime
);
virtual
materialLaw
::
matname
getType
()
const
{
return
materialLaw
::
MultipleLaws
;}
virtual
void
createIPState
(
IPStateBase
*
&
ips
,
bool
hasBodyForce
,
const
bool
*
state_
=
NULL
,
const
MElement
*
ele
=
NULL
,
const
int
nbFF_
=
0
,
const
IntPt
*
GP
=
NULL
,
const
int
gpt
=
0
)
const
;
// To allow initialization of bulk ip in case of fracture
...
...
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