DiagonalMassForSW Class Reference

DiagonalMassForSW.h DG++. More...

#include <DiagonalMassForSW.h>

Inheritance diagram for DiagonalMassForSW:
BaseResidue Residue

List of all members.

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 DiagonalMassForSWclone () const
 Cloning mechanism.
bool getVal (const MatDouble &argval, MatDouble &funcval) const
 Computes the elemental contribution to the mass-vector.

Detailed Description

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 $ M[f][a][b] = \int_E \rho_0 N_a^f N_b^f. $ 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 $ M[f][a][a] $.

A mass-vector is assembled (instead of a matrix) with each entry compued as $ M[f][a] = \int_E \rho_0 N_a^f $ where $a$ runs over all degrees of freedom for field $ f $.

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.


Constructor & Destructor Documentation

DiagonalMassForSW::DiagonalMassForSW ( const Element IElm,
const SimpleMaterial SM,
const std::vector< size_t > &  fieldsUsed 
) [inline]

Constructor.

Parameters:
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.

Parameters:
DMM DiagonalMassForSW object to be copied.

Member Function Documentation

virtual DiagonalMassForSW* DiagonalMassForSW::clone (  )  const [inline, virtual]

Cloning mechanism.

Implements Residue.

bool DiagonalMassForSW::getVal ( const MatDouble argval,
MatDouble funcval 
) const [virtual]

Computes the elemental contribution to the mass-vector.

Parameters:
argval See Residue. It is a dummy argument since integrations are done over the reference.
funcval See Residue.

Implements Residue.


The documentation for this class was generated from the following files:
Generated on Tue Aug 2 11:51:27 2011 for Galois by  doxygen 1.6.3