public void GetResult_RetrieveStressAndStrain() { var strategy = new RetrieverStrategy_StressStrain(); var retrieverInfo = new RetrieverInfo_StressStrain(_model, _inputPolyline, _projectionVector, _tol, _delta, "0", 0, 0); Retriever sub = new Retriever(strategy, retrieverInfo); var output = sub.GetResults(_outputPolylines, _outputCrossedFaces); Assert.AreEqual(output[ShellSecResult.Sig_tt][0][0][0], -0.0011520737327188996, _tol); Assert.AreEqual(output[ShellSecResult.Sig_tt][0][0][1], -0.00898617511520737, _tol); Assert.AreEqual(output[ShellSecResult.Sig_nn][0][0][0], -0.10115207373271895, _tol); Assert.AreEqual(output[ShellSecResult.Sig_nn][0][0][1], -0.098847926267281172, _tol); Assert.AreEqual(output[ShellSecResult.Sig_tn][0][0][0], 0.0011520737327189025, _tol); Assert.AreEqual(output[ShellSecResult.Sig_tn][0][0][1], -0.0011520737327189012, _tol); Assert.AreEqual(output[ShellSecResult.Eps_tt][0][0][0], 0.0026811897779639689, _tol); Assert.AreEqual(output[ShellSecResult.Eps_tt][0][0][1], -3.2132054729097926E-20, _tol); Assert.AreEqual(output[ShellSecResult.Eps_nn][0][0][0], -0.033682446585672404, _tol); Assert.AreEqual(output[ShellSecResult.Eps_nn][0][0][1], -0.032677000418935918, _tol); Assert.AreEqual(output[ShellSecResult.Eps_tn][0][0][0], 0.00041893590280687348, _tol); Assert.AreEqual(output[ShellSecResult.Eps_tn][0][0][1], -0.0004189359028068732, _tol); }
public void GetResult_RetrieveForce() { RetrieverStrategy_Force strategy = new RetrieverStrategy_Force(); var retrieverInfo = new RetrieverInfo_Force(_model, _inputPolyline, _projectionVector, _tol, _delta, "0"); Retriever sub = new Retriever(strategy, retrieverInfo); var output = sub.GetResults(_outputPolylines, _outputCrossedFaces); Assert.AreEqual(output[ShellSecResult.N_tt][0][0][0], -0.11520737327188897, _tol); Assert.AreEqual(output[ShellSecResult.N_tt][0][0][1], -0.89861751152073854, _tol); Assert.AreEqual(output[ShellSecResult.N_nn][0][0][0], -10.115207373271891, _tol); Assert.AreEqual(output[ShellSecResult.N_nn][0][0][1], -9.8847926267281174, _tol); Assert.AreEqual(output[ShellSecResult.N_tn][0][0][0], 0.11520737327188962, _tol); Assert.AreEqual(output[ShellSecResult.N_tn][0][0][1], -0.11520737327188892, _tol); Assert.AreEqual(output[ShellSecResult.M_tt][0][0][0], 0.70864983417139238, _tol); Assert.AreEqual(output[ShellSecResult.M_tt][0][0][1], 0.47735904568310589, _tol); Assert.AreEqual(output[ShellSecResult.M_nn][0][0][0], 4.7490504974858254, _tol); Assert.AreEqual(output[ShellSecResult.M_nn][0][0][1], 5.2509495025141719, _tol); Assert.AreEqual(output[ShellSecResult.M_tn][0][0][0], -0.22885016582860404, _tol); Assert.AreEqual(output[ShellSecResult.M_tn][0][0][1], -0.11609674227024558, _tol); Assert.AreEqual(output[ShellSecResult.V_t][0][0][0], 0.30910653150743272, _tol); Assert.AreEqual(output[ShellSecResult.V_t][0][0][1], -0.25541283299453926, _tol); Assert.AreEqual(output[ShellSecResult.V_n][0][0][0], -10.309106531507435, _tol); Assert.AreEqual(output[ShellSecResult.V_n][0][0][1], -9.6908934684925558, _tol); }
public void GetResult_RetrieveDisplacement() { var strategy = new RetrieverStrategy_Displacement(); var retrieverInfo = new RetrieverInfo_Displacement(_model, _inputPolyline, _projectionVector, _tol, _delta, "0"); Retriever sub = new Retriever(strategy, retrieverInfo); var output = sub.GetResults(_outputPolylines, _outputCrossedFaces); Assert.AreEqual(output[ShellSecResult.X][0][0][0], -1.68412232928183E-05, _tol); Assert.AreEqual(output[ShellSecResult.Y][0][0][0], -9.21658986175114E-07, _tol); Assert.AreEqual(output[ShellSecResult.Z][0][0][0], -0.647970257394647, _tol); Assert.AreEqual(output[ShellSecResult.X][0][0][1], -1.63385002094896E-05, _tol); Assert.AreEqual(output[ShellSecResult.Y][0][0][1], 4.18935902857243E-07, _tol); Assert.AreEqual(output[ShellSecResult.Z][0][0][1], -0.685157079612762, _tol); Assert.AreEqual(output[ShellSecResult.X][0][0][2], -1.63385002094896E-05, _tol); Assert.AreEqual(output[ShellSecResult.Y][0][0][2], 4.18935902857243E-07, _tol); Assert.AreEqual(output[ShellSecResult.Z][0][0][2], -0.685157079612762, _tol); }