@@ -17,9 +17,9 @@ namespace BriefFiniteElementNet.Elements
1717 /// </summary>
1818 [ Serializable ]
1919 [ Obsolete ( "not fully implemented yet" ) ]
20- public class HexahedralElementTest : Element
20+ public class HexahedralElement : Element
2121 {
22- public HexahedralElementTest ( ) : base ( 8 )
22+ public HexahedralElement ( ) : base ( 8 )
2323 {
2424 }
2525
@@ -66,7 +66,13 @@ public override double[] IsoCoordsToLocalCoords(params double[] isoCoords)
6666 throw new NotImplementedException ( ) ;
6767 }
6868
69-
69+ /// <summary>
70+ /// Checks the node order, throws exception if order is invalid
71+ /// </summary>
72+ private void CheckNodeOrder ( )
73+ {
74+ throw new NotImplementedException ( ) ;
75+ }
7076
7177 public override Matrix GetLambdaMatrix ( )
7278 {
@@ -121,6 +127,7 @@ public Matrix GetLocalDampMatrix()
121127
122128 public override Matrix GetGlobalDampingMatrix ( )
123129 {
130+ CheckNodeOrder ( ) ;
124131 return GetLocalDampMatrix ( ) ;
125132 }
126133
@@ -155,6 +162,8 @@ public Matrix GetLocalMassMatrix()
155162
156163 public override Matrix GetGlobalMassMatrix ( )
157164 {
165+ CheckNodeOrder ( ) ;
166+
158167 return GetLocalMassMatrix ( ) ;
159168 }
160169
@@ -190,6 +199,7 @@ public Matrix GetLocalStifnessMatrix()
190199
191200 public override Matrix GetGlobalStifnessMatrix ( )
192201 {
202+ CheckNodeOrder ( ) ;
193203 return GetLocalStifnessMatrix ( ) ; //local coords is same as global coords in hexahedral
194204 }
195205
@@ -214,17 +224,15 @@ public override Force[] GetGlobalEquivalentNodalLoads(ElementalLoad load)
214224 }
215225 }
216226
217-
218227 for ( var i = 0 ; i < buf . Length ; i ++ )
219228 buf [ i ] = t . TransformLocalToGlobal ( buf [ i ] ) ;
220229
221-
222230 return buf ;
223231 }
224232
225233 #region Deserialization Constructor
226234
227- protected HexahedralElementTest ( SerializationInfo info , StreamingContext context )
235+ protected HexahedralElement ( SerializationInfo info , StreamingContext context )
228236 : base ( info , context )
229237 {
230238 _material = ( BaseMaterial ) info . GetValue ( "_material" , typeof ( int ) ) ;
0 commit comments