temperature not needed for pure mechanics

would also require to define thermal homogenization
This commit is contained in:
Martin Diehl 2021-02-07 15:05:38 +01:00
parent d5c98bbf62
commit 869307c5ec
5 changed files with 8 additions and 17 deletions

@ -1 +1 @@
Subproject commit d90babadfb0a33afa1b793044cc4efd4d7430731
Subproject commit 91a4329a6fe073fc2ef17e5c2c8e2f796e3b897b

View File

@ -3,9 +3,6 @@
solver:
mechanical: spectral_basic
initial_conditions:
T: 300 #in Kelvin
loadstep:
- boundary_conditions:
mechanical:

View File

@ -3,9 +3,6 @@
solver:
mechanical: spectral_basic
initial_conditions:
T: 300 #in Kelvin
loadstep:
- boundary_conditions:
mechanical:

View File

@ -3,9 +3,6 @@
solver:
mechanical: spectral_basic
initial_conditions:
T: 300 #in Kelvin
loadstep:
- boundary_conditions:
mechanical:

View File

@ -168,11 +168,11 @@ class ConfigMaterial(Config):
ok = False
if 'material' in self:
for i,v in enumerate(self['material']):
if 'constituents' in v:
f = 0.0
for c in v['constituents']:
f+= float(c['v'])
for i,m in enumerate(self['material']):
if 'constituents' in m:
v = 0.0
for c in m['constituents']:
v+= float(c['v'])
if 'O' in c:
try:
Rotation.from_quaternion(c['O'])
@ -180,8 +180,8 @@ class ConfigMaterial(Config):
o = c['O']
print(f"Invalid orientation: '{o}' in material '{i}'")
ok = False
if not np.isclose(f,1.0):
print(f"Invalid total fraction '{f}' in material '{i}'")
if not np.isclose(v,1.0):
print(f"Invalid total fraction (v) '{v}' in material '{i}'")
ok = False
return ok