# CalculateLocalSystem

(Difference between revisions)
 Revision as of 13:39, 3 December 2007 (view source)Kazem (Talk | contribs)← Older edit Revision as of 13:40, 3 December 2007 (view source)Kazem (Talk | contribs) Newer edit → Line 15: Line 15: CalculateLocalSystem(MatrixType& rLeftHandSideMatrix, CalculateLocalSystem(MatrixType& rLeftHandSideMatrix, − MatrixType& rDampMatrix, + MatrixType& rDampMatrix, − VectorType& rRightHandSideVector1, + VectorType& rRightHandSideVector1, − VectorType& rRightHandSideVector2, + VectorType& rRightHandSideVector2, − ProcessInfo& rCurrentProcessInfo){} + ProcessInfo& rCurrentProcessInfo){}

## Revision as of 13:40, 3 December 2007

There are two available functions to calculate local system, the first one that is used in LinearElement is as below

```void LinearElement::CalculateLocalSystem(MatrixType& rLeftHandSideMatrix, VectorType& rRightHandSideVector,
ProcessInfo& rCurrentProcessInfo)

{
//calculation flags
bool CalculateStiffnessMatrixFlag = true;
bool CalculateResidualVectorFlag = true;

CalculateAll(rLeftHandSideMatrix, rRightHandSideVector, rCurrentProcessInfo,
CalculateStiffnessMatrixFlag, CalculateResidualVectorFlag);

}
```

and the second one is

```CalculateLocalSystem(MatrixType& rLeftHandSideMatrix,
MatrixType& rDampMatrix,
VectorType& rRightHandSideVector1,
VectorType& rRightHandSideVector2,
ProcessInfo& rCurrentProcessInfo){}
```