Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Micropp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ggiuntol
Micropp
Commits
edb104d4
Commit
edb104d4
authored
Aug 15, 2019
by
Guido Giuntoli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fix and configuring benchmark-mic-4
parent
484b4861
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
src/micro_common.cpp
src/micro_common.cpp
+2
-1
test/benchmark-mic-4.cpp
test/benchmark-mic-4.cpp
+12
-7
No files found.
src/micro_common.cpp
View file @
edb104d4
...
...
@@ -310,7 +310,8 @@ void micropp<tdim>::calc_ctan_lin_mix_rule_Chamis(double ctan[nvoi * nvoi])
const
double
E22
=
Em
/
(
1
-
sqrt
(
Vf
)
*
(
1
-
Em
/
Ef
));
const
double
nu12
=
Vf
*
nu_f
+
Vm
*
nu_m
;
const
double
G12
=
Gm
/
(
1
-
sqrt
(
Vf
)
*
(
1
-
Gm
/
Gf
));
const
double
nu23
=
E22
/
(
2
*
G12
);
//const double nu23 = E22 / (2 * G12);
const
double
nu23
=
nu12
;
const
double
S
[
3
][
3
]
=
{
{
1
/
E11
,
-
nu12
/
E11
,
-
nu12
/
E11
},
...
...
test/benchmark-mic-4.cpp
View file @
edb104d4
...
...
@@ -81,8 +81,8 @@ int main(int argc, char **argv)
mic_params
.
geo_params
[
0
]
=
0.1
;
mic_params
.
geo_params
[
1
]
=
0.02
;
mic_params
.
geo_params
[
2
]
=
0.01
;
material_set
(
&
mic_params
.
materials
[
0
],
0
,
1.0e7
,
0.3
,
0.0
,
0.0
,
0.0
);
material_set
(
&
mic_params
.
materials
[
1
],
0
,
3.0e
7
,
0.3
,
0.0
,
0.0
,
0.0
);
material_set
(
&
mic_params
.
materials
[
0
],
0
,
3.0e7
,
0.25
,
0.0
,
0.0
,
0.0
);
material_set
(
&
mic_params
.
materials
[
1
],
0
,
3.0e
8
,
0.25
,
0.0
,
0.0
,
0.0
);
material_set
(
&
mic_params
.
materials
[
2
],
0
,
3.0e7
,
0.3
,
0.0
,
0.0
,
0.0
);
mic_params
.
lin_stress
=
true
;
...
...
@@ -152,17 +152,22 @@ int main(int argc, char **argv)
}
cout
<<
endl
;
micro
.
update_vars
();
file
<<
eps
[
dir
]
<<
"
\t
"
<<
sig
[
dir
]
<<
"
\t
"
<<
endl
;
file
<<
eps
[
dir
]
<<
"
\t
"
;
for
(
int
i
=
0
;
i
<
6
;
++
i
)
{
file
<<
sig
[
i
]
<<
"
\t
"
;
}
file
<<
sqrt
(
pow
(
sig
[
0
],
2
)
+
pow
(
sig
[
1
],
2
)
+
pow
(
sig
[
2
],
2
)
+
\
pow
(
sig
[
3
],
2
)
+
pow
(
sig
[
4
],
2
)
+
pow
(
sig
[
5
],
2
))
<<
"
\t
"
<<
endl
;
if
(
print
)
{
char
filename
[
128
];
snprintf
(
filename
,
128
,
"micropp_%d"
,
t
);
micro
.
output
(
0
,
filename
);
micro
.
output
(
0
,
filename
);
}
micro
.
update_vars
();
time
+=
dt
;
}
...
...
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