Skip to content

Commit 5342e48

Browse files
committed
added tests and improved latticeslip. Small changes
1 parent fc424bf commit 5342e48

6 files changed

Lines changed: 55 additions & 13 deletions

File tree

src/sm/Materials/LatticeMaterials/latticeframeconcreteplastic.C

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,7 @@ namespace oofem {
891891
//fprintf(file, "kappad %.8e ", this->kappaD);
892892
// fprintf(file, "damage %.8e ", this->damage);
893893
fprintf(file, ", kappaD %.8e, damage %.8e \n", this->kappaD, this->damage);
894+
fprintf(file, "\n");
894895
}
895896

896897
void

src/sm/Materials/LatticeMaterials/latticeframesteelplastic.C

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,7 @@ namespace oofem {
669669
fprintf(file, "% .8e ", s);
670670
}
671671
fprintf(file, "kappa % .8e ", this->kappa);
672+
fprintf(file, "\n");
672673
}
673674

674675

src/sm/Materials/LatticeMaterials/latticeslip.C

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,12 @@ namespace oofem {
6767
{
6868
LatticeLinearElastic::initializeFrom(ir);
6969

70-
//Parameter which relates the shear stiffness to the normal stiffness. Default is 1000. Reread this again, because the
71-
alphaOne = 1000.;
72-
IR_GIVE_OPTIONAL_FIELD(ir, alphaOne, _IFT_LatticeSlip_a1); // Macro
7370

74-
//Parameter which is used for the definition of bending stiffness. Default is 1000.
75-
alphaTwo = 1000.;
76-
IR_GIVE_OPTIONAL_FIELD(ir, alphaTwo, _IFT_LatticeSlip_a2); // Macro
71+
//Parameter which relates the shear stiffness to the normal stiffness. Reread this again because we use the stiffness matrix from latticelinearelastic material where the default is 1.
72+
IR_GIVE_FIELD(ir, this->alphaOne, _IFT_LatticeSlip_a1); // Macro
73+
74+
//Parameter which is used for the definition of bending stiffness. Reread this again because we use the stiffness matrix from latticelinearelastic material where the default is 0. It cannot be zero for latticeslip.
75+
IR_GIVE_FIELD(ir, this->alphaTwo, _IFT_LatticeSlip_a2); // Macro
7776

7877
//Parameter which limits the stress in slip direction.
7978
IR_GIVE_FIELD(ir, tauMax, _IFT_LatticeSlip_t0); // Macro

tests/sm/latticelink1.in

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ node 1 coords 3 0. 0. 0.
99
node 2 coords 3 0.1 0. 0.
1010
node 3 coords 3 0.2 0. 0.
1111
#Lattice nodes
12-
node 4 coords 3 0.005 0.01 0.01
13-
node 5 coords 3 -0.001 -0.008 0.012
14-
node 6 coords 3 0.01 0.02 -0.008
12+
node 4 coords 3 0. 0. 0.
13+
node 5 coords 3 0.1 0. 0.
14+
node 6 coords 3 0.2 0.0 0.
1515
#BeamElements
1616
latticeframe3d 1 nodes 2 1 2 crossSect 1 mat 1
1717
latticeframe3d 2 nodes 2 2 3 crossSect 1 mat 1
1818
#links for first node
1919
latticelink3d 3 nodes 2 1 4 crossSect 2 mat 2 length 0.05 diameter 1.e-2 dirvector 3 1.000000e+00 0.000000e+00 0.000000e+00
2020
latticelink3d 4 nodes 2 2 5 crossSect 2 mat 2 length 0.1 diameter 1.e-02 dirvector 3 1.000000e+00 0.000000e+00 0.000000e+00
2121
latticelink3d 5 nodes 2 3 6 crossSect 2 mat 2 length 0.05 diameter 1.e-02 dirvector 3 1.000000e+00 0.000000e+00 0.000000e+00
22-
latticecs 1 material 1 iy 7.857e-9 iz 7.857e-9 ik 1.6e-8 shearCoeff 0.83 area 3.1416e-4
22+
latticecs 1 material 1 iy 7.857e-9 iz 7.857e-9 ik 1.6e-8 shearCoeff 0.83 area 3.1416e-2
2323
latticecs 2 material 2
24-
latticeframeelastic 1 d 0 e 2.1e21 n 0.3 talpha 0
25-
latticeslip 2 talpha 0. d 0. e 30.e9 a1 1000 type 2 alpha 0.4 s1 1.e-3 s2 2e-3 s3 6.5e-3 t0 1.541e7 tf 6.164e6
24+
latticeframeelastic 1 d 0 e 2.1e11 n 0.3 talpha 0
25+
latticeslip 2 talpha 0. d 0. e 30.e9 type 2 alpha 0.4 s1 1.e-3 s2 2e-3 s3 6.5e-3 t0 1.541e7 tf 6.164e6 a1 100. a2 100.
2626
BoundaryCondition 1 loadTimeFunction 1 dofs 6 1 2 3 4 5 6 values 6 0. 0. 0. 0. 0. 0. set 4
2727
BoundaryCondition 2 loadTimeFunction 1 dofs 1 1 values 1 0.01 set 2
28-
PiecewiseLinFunction 1 nPoints 2 t 3 0. 7. 10. f(t) 3 0. 1. 0.9
28+
PiecewiseLinFunction 1 nPoints 3 t 3 0. 9. 10. f(t) 3 0. 1. 0.93
2929
set 1 elements 2 1 2
3030
set 2 nodes 1 3
3131
set 3 elements 3 3 4 5
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
linearhardeningframesteel.out
2+
Cantilever test with latticeframesteelplastic material model
3+
NonLinearStatic nmsteps 1 nsteps 20 contextOutputStep 100
4+
nsteps 4 rtolv 1.e-0 maxiter 2000 stiffMode 1 controllmode 1 refloadmode 1 ddm 2 3 1 ddv 1 1 ddltf 1
5+
domain 3dLattice
6+
OutputManager tstep_all element_all dofman_all
7+
ndofman 3 nelem 2 ncrosssect 1 nmat 1 nbc 1 nic 0 nltf 1
8+
node 1 coords 3 0.000000e+00 0.000000e+00 0.000000e+00 bc 6 1 1 1 1 1 1
9+
node 2 coords 3 0.500000e+00 0.000000e+00 0.000000e+00
10+
node 3 coords 3 1.000000e+00 0.000000e+00 0.000000e+00 bc 6 0 0 0 0 0 0
11+
latticeframe3d 1 nodes 2 1 2 zaxis 3 0 0 1 crossSect 1
12+
latticeframe3d 2 nodes 2 2 3 zaxis 3 0 0 1 crossSect 1
13+
latticecs 1 material 1 iy 0.083 iz 0.083 ik 0.167 shearCoeff 1. area 1.
14+
latticeframesteelplastic 1 d 1. E 1. n 0.15 talpha 0 nx0 1 mx0 1 my0 1 mz0 1 tol 1.e-6 iter 100 sub 10 h 0.3
15+
BoundaryCondition 1 loadTimeFunction 1 prescribedvalue 0.0
16+
ConstantFunction 1 f(t) 1.
17+
#%BEGIN_CHECK%
18+
#ELEMENT number 2 gp 1 keyword latticestrain component 1
19+
#ELEMENT number 2 gp 1 keyword latticestress component 1
20+
#%END_CHECK%
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
multilinearhardeningframesteel.out
2+
Cantilever test with latticeframesteelplastic material model
3+
NonLinearStatic nmsteps 1 nsteps 20 contextOutputStep 100 nmodules 0
4+
nsteps 4 rtolv 1.e-0 maxiter 2000 stiffMode 2 controllmode 1 refloadmode 1 ddm 2 3 1 ddv 1 2 ddltf 1
5+
#vtkxml primvars 1 1 cellvars 6 138 139 140 156 157 158 tstep_step 1 domain_all
6+
domain 3dLattice
7+
OutputManager tstep_all element_all dofman_all
8+
ndofman 3 nelem 2 ncrosssect 1 nmat 1 nbc 1 nic 0 nltf 1
9+
node 1 coords 3 0.000000e+00 0.000000e+00 0.000000e+00 bc 6 1 1 1 1 1 1
10+
node 2 coords 3 0.500000e+00 0.000000e+00 0.000000e+00
11+
node 3 coords 3 1.000000e+00 0.000000e+00 0.000000e+00 bc 6 0 0 0 0 0 0
12+
latticeframe3d 1 nodes 2 1 2 zaxis 3 0 0 1 crossSect 1
13+
latticeframe3d 2 nodes 2 2 3 zaxis 3 0 0 1 crossSect 1
14+
latticecs 1 material 1 iy 0.083 iz 0.083 ik 0.167 shearCoeff 1. area 1.
15+
latticeframesteelplastic 1 d 1. E 1. n 0.15 talpha 0 nx0 1 mx0 1 my0 1 mz0 1 tol 1.e-6 iter 100 sub 10 htype 1 h_eps 10 0. 0.3 0.6 1. 1.2 2.5 4. 4.5 10 100 h(eps) 10 1. 1. 1.143 1.214 1.281 1.319 1.333 0.666 0.1 0.1
16+
BoundaryCondition 1 loadTimeFunction 1 prescribedvalue 0.0
17+
ConstantFunction 1 f(t) 1.
18+
#%BEGIN_CHECK%
19+
#ELEMENT number 2 gp 1 keyword latticestrain component 1
20+
#ELEMENT number 2 gp 1 keyword latticestress component 1
21+
#%END_CHECK%

0 commit comments

Comments
 (0)