コード例 #1
0
ファイル: lattice2d.C プロジェクト: Benjamin-git/OOFEM_Jim
double
Lattice2d :: giveDissipation()
{
    GaussPoint *gp = this->giveDefaultIntegrationRulePtr()->getIntegrationPoint(0);
    LatticeMaterialStatus *status = static_cast< LatticeMaterialStatus * >( gp->giveMaterialStatus() );
    double dissipation = 0;
    dissipation = status->giveDissipation();

    return dissipation;
}
コード例 #2
0
ファイル: lattice2d.C プロジェクト: vivianyw/oofem
double
Lattice2d :: giveDissipation()
{
    LatticeMaterialStatus *status;

    GaussPoint *gp;
    IntegrationRule *iRule = integrationRulesArray [ giveDefaultIntegrationRule() ];
    gp = iRule->getIntegrationPoint(0);
    status = static_cast< LatticeMaterialStatus * >( gp->giveMaterialStatus() );
    double dissipation = 0;
    dissipation = status->giveDissipation();

    return dissipation;
}