Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
testPhysicsBases Namespace Reference

Functions

 configure (physics, length)

Variables

 root = Path(sys.argv[2])
 prefix
 folder = Path(directory)
str inputs = folder / "inputFiles"
 traits = model.DefectiveCrystalTraitsIO(str(folder))
 default_config = model.DefectiveCrystalConfigIO()
 custom_config = model.DefectiveCrystalConfigIO(str(folder / "custom"))
 base = model.DefectiveCrystalBase(str(folder))
 generator = model.MicrostructureGenerator(base)
 dd = base.dislocationDynamicsBase
 plane = dd.glidePlane(np.zeros(3), np.array([0., 0., 1.]), 1)
 periodic = dd.periodicGlidePlane(np.zeros(3), np.array([0., 0., 1.]), 1)
str poly = inputs / "polycrystal.txt"
 cd = base.clusterDynamicsBase
 mesh
 regions = mesh.regions()
dict shared_faces = {}

Detailed Description

Python ownership and shared-context API regression. Takes module directory and repository root.

Function Documentation

◆ configure()

testPhysicsBases.configure ( physics,
length )

Definition at line 22 of file testPhysicsBases.py.

Variable Documentation

◆ base

testPhysicsBases.base = model.DefectiveCrystalBase(str(folder))

Definition at line 39 of file testPhysicsBases.py.

◆ cd

testPhysicsBases.cd = base.clusterDynamicsBase

Definition at line 81 of file testPhysicsBases.py.

◆ custom_config

testPhysicsBases.custom_config = model.DefectiveCrystalConfigIO(str(folder / "custom"))

Definition at line 38 of file testPhysicsBases.py.

◆ dd

testPhysicsBases.dd = base.dislocationDynamicsBase

Definition at line 60 of file testPhysicsBases.py.

◆ default_config

testPhysicsBases.default_config = model.DefectiveCrystalConfigIO()

Definition at line 37 of file testPhysicsBases.py.

◆ folder

testPhysicsBases.folder = Path(directory)

Definition at line 15 of file testPhysicsBases.py.

◆ generator

testPhysicsBases.generator = model.MicrostructureGenerator(base)

Definition at line 46 of file testPhysicsBases.py.

◆ inputs

str testPhysicsBases.inputs = folder / "inputFiles"

Definition at line 16 of file testPhysicsBases.py.

◆ mesh

testPhysicsBases.mesh
Initial value:
1= model.SimplicialMesh(str(root / "Library/Meshes/bicrystal_48.msh"),
2 np.eye(3), np.zeros(3), set())

Definition at line 91 of file testPhysicsBases.py.

◆ periodic

testPhysicsBases.periodic = dd.periodicGlidePlane(np.zeros(3), np.array([0., 0., 1.]), 1)

Definition at line 63 of file testPhysicsBases.py.

◆ plane

testPhysicsBases.plane = dd.glidePlane(np.zeros(3), np.array([0., 0., 1.]), 1)

Definition at line 62 of file testPhysicsBases.py.

◆ poly

str testPhysicsBases.poly = inputs / "polycrystal.txt"

Definition at line 78 of file testPhysicsBases.py.

◆ prefix

testPhysicsBases.prefix

Definition at line 14 of file testPhysicsBases.py.

◆ regions

testPhysicsBases.regions = mesh.regions()

Definition at line 93 of file testPhysicsBases.py.

◆ root

testPhysicsBases.root = Path(sys.argv[2])

Definition at line 12 of file testPhysicsBases.py.

◆ shared_faces

dict testPhysicsBases.shared_faces = {}

Definition at line 95 of file testPhysicsBases.py.

◆ traits

testPhysicsBases.traits = model.DefectiveCrystalTraitsIO(str(folder))

Definition at line 34 of file testPhysicsBases.py.