Skip to content

Commit 56491e5

Browse files
committed
add input file for stress decomposition tests
1 parent b45051d commit 56491e5

2 files changed

Lines changed: 91 additions & 2 deletions

File tree

src/MateSystem/MieheLinearElasticMaterial.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ void MateSystem::MieheLinearElasticMaterial(const int &nDim,const double &t,cons
4646
// InputParams[7-1]=0--> use strain decomposition(default)
4747
// InputParams[7-1]=1--> use stress decomposition(can be used for anisotropic case and compressive failure!)
4848
int DecompositionMode=0;
49-
if(InputParams.size()==7){
50-
if(int(InputParams[0])==0){
49+
if(InputParams.size()>=7){
50+
if(int(InputParams[7-1])==0){
5151
DecompositionMode=0;
5252
}
5353
else{

tests/pffracture/compressholes.i

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
*** This is an input file for 2d phase field fracture model with stress decomposition
2+
3+
[mesh]
4+
type=gmsh
5+
file=sampleholes.msh
6+
[end]
7+
8+
9+
[dofs]
10+
name=ux uy d
11+
[end]
12+
13+
[projection]
14+
name=vonMises Hydro sigxx sigyy sigxy
15+
[end]
16+
17+
18+
19+
[elmts]
20+
[solids]
21+
type=miehefrac
22+
dofs=ux uy d
23+
mate=frac
24+
domain=alldomain
25+
[end]
26+
[end]
27+
28+
[mates]
29+
[frac]
30+
type=miehelinear
31+
params=2.1e2 0.2 2.7e-3 2.0e-2 5.0e-6 1 1
32+
// E nu Gc L viscosity UseHist UseStressDecomposition
33+
// UseHist=1-->use the stagger solution
34+
// UseHist=0-->use the fully coupled solution
35+
[end]
36+
[end]
37+
38+
[ics]
39+
[const]
40+
type=const
41+
dof=d
42+
params=0.0
43+
[end]
44+
[end]
45+
46+
47+
[bcs]
48+
[fixUx]
49+
type=dirichlet
50+
dof=ux
51+
boundary=bottom left right
52+
value=0.0
53+
[end]
54+
[fixUy]
55+
type=dirichlet
56+
dof=uy
57+
boundary=bottom
58+
value=0.0
59+
[end]
60+
[press]
61+
type=dirichlet
62+
dof=uy
63+
value=-1.0*t
64+
boundary=top
65+
[end]
66+
[end]
67+
68+
[timestepping]
69+
type=be
70+
dt=1.0e-5
71+
dtmax=1.0e-4
72+
dtmin=5.0e-7
73+
endtime=1.0e2
74+
opts=4
75+
adaptive=true
76+
[end]
77+
[nonlinearsolver]
78+
type=newtonls
79+
r_abs_tol=5.0e-7
80+
r_rel_tol=1.5e-8
81+
maxiters=25
82+
[end]
83+
84+
85+
[job]
86+
type=transient
87+
debug=dep
88+
projection=true
89+
[end]

0 commit comments

Comments
 (0)