DiagonalMassForSW.h DG++. More...
#include <DiagonalMassForSW.h>
Public Member Functions | |
DiagonalMassForSW (const Element &IElm, const SimpleMaterial &SM, const std::vector< size_t > &fieldsUsed) | |
Constructor. | |
virtual | ~DiagonalMassForSW () |
Destructor. | |
DiagonalMassForSW (const DiagonalMassForSW &DMM) | |
Copy constructor. | |
virtual DiagonalMassForSW * | clone () const |
Cloning mechanism. | |
bool | getVal (const MatDouble &argval, MatDouble &funcval) const |
Computes the elemental contribution to the mass-vector. |
DiagonalMassForSW.h DG++.
Created by Adrian Lew on 10/24/06.
Copyright (c) 2006 Adrian Lew
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Class to compute a diagonal mass matrix for StressWork. This class computes a diagonalized form of the (exact) mass matrix Since a diagonal mass matrix is often desired, the entries in each row of the exact mass-matrix are lumped together on the diagonal entry
.
A mass-vector is assembled (instead of a matrix) with each entry compued as where
runs over all degrees of freedom for field
.
Keeping this in mind, this class inherits the class Residue to assemble the mass vector. It has pointers to the element for which the mass matrix is to be computed and the material provided over the element. It assumes that there are a minimum of two fields over the element with an optional third. It implements the member function getVal of Residue to compute the elemental contribution to the mass-vector.
DiagonalMassForSW::DiagonalMassForSW | ( | const Element & | IElm, | |
const SimpleMaterial & | SM, | |||
const std::vector< size_t > & | fieldsUsed | |||
) | [inline] |
Constructor.
IElm | Pointer to element over which mass is to be compued. | |
SM | SimpleMaterial over the element. | |
fieldsUsed | vector containing ids of fields being computed starting with 0 |
virtual DiagonalMassForSW::~DiagonalMassForSW | ( | ) | [inline, virtual] |
Destructor.
DiagonalMassForSW::DiagonalMassForSW | ( | const DiagonalMassForSW & | DMM | ) | [inline] |
Copy constructor.
DMM | DiagonalMassForSW object to be copied. |
virtual DiagonalMassForSW* DiagonalMassForSW::clone | ( | ) | const [inline, virtual] |
Cloning mechanism.
Implements Residue.