net.cercis.jstruct.engine
Class ElemResForSolver

java.lang.Object
  extended bynet.cercis.jstruct.engine.ElemResForSolver

public class ElemResForSolver
extends java.lang.Object

ElemResForSolver Object. This object is used in the solution process performed by the Solver to store the results of the elements and is not final. When this calculation ends, the element is stored into a final Object called ElemRes.


Constructor Summary
ElemResForSolver(int id, int nodeI, int nodeJ)
          Class Constructor when only the identifier of the Object and the first and second node of the element are known
 
Method Summary
 int id()
          Returns the value of the identifier
 int nodeI()
          Returns the value of the first node of the element
 int nodeJ()
          Returns the value of the second node of the element
 void setval(double ai, double si, double mi, double aj, double sj, double mj)
          Sets the value of the sectional forces in both elements of the element
 double val(java.lang.String type, java.lang.String coor)
          Returns the value (axial load, shear load or bending moment) in one of the two possible nodes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElemResForSolver

public ElemResForSolver(int id,
                        int nodeI,
                        int nodeJ)
Class Constructor when only the identifier of the Object and the first and second node of the element are known

Parameters:
id - Integer number with the identifier of the object
nodeI - Integer number with the value of the first node
nodeJ - Integer number with the value of the second node
Method Detail

id

public int id()
Returns the value of the identifier

Returns:
Integer number with the value of the identifier

setval

public void setval(double ai,
                   double si,
                   double mi,
                   double aj,
                   double sj,
                   double mj)
Sets the value of the sectional forces in both elements of the element

Parameters:
ai - Double number with the value of the axial load in the local X direction (axial load)
si - Double number with the value of the axial load in the local Y direction (shear load) in the first node
mi - Double number with the value of the axial load in the local Z direction (bending moment) in the first node
aj - Double number with the value of the axial load in the local X direction (axial load) in the second node
sj - Double number with the value of the axial load in the local Y direction (shear load) in the second node
mj - Double number with the value of the axial load in the local Z direction (bending moment) in the second node

val

public double val(java.lang.String type,
                  java.lang.String coor)
Returns the value (axial load, shear load or bending moment) in one of the two possible nodes

Parameters:
type - String containing the number of node whose value is desired "i" means first node; "j" means second node
coor - String containing the type of nodal load whose value is desired: "a" means axial load; "s" means shear load; "m" means bending moment
Returns:
Double value with the requested value

nodeI

public int nodeI()
Returns the value of the first node of the element

Returns:
Double value with the requested first node of the element

nodeJ

public int nodeJ()
Returns the value of the second node of the element

Returns:
Double value with the second node of the element