Skip to content

Commit f979a34

Browse files
committed
update
1 parent bc84326 commit f979a34

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

BriefFiniteElementNet.Validation/Case_03/Validator.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,20 @@
44
using System.Linq;
55
using System.Text;
66
using System.Threading.Tasks;
7+
using BriefFiniteElementNet.Common;
78
using BriefFiniteElementNet.Elements;
89

910
namespace BriefFiniteElementNet.Validation.Case_03
1011
{
11-
//[ValidationCase("Console beam with tetrahedron", typeof(TetrahedronElement))]
12+
[ValidationCase("Console beam with tetrahedron", typeof(TetrahedronElement))]
1213
public class Validator : IValidationCase
1314
{
1415
public ValidationResult Validate()
1516
{
1617

1718
/**/
1819
{
19-
var model = StructureGenerator.Generate3DTetrahedralElementGrid(3, 3, 100);
20+
var model = StructureGenerator.Generate3DTetrahedralElementGrid(4, 4, 100);
2021

2122
var e = 210e9;
2223

@@ -40,7 +41,7 @@ public ValidationResult Validate()
4041
var cnt = model.Nodes.Where(i => i.Location.Z == l);
4142

4243
var f = 1e7;
43-
var I = dx * dy * dy * dy / 12;
44+
var I = dy * dx * dx * dx / 12;
4445
var rigid = new MpcElements.RigidElement_MPC() { UseForAllLoads = true };
4546

4647
foreach (var node in cnt)
@@ -49,8 +50,10 @@ public ValidationResult Validate()
4950
rigid.Nodes.Add(node);
5051
}
5152

53+
//model.MpcElements.Add(rigid);
54+
model.Trace.Listeners.Add(new ConsoleTraceListener());
5255
model.Solve_MPC();
53-
56+
5457

5558
var delta = f * l * l * l / (3 * e * I);
5659

BriefFiniteElementNet/ElementHelpers/IElementHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public interface IElementHelper
1919
/// Gets the B matrix at defined isometric coordinates (B is derivation of N regarding to local x or y or z, not regarding to ξ, η or γ -- it is ∂N/∂x or ..., it is not ∂N/∂ξ or ...).
2020
/// </summary>
2121
/// <param name="targetElement">The target element.</param>
22-
/// <param name="isoCoords">The isometric coordinations.</param>
22+
/// <param name="isoCoords">The isometric coordination.</param>
2323
///
2424
/// <returns></returns>
2525
Matrix GetBMatrixAt(Element targetElement, params double[] isoCoords);

BriefFiniteElementNet/ElementHelpers/TetrahedronHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public Matrix GetBMatrixAt(Element targetElement, params double[] isoCoords)
104104
buf.SetRow(4, new[] { 0, d1, c1, 0, d2, c2, 0, d3, c3, 0, d4, c4 });
105105
buf.SetRow(5, new[] { d1, 0, b1, d2, 0, b2, d3, 0, b3, d4, 0, b4 });
106106

107-
//buf.Scale(1 / (6.0 * v));
107+
buf.Scale(1 / (6.0 * v));
108108
}
109109

110110
return buf.AsMatrix();

0 commit comments

Comments
 (0)