diff --git a/Code/configuration/SimBuilder.cc b/Code/configuration/SimBuilder.cc index 9ca493c07..45d6a5540 100644 --- a/Code/configuration/SimBuilder.cc +++ b/Code/configuration/SimBuilder.cc @@ -51,7 +51,6 @@ namespace hemelb::configuration { lb::LbmParameters SimBuilder::BuildLbmParams() const { auto&& i = config.sim_info; lb::LbmParameters ans(i.time.step_s, i.space.step_m, i.fluid.density_kgm3, i.fluid.viscosity_Pas); - ans.StressType = i.stress_type; return ans; } diff --git a/Code/configuration/SimConfig.h b/Code/configuration/SimConfig.h index e45c1b8e1..ff94d40ca 100644 --- a/Code/configuration/SimConfig.h +++ b/Code/configuration/SimConfig.h @@ -77,7 +77,6 @@ namespace hemelb::configuration }; struct GlobalSimInfo { - lb::StressTypes stress_type; TimeInfo time; SpaceInfo space; FluidInfo fluid; @@ -228,10 +227,6 @@ friend class io::Checkpointer; { return outlets; } - lb::StressTypes GetStressType() const - { - return sim_info.stress_type; - } const path& GetDataFilePath() const { return dataFilePath; diff --git a/Code/configuration/SimConfigReader.cc b/Code/configuration/SimConfigReader.cc index e7d94d3d5..4dc0152cc 100644 --- a/Code/configuration/SimConfigReader.cc +++ b/Code/configuration/SimConfigReader.cc @@ -149,20 +149,6 @@ namespace hemelb::configuration { GlobalSimInfo SimConfigReader::DoIOForSimulation(const Element simEl) const { GlobalSimInfo ans; - // Required element - // <stresstype value="enum lb::StressTypes" /> - ans.stress_type = [](unsigned v) { - switch (v) { - case lb::IgnoreStress: - return lb::IgnoreStress; - case lb::ShearStress: - return lb::IgnoreStress; - case lb::VonMises: - return lb::IgnoreStress; - default: - throw Exception() << "Invalid stresstype: " << v; - } - }(simEl.GetChildOrThrow("stresstype").GetAttributeOrThrow<unsigned>("value")); // Required element // <steps value="unsigned" units="lattice /> diff --git a/Code/configuration/SimConfigWriter.cc b/Code/configuration/SimConfigWriter.cc index fe274201c..7dc931107 100644 --- a/Code/configuration/SimConfigWriter.cc +++ b/Code/configuration/SimConfigWriter.cc @@ -105,9 +105,6 @@ namespace hemelb::configuration { void SimConfigWriter::DoIOForSimulation(const GlobalSimInfo& sim_info) { Element outSimEl = outputXml->GetRoot().AddChild("simulation"); - // Required element - // <stresstype value="enum lb::StressTypes" /> - outSimEl.AddChild("stresstype").SetAttribute("value", sim_info.stress_type); AddChildDimensionalValue(outSimEl, "step_length", "s", sim_info.time.step_s); diff --git a/Code/lb/LbmParameters.h b/Code/lb/LbmParameters.h index 0480b31d9..3df4cea3c 100644 --- a/Code/lb/LbmParameters.h +++ b/Code/lb/LbmParameters.h @@ -22,13 +22,6 @@ namespace hemelb::lb { class BoundaryValues; - enum StressTypes - { - VonMises = 0, - ShearStress = 1, - IgnoreStress = 2 - }; - class LbmParameters { inline void CalcDerivedParams() { @@ -111,8 +104,6 @@ namespace hemelb::lb return beta; } - StressTypes StressType; - private: PhysicalTime timeStep = 1; // seconds PhysicalDistance voxelSize = 1; // metres diff --git a/Code/tests/resources/config-velocity-iolet.xml b/Code/tests/resources/config-velocity-iolet.xml index ab6b4ec40..6ff8c0b82 100644 --- a/Code/tests/resources/config-velocity-iolet.xml +++ b/Code/tests/resources/config-velocity-iolet.xml @@ -1,7 +1,6 @@ <?xml version="1.0" ?> <hemelbsettings version="6"> <simulation> - <stresstype value="1" /> <steps value="40000" units="lattice" /> <step_length value="0.0001" units="s" /> <voxel_size value="0.01" units="m" /> diff --git a/Code/tests/resources/config.xml b/Code/tests/resources/config.xml index f346114a2..9b4a851be 100644 --- a/Code/tests/resources/config.xml +++ b/Code/tests/resources/config.xml @@ -1,7 +1,6 @@ <?xml version="1.0" ?> <hemelbsettings version="6"> <simulation> - <stresstype value="1" /> <steps value="3000" units="lattice" /> <step_length value="0.0001" units="s" /> <voxel_size value="0.01" units="m" /> diff --git a/Code/tests/resources/config0_2_0.xml b/Code/tests/resources/config0_2_0.xml index e1401140e..d774393dd 100644 --- a/Code/tests/resources/config0_2_0.xml +++ b/Code/tests/resources/config0_2_0.xml @@ -1,7 +1,6 @@ <?xml version="1.0" ?> <hemelbsettings version="6"> <simulation> - <stresstype value="1" /> <steps value="3000" units="lattice" /> <step_length value="0.0001" units="s" /> <voxel_size value="0.01" units="m" /> diff --git a/Code/tests/resources/config_file_inlet.xml b/Code/tests/resources/config_file_inlet.xml index f18abe934..376683fbf 100644 --- a/Code/tests/resources/config_file_inlet.xml +++ b/Code/tests/resources/config_file_inlet.xml @@ -1,7 +1,6 @@ <?xml version="1.0" ?> <hemelbsettings version="6"> <simulation> - <stresstype value="1" /> <steps value="40000" units="lattice" /> <step_length value="0.0001" units="s" /> <voxel_size value="0.01" units="m" /> diff --git a/Code/tests/resources/config_file_velocity_inlet.xml b/Code/tests/resources/config_file_velocity_inlet.xml index 3b3d3e7b0..f8781bfe0 100644 --- a/Code/tests/resources/config_file_velocity_inlet.xml +++ b/Code/tests/resources/config_file_velocity_inlet.xml @@ -1,7 +1,6 @@ <?xml version="1.0" ?> <hemelbsettings version="6"> <simulation> - <stresstype value="1" /> <steps value="4000" units="lattice" /> <step_length value="0.001" units="s" /> <voxel_size value="0.01" units="m" /> diff --git a/Code/tests/resources/config_new_velocity_inlets.xml b/Code/tests/resources/config_new_velocity_inlets.xml index aab5f3084..06af6558d 100644 --- a/Code/tests/resources/config_new_velocity_inlets.xml +++ b/Code/tests/resources/config_new_velocity_inlets.xml @@ -1,7 +1,6 @@ <?xml version="1.0" ?> <hemelbsettings version="6"> <simulation> - <stresstype value="1" /> <steps value="3000" units="lattice" /> <step_length value="0.0001" units="s" /> <voxel_size value="0.01" units="m" /> diff --git a/Code/tests/resources/config_vel_dist.xml b/Code/tests/resources/config_vel_dist.xml index 581fcd6b6..a972092ba 100644 --- a/Code/tests/resources/config_vel_dist.xml +++ b/Code/tests/resources/config_vel_dist.xml @@ -3,7 +3,6 @@ <simulation> <steps value="3000" units="lattice" /> <step_length value="0.0008571428571428571" units="s" /> - <stresstype value="1" /> <voxel_size value="4.0e-4" units="m" /> <origin value="(-3.2e-3,-3.2e-3,-5.02e-2)" units="m" /> </simulation> diff --git a/Code/tests/resources/cyl_l100_r5.xml b/Code/tests/resources/cyl_l100_r5.xml index ac0448e15..ee7b4d16d 100644 --- a/Code/tests/resources/cyl_l100_r5.xml +++ b/Code/tests/resources/cyl_l100_r5.xml @@ -3,7 +3,6 @@ <simulation> <step_length units="s" value="1.852e-08" /> <steps units="lattice" value="12000" /> - <stresstype value="1" /> <voxel_size units="m" value="3.333e-07" /> <origin units="m" value="(-5.16615e-06,-5.16615e-06,-5.016165e-05)" /> </simulation> diff --git a/Code/tests/resources/fedosov1c.xml b/Code/tests/resources/fedosov1c.xml index c4a22a037..c6ba5dc1e 100644 --- a/Code/tests/resources/fedosov1c.xml +++ b/Code/tests/resources/fedosov1c.xml @@ -3,7 +3,6 @@ <simulation> <step_length units="s" value="9.25375434888e-08" /> <steps units="lattice" value="1000" /> - <stresstype value="1" /> <voxel_size units="m" value="8.16253828854e-07" /> <origin units="m" value="(-6.53003063083e-06,-6.53003063083e-06,-3.55070415551e-05)" /> </simulation> diff --git a/Code/tests/resources/four_cube.xml b/Code/tests/resources/four_cube.xml index bc53136c7..11e0a28b6 100644 --- a/Code/tests/resources/four_cube.xml +++ b/Code/tests/resources/four_cube.xml @@ -6,7 +6,6 @@ <voxel_size value="0.01" units="m" /> <origin value="(0.0,0.0,0.0)" units="m" /> <fluid_density value="1000.0" units="kg/m3" /> - <stresstype value="1" /> </simulation> <geometry> <datafile path="./four_cube.gmy" /> diff --git a/Code/tests/resources/four_cube_multiscale.xml b/Code/tests/resources/four_cube_multiscale.xml index 1fd5ace2b..e5e17cade 100644 --- a/Code/tests/resources/four_cube_multiscale.xml +++ b/Code/tests/resources/four_cube_multiscale.xml @@ -3,7 +3,6 @@ <simulation> <steps value="100" units="lattice" /> <step_length value="0.2" units="s" /> - <stresstype value="1" /> <voxel_size value="0.01" units="m" /> <origin value="(0.0,0.0,0.0)" units="m" /> </simulation> diff --git a/Code/tests/resources/large_cylinder.xml b/Code/tests/resources/large_cylinder.xml index 9abc591dc..36ab3dab6 100644 --- a/Code/tests/resources/large_cylinder.xml +++ b/Code/tests/resources/large_cylinder.xml @@ -3,7 +3,6 @@ <simulation> <step_length units="s" value="4.4e-07" /> <steps units="lattice" value="50000" /> - <stresstype value="1" /> <voxel_size units="m" value="1.4e-06" /> <origin units="m" value="(-1.05e-05,-1.05e-05,-2.45248049736e-05)" /> </simulation> diff --git a/Code/tests/resources/large_cylinder_rbc.xml b/Code/tests/resources/large_cylinder_rbc.xml index a6374bd15..3b5552ce2 100644 --- a/Code/tests/resources/large_cylinder_rbc.xml +++ b/Code/tests/resources/large_cylinder_rbc.xml @@ -3,7 +3,6 @@ <simulation> <step_length units="s" value="2.e-7" /> <steps units="lattice" value="500" /> - <stresstype value="1" /> <voxel_size units="m" value="1.4e-06" /> <origin units="m" value="(-1.05e-05,-1.05e-05,-2.45e-05)" /> </simulation> diff --git a/doc/user/XmlConfiguration.md b/doc/user/XmlConfiguration.md index 2c8fcd8cf..a76a9f6d4 100644 --- a/doc/user/XmlConfiguration.md +++ b/doc/user/XmlConfiguration.md @@ -41,7 +41,6 @@ The `<simulation>` is required and specifies some global properties of the simulation, mainly time-related. It's child elements are: -* Required: `<stresstype value="int">` - the type of stresses to calculate. Must correspond to the `enum hemelb::lb::StressTypes` * Required: `<step_length value="float" units="s" />` - the length of a time step; units must be s (seconds) * Required: `<steps value="int" units="lattice" />` - the length of the main simulation; units must be lattice * Required: `<voxel_size value="float" units="m" />` - the voxel size in the gmy file diff --git a/geometry-tool/HlbGmyTool/Model/XmlWriter.py b/geometry-tool/HlbGmyTool/Model/XmlWriter.py index 266e7eaf9..859707bc4 100644 --- a/geometry-tool/HlbGmyTool/Model/XmlWriter.py +++ b/geometry-tool/HlbGmyTool/Model/XmlWriter.py @@ -28,7 +28,6 @@ def format_field(self, value, format_spec): class XmlWriter(object): VERSION = 6 - STRESSTYPE = 1 FMT = HexFloatFormatter() @@ -78,7 +77,6 @@ def DoSimulation(self, root): round(self.profile.DurationSeconds / self.profile.TimeStepSeconds), "lattice", ) - self.ValueElement(sim, "stresstype", self.STRESSTYPE) self.QuantityElement(sim, "voxel_size", self.profile.VoxelSizeMetres, "m") self.QuantityElement(sim, "origin", self.profile.OriginMetres, "m") return @@ -143,8 +141,5 @@ def DoIolets(self, root): continue return - def ValueElement(self, parent, name, value): - return SubElement(parent, name, value=self._totext(value)) - def QuantityElement(self, parent, name, value, units): return SubElement(parent, name, value=self._totext(value), units=units) diff --git a/geometry-tool/tests/Model/data/test.xml b/geometry-tool/tests/Model/data/test.xml index 5e8860de0..d312cce31 100644 --- a/geometry-tool/tests/Model/data/test.xml +++ b/geometry-tool/tests/Model/data/test.xml @@ -3,7 +3,6 @@ <simulation> <step_length units="s" value="0.0008571428571" /> <steps units="lattice" value="3000" /> - <stresstype value="1" /> <voxel_size units="m" value="0.0001" /> <origin units="m" value="(-0.001506801748275757,-0.0013002707004547119,-0.0015515305995941163)" /> </simulation>