FEM: code formatting, pep8, 261
This commit is contained in:
@@ -39,7 +39,7 @@ def get_information():
|
||||
"constraints": [],
|
||||
"solvers": ["calculix", "ccxtools", "elmer"],
|
||||
"material": "solid",
|
||||
"equations": ["elasticity"] # "frequency", but list not allowed here
|
||||
"equations": ["elasticity"] # "frequency", but list not allowed here
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -108,7 +108,7 @@ class ESwriter:
|
||||
self.write.constsdef["PermittivityOfVacuum"],
|
||||
"T^4*I^2/(L^3*M)"
|
||||
)
|
||||
permittivity = round(permittivity, 20) # to get rid of numerical artifacts
|
||||
permittivity = round(permittivity, 20) # to get rid of numerical artifacts
|
||||
self.write.constant("Permittivity Of Vacuum", permittivity)
|
||||
|
||||
def handleElectrostaticMaterial(self, bodies):
|
||||
|
||||
@@ -130,7 +130,7 @@ class MgDyn2Dwriter:
|
||||
)
|
||||
self.write.material(name, "Name", m["Name"])
|
||||
conductivity = self.write.convert(m["ElectricalConductivity"], "T^3*I^2/(L^3*M)")
|
||||
conductivity = round(conductivity, 10) # to get rid of numerical artifacts
|
||||
conductivity = round(conductivity, 10) # to get rid of numerical artifacts
|
||||
self.write.material(name, "Electric Conductivity", conductivity)
|
||||
self.write.material(
|
||||
name, "Relative Permeability",
|
||||
|
||||
@@ -155,7 +155,7 @@ class MgDynwriter:
|
||||
)
|
||||
self.write.material(name, "Name", m["Name"])
|
||||
conductivity = self.write.convert(m["ElectricalConductivity"], "T^3*I^2/(L^3*M)")
|
||||
conductivity = round(conductivity, 10) # to get rid of numerical artifacts
|
||||
conductivity = round(conductivity, 10) # to get rid of numerical artifacts
|
||||
self.write.material(name, "Electric Conductivity", conductivity)
|
||||
self.write.material(
|
||||
name, "Relative Permeability",
|
||||
|
||||
Reference in New Issue
Block a user