net.jimmc.spelsim
Class Material

java.lang.Object
  extended by net.jimmc.spelsim.Material

public class Material
extends java.lang.Object

A description of a material. We use a fairly simple two-modulus model of the material. The first modulus is Young's Modulus, which is the stress/strain for stresses less than the yield strength of the material. In this region the deformation is assumed to be completely elastic, so that the material returns to its former length when the stress is removed. Above the yield point, the deformation is inelastic, so that the material stays stretched even when the stress is reduced. The stress/strain ratio in this second region is typically much less, so that the material lengthens more for a given addition amount of stress as compared to in the elastic region. Once the stress reaches the breakingStress, the material breaks. At this point, it will have stretched by an amount specified by the breaking strain. The strain at the yield point can be calculated from the yield strength and the Young's modulus. The difference between the breaking strain and the yield point strain, together with the difference between the breaking strength and the yield strength, can be used to determine the stress/strain ratio of the inelastic portion of the model.


Constructor Summary
Material()
          Create a material.
 
Method Summary
 double getBreakingStrength()
          Get the breaking strength of the cable.
 double getDensity()
          Get the density of the cable.
static Material getMaterial(java.lang.String name)
          Get a material with preset values.
static java.lang.String[] getMaterialNames()
          Get the list of known material names.
 double getYieldStrain()
          Get the strain at the yield point.
 double getYieldStrength()
          Get the yield strength of the cable.
 double getYoungsModulus()
          Get the Young's Modulus of the cable.
 void setBreakingStrength(double breakingStrength)
          Set the breaking strength of the material.
 void setDensity(double density)
          Set the density of the material.
 void setYieldStrength(double yieldStrength)
          Set the yield strength of the material.
 void setYoungsModulus(double youngsModulus)
          Set the Young's Modulus of the material.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Material

public Material()
Create a material.

Method Detail

getMaterial

public static Material getMaterial(java.lang.String name)
Get a material with preset values.


getMaterialNames

public static java.lang.String[] getMaterialNames()
Get the list of known material names.


setDensity

public void setDensity(double density)
Set the density of the material.

Parameters:
density - The density of the material in kg/m^3.

getDensity

public double getDensity()
Get the density of the cable.

Returns:
The density of the cable in kg/m^3.

setBreakingStrength

public void setBreakingStrength(double breakingStrength)
Set the breaking strength of the material.

Parameters:
breakingStrength - The breaking strength of the material in Pascals.

getBreakingStrength

public double getBreakingStrength()
Get the breaking strength of the cable.

Returns:
The breaking strength of the cable in Pascals.

setYieldStrength

public void setYieldStrength(double yieldStrength)
Set the yield strength of the material.

Parameters:
yieldStrength - The yield strength of the material in Pascals.

getYieldStrength

public double getYieldStrength()
Get the yield strength of the cable.

Returns:
The yield strength of the cable in Pascals.

setYoungsModulus

public void setYoungsModulus(double youngsModulus)
Set the Young's Modulus of the material.

Parameters:
youngsModulus - The Young's Modulus of the material in Pascals.

getYoungsModulus

public double getYoungsModulus()
Get the Young's Modulus of the cable.

Returns:
The Young's Modulus of the cable in Pascals.

getYieldStrain

public double getYieldStrain()
Get the strain at the yield point.