Skip to content
Snippets Groups Projects
Commit 7040c5a2 authored by Mohib's avatar Mohib
Browse files

[GenericCrackPhaseField] - Parity with new pf interface

parent e36b1dbf
No related branches found
No related tags found
1 merge request!433[GenericCrackPhaseField] - Parity with new pf interface
...@@ -261,7 +261,7 @@ void mlawGenericCrackPhaseField::constitutive( ...@@ -261,7 +261,7 @@ void mlawGenericCrackPhaseField::constitutive(
// get length scale from Prescribed CLengthLaw // get length scale from Prescribed CLengthLaw
_cLLaw->computeCL(qPF0->getConstRefToLocalDamageVariable(), qPF1->getRefToIPCLength()); _cLLaw->computeCL(qPF0->getConstRefToLocalDamageVariable(), qPF1->getRefToIPCLength());
characteristicLength[0]=qPF1->getRefToIPCLength().getConstRefToCL(); characteristicLength[0]=qPF1->getRefToIPCLength().getConstRefToCL();
double _lc = characteristicLength[0](0,0); double _lc = std::sqrt(characteristicLength[0](0,0));
// const IPVariableMechanics* qMeca0 = dynamic_cast<const IPGenericCrackPhaseField *>(q0->getConstRefToIpMeca()); // const IPVariableMechanics* qMeca0 = dynamic_cast<const IPGenericCrackPhaseField *>(q0->getConstRefToIpMeca());
......
#coding-Utf-8-*- #coding-Utf-8-*-
from gmshpy import* from gmshpy import*
from dG3DpyDebug import* #from dG3DpyDebug import*
#from dG3Dpy import* from dG3Dpy import*
...@@ -207,7 +207,7 @@ if LoadingMode == 0: ...@@ -207,7 +207,7 @@ if LoadingMode == 0:
#mysolver.displacementBC("Edge",104,0,0.) # face y = 0 #mysolver.displacementBC("Edge",104,0,0.) # face y = 0
method = 1 method = 2
mysolver.pathFollowing(True,method) mysolver.pathFollowing(True,method)
......
#coding-Utf-8-*- #coding-Utf-8-*-
from gmshpy import* from gmshpy import*
from dG3DpyDebug import* # from dG3DpyDebug import*
#from dG3Dpy import* from dG3Dpy import*
...@@ -31,7 +31,7 @@ rho = 2450.0 # kg/m3 : density ...@@ -31,7 +31,7 @@ rho = 2450.0 # kg/m3 : density
E = 210.0e9 # Pa : Young modulus E = 210.0e9 # Pa : Young modulus
nu = 0.3 # - : poisson coefficient nu = 0.3 # - : poisson coefficient
cl = (0.015*1.0e-3) * (0.015*1.0e-3) # m2: non-local parameter (== NL-length^2) cl = (0.015*1.0e-3) * (0.015*1.0e-3)*1.1*1.1 # m2: non-local parameter (== NL-length^2)
# # material parameters (2) - cohesive law # # material parameters (2) - cohesive law
...@@ -67,7 +67,7 @@ law1.setUseBarF(False) ...@@ -67,7 +67,7 @@ law1.setUseBarF(False)
# FracLaw1 = FractureByCohesive3DLaw(FracLawNum1,BulkLawNum1,InterfaceLawNum1) # FracLaw1 = FractureByCohesive3DLaw(FracLawNum1,BulkLawNum1,InterfaceLawNum1)
mylaw1 = GenericCrackPhaseFieldDG3DMaterialLaw(lawnum3, rho, Cl_Law1, 2700.0, 1.0) mylaw1 = GenericCrackPhaseFieldDG3DMaterialLaw(lawnum3, rho, Cl_Law1, 2700.0)
mylaw1.setMechanicalMaterialLaw(law1) mylaw1.setMechanicalMaterialLaw(law1)
# Solver parameters # Solver parameters
...@@ -76,7 +76,7 @@ sol = 2 # Library for solving: Gmm=0 (default) Taucs=1 PETsc=2 ...@@ -76,7 +76,7 @@ sol = 2 # Library for solving: Gmm=0 (default) Taucs=1 PETsc=2
if Solving_mode == 1: if Solving_mode == 1:
soltype = 1 # StaticLinear=0 (default, StaticNonLinear=1, Explicit=2, soltype = 1 # StaticLinear=0 (default, StaticNonLinear=1, Explicit=2,
# Multi=3, Implicit=4, Eigen=5) # Multi=3, Implicit=4, Eigen=5)
nstep = 100 # Number of step nstep = 1000 # Number of step
ftime =1.0 # Final time ftime =1.0 # Final time
tol=1.e-5 # Relative tolerance for NR scheme tol=1.e-5 # Relative tolerance for NR scheme
tolAbs = 1.e-6 # Absolute tolerance for NR scheme tolAbs = 1.e-6 # Absolute tolerance for NR scheme
...@@ -292,6 +292,8 @@ mysolver.internalPointBuildView("sig_xy",IPField.SIG_XY, 1, 1) ...@@ -292,6 +292,8 @@ mysolver.internalPointBuildView("sig_xy",IPField.SIG_XY, 1, 1)
mysolver.internalPointBuildView("sig_yz",IPField.SIG_YZ, 1, 1) mysolver.internalPointBuildView("sig_yz",IPField.SIG_YZ, 1, 1)
mysolver.internalPointBuildView("sig_xz",IPField.SIG_XZ, 1, 1) mysolver.internalPointBuildView("sig_xz",IPField.SIG_XZ, 1, 1)
mysolver.internalPointBuildView("damage",IPField.DAMAGE,1,1) mysolver.internalPointBuildView("damage",IPField.DAMAGE,1,1)
mysolver.internalPointBuildView("local",IPField.LOCAL_0,1,1)
mysolver.internalPointBuildView("nonlocal",IPField.NONLOCAL_0,1,1)
# mysolver.internalPointBuildView("eff_eps",IPField.LOCAL_EQUIVALENT_STRAINS,1,1) # mysolver.internalPointBuildView("eff_eps",IPField.LOCAL_EQUIVALENT_STRAINS,1,1)
# mysolver.internalPointBuildView("NL_eps",IPField.NONLOCAL_EQUIVALENT_STRAINS,1,1) # mysolver.internalPointBuildView("NL_eps",IPField.NONLOCAL_EQUIVALENT_STRAINS,1,1)
# mysolver.internalPointBuildView("Blocked_element",IPField.DAMAGE_IS_BLOCKED,1,1) # mysolver.internalPointBuildView("Blocked_element",IPField.DAMAGE_IS_BLOCKED,1,1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment