use of maspack.matrix.SymmetricMatrix3d in project artisynth_core by artisynth.
the class FullBlemkerMuscle method clone.
public FullBlemkerMuscle clone() {
FullBlemkerMuscle mat = (FullBlemkerMuscle) super.clone();
mat.myTmp = new Vector3d();
mat.myMat = new SymmetricMatrix3d();
mat.myB = new SymmetricMatrix3d();
mat.myB2 = new SymmetricMatrix3d();
return mat;
}
use of maspack.matrix.SymmetricMatrix3d in project artisynth_core by artisynth.
the class FungMaterial method main.
public static void main(String[] args) {
FungMaterial mat = new FungMaterial();
RotationMatrix3d R = new RotationMatrix3d();
R.setRpy(1, 2, 3);
SolidDeformation def = new SolidDeformation();
Matrix3d Q = new Matrix3d();
def.setF(new Matrix3d(1, 3, 5, 2, 1, 4, 6, 1, 2));
Q.set(R);
Matrix6d D = new Matrix6d();
SymmetricMatrix3d sig = new SymmetricMatrix3d();
// mat.computeStress (sig, pt, dt, null);
// System.out.println ("sig=\n" + sig.toString ("%12.6f"));
// mat.computeTangent (D, sig, pt, dt, null);
// System.out.println ("D=\n" + D.toString ("%12.6f"));
mat.computeStress(sig, def, Q, null);
System.out.println("sig=\n" + sig.toString("%12.6f"));
mat.computeTangent(D, sig, def, Q, null);
System.out.println("D=\n" + D.toString("%12.6f"));
}
use of maspack.matrix.SymmetricMatrix3d in project artisynth_core by artisynth.
the class MooneyRivlinMaterial method clone.
public MooneyRivlinMaterial clone() {
MooneyRivlinMaterial mat = (MooneyRivlinMaterial) super.clone();
mat.myB = new SymmetricMatrix3d();
mat.myB2 = new SymmetricMatrix3d();
mat.myTmp = new SymmetricMatrix3d();
return mat;
}
use of maspack.matrix.SymmetricMatrix3d in project artisynth_core by artisynth.
the class MooneyRivlinMaterial method main.
public static void main(String[] args) {
MooneyRivlinMaterial mat = new MooneyRivlinMaterial();
SolidDeformation def = new SolidDeformation();
Matrix3d Q = new Matrix3d();
def.setF(new Matrix3d(1, 3, 5, 2, 1, 4, 6, 1, 2));
Matrix6d D = new Matrix6d();
SymmetricMatrix3d sig = new SymmetricMatrix3d();
mat.setC10(1.2);
mat.setC01(2.4);
mat.setC11(3.5);
mat.setC02(2.6);
mat.setC20(1.9);
mat.setBulkModulus(0.0);
mat.computeStress(sig, def, Q, null);
// pt.setStress (sig);
mat.computeTangent(D, sig, def, Q, null);
System.out.println("sig=\n" + sig.toString("%12.6f"));
System.out.println("D=\n" + D.toString("%12.6f"));
}
use of maspack.matrix.SymmetricMatrix3d in project artisynth_core by artisynth.
the class StVenantKirchoffMaterial method main.
public static void main(String[] args) {
StVenantKirchoffMaterial mat = new StVenantKirchoffMaterial();
SolidDeformation def = new SolidDeformation();
Matrix3d Q = new Matrix3d();
def.setF(new Matrix3d(1, 3, 5, 2, 1, 4, 6, 1, 2));
Matrix6d D = new Matrix6d();
SymmetricMatrix3d sig = new SymmetricMatrix3d();
mat.setYoungsModulus(10);
mat.computeStress(sig, def, Q, null);
mat.computeTangent(D, sig, def, Q, null);
System.out.println("sig=\n" + sig.toString("%12.6f"));
System.out.println("D=\n" + D.toString("%12.6f"));
}
Aggregations