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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm3
cm3Libraries
Commits
5b96d2ed
Commit
5b96d2ed
authored
2 weeks ago
by
Ujwal Kishore Jinaga
Browse files
Options
Downloads
Patches
Plain Diff
[MINOR FIX] Resolved bug in computeMaterialLaw - changed fullVector arguments to std:vectors.
parent
489b1066
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
dG3D/src/computeWithMaterialLaw.cpp
+6
-6
6 additions, 6 deletions
dG3D/src/computeWithMaterialLaw.cpp
dG3D/src/computeWithMaterialLaw.h
+1
-1
1 addition, 1 deletion
dG3D/src/computeWithMaterialLaw.h
with
7 additions
and
7 deletions
dG3D/src/computeWithMaterialLaw.cpp
+
6
−
6
View file @
5b96d2ed
...
@@ -444,12 +444,12 @@ void computeMaterialLaw::getTangent_dPdF(fullMatrix<double>& _dPdF){
...
@@ -444,12 +444,12 @@ void computeMaterialLaw::getTangent_dPdF(fullMatrix<double>& _dPdF){
}
}
}
}
void
computeMaterialLaw
::
getTangents_dPdT_dQdT_dQdF_dQdH_dPdH
(
fullV
ector
<
double
>&
_dPdT
,
fullV
ector
<
double
>&
_dQdT
,
fullMatrix
<
double
>&
_dQdF
,
fullMatrix
<
double
>&
_dQdH
,
fullMatrix
<
double
>&
_dPdH
){
void
computeMaterialLaw
::
getTangents_dPdT_dQdT_dQdF_dQdH_dPdH
(
std
::
v
ector
<
double
>&
_dPdT
,
std
::
v
ector
<
double
>&
_dQdT
,
fullMatrix
<
double
>&
_dQdF
,
fullMatrix
<
double
>&
_dQdH
,
fullMatrix
<
double
>&
_dPdH
){
if
(
!
_flag_isothermal
){
if
(
!
_flag_isothermal
){
_dPdT
.
resize
(
9
);
_dPdT
.
setAll
(
0.
);
_dPdT
.
resize
(
9
);
//
_dPdT.setAll(0.);
_dQdT
.
resize
(
3
);
_dQdT
.
setAll
(
0.
);
_dQdT
.
resize
(
3
);
//
_dQdT.setAll(0.);
_dQdF
.
resize
(
3
,
9
);
_dQdF
.
setAll
(
0.
);
_dQdF
.
resize
(
3
,
9
);
_dQdF
.
setAll
(
0.
);
_dQdH
.
resize
(
3
,
3
);
_d
PdT
.
setAll
(
0.
);
_dQdH
.
resize
(
3
,
3
);
_d
QdH
.
setAll
(
0.
);
_dPdH
.
resize
(
9
,
3
);
_dPdH
.
setAll
(
0.
);
_dPdH
.
resize
(
9
,
3
);
_dPdH
.
setAll
(
0.
);
IPVariable
*
ipv
=
_ips
->
getState
(
IPStateBase
::
current
);
IPVariable
*
ipv
=
_ips
->
getState
(
IPStateBase
::
current
);
...
@@ -462,9 +462,9 @@ void computeMaterialLaw::getTangents_dPdT_dQdT_dQdF_dQdH_dPdH(fullVector<double>
...
@@ -462,9 +462,9 @@ void computeMaterialLaw::getTangents_dPdT_dQdT_dQdF_dQdH_dPdH(fullVector<double>
const
STensor33
&
dPdgradT
=
ipvcur
->
getConstRefTodPdGradT
();
const
STensor33
&
dPdgradT
=
ipvcur
->
getConstRefTodPdGradT
();
for
(
int
i
=
0
;
i
<
3
;
i
++
){
for
(
int
i
=
0
;
i
<
3
;
i
++
){
_dQdT
(
i
)
+=
dQdT
(
i
);
_dQdT
[
i
]
+=
dQdT
(
i
);
for
(
int
j
=
0
;
j
<
3
;
j
++
){
for
(
int
j
=
0
;
j
<
3
;
j
++
){
_dPdT
(
i
+
3
*
j
)
+=
dPdT
(
i
,
j
);
_dPdT
[
i
+
3
*
j
]
+=
dPdT
(
i
,
j
);
_dQdH
(
i
,
j
)
+=
dQdH
(
i
,
j
);
_dQdH
(
i
,
j
)
+=
dQdH
(
i
,
j
);
// Msg::Error("_dQdH(%d,%d) = %f",i,j,_dQdH(i,j));
// Msg::Error("_dQdH(%d,%d) = %f",i,j,_dQdH(i,j));
for
(
int
k
=
0
;
k
<
3
;
k
++
){
for
(
int
k
=
0
;
k
<
3
;
k
++
){
...
...
This diff is collapsed.
Click to expand it.
dG3D/src/computeWithMaterialLaw.h
+
1
−
1
View file @
5b96d2ed
...
@@ -45,7 +45,7 @@ class computeMaterialLaw
...
@@ -45,7 +45,7 @@ class computeMaterialLaw
double
getTimeStep
()
const
;
double
getTimeStep
()
const
;
void
getStress
(
std
::
vector
<
double
>&
Pstress
);
void
getStress
(
std
::
vector
<
double
>&
Pstress
);
void
getTangent_dPdF
(
fullMatrix
<
double
>&
_dPdF
);
void
getTangent_dPdF
(
fullMatrix
<
double
>&
_dPdF
);
void
getTangents_dPdT_dQdT_dQdF_dQdH_dPdH
(
fullV
ector
<
double
>&
_dPdT
,
fullV
ector
<
double
>&
_dQdT
,
fullMatrix
<
double
>&
_dQdF
,
fullMatrix
<
double
>&
_dQdH
,
fullMatrix
<
double
>&
_dPdH
);
void
getTangents_dPdT_dQdT_dQdF_dQdH_dPdH
(
std
::
v
ector
<
double
>&
_dPdT
,
std
::
v
ector
<
double
>&
_dQdT
,
fullMatrix
<
double
>&
_dQdF
,
fullMatrix
<
double
>&
_dQdH
,
fullMatrix
<
double
>&
_dPdH
);
void
getCombinedTangents_dPQdFHT_dPQdFH
(
fullMatrix
<
double
>&
_dPQdFHT
,
fullMatrix
<
double
>&
_dPQdFH
);
void
getCombinedTangents_dPQdFHT_dPQdFH
(
fullMatrix
<
double
>&
_dPQdFHT
,
fullMatrix
<
double
>&
_dPQdFH
);
void
getHeatFlux
(
std
::
vector
<
double
>&
Qstress
);
void
getHeatFlux
(
std
::
vector
<
double
>&
Qstress
);
double
get3rdDependentVariable
();
double
get3rdDependentVariable
();
...
...
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