OOFEM 3.0
Loading...
Searching...
No Matches
oofem::NTN Class Reference

Advection problem mass matrix $S=(N)^T N$. More...

#include <termlibrary4.h>

Inheritance diagram for oofem::NTN:
Collaboration diagram for oofem::NTN:

Public Member Functions

 NTN (const Variable *testField, const Variable *unknownField)
void evaluate_lin (FloatMatrix &answer, MPElement &e, GaussPoint *gp, TimeStep *tstep) const override
 Evaluates the linearization of term (the lhs contribution).
void evaluate (FloatArray &, MPElement &cell, GaussPoint *gp, TimeStep *tstep) const override
 Evaluates Internal forces vector, i.e. $w^T(\grad N)^T f(p)$.
void getDimensions (Element &cell) const override
void initializeCell (Element &cell) const override
Public Member Functions inherited from oofem::Term
 Term ()
 Term (const Variable *testField, const Variable *unknownField, MaterialMode m=MaterialMode::_Unknown)
virtual IntegrationRulegiveElementIntegrationRule (Element *e) const
virtual void initializeFrom (InputRecord &ir, EngngModel *problem)

Additional Inherited Members

Public Attributes inherited from oofem::Term
const Variablefield
const VariabletestField
MaterialMode mode

Detailed Description

Advection problem mass matrix $S=(N)^T N$.

Definition at line 49 of file termlibrary4.h.

Constructor & Destructor Documentation

◆ NTN()

oofem::NTN::NTN ( const Variable * testField,
const Variable * unknownField )

Definition at line 43 of file termlibrary4.C.

References oofem::Term::Term(), and oofem::Term::testField.

Member Function Documentation

◆ evaluate()

void oofem::NTN::evaluate ( FloatArray & answer,
MPElement & cell,
GaussPoint * gp,
TimeStep * tstep ) const
overridevirtual

Evaluates Internal forces vector, i.e. $w^T(\grad N)^T f(p)$.

Parameters
cell
coords

Implements oofem::Term.

Definition at line 51 of file termlibrary4.C.

References oofem::FloatArray::beProductOf(), evaluate_lin(), oofem::Term::field, oofem::MPElement::getUnknownVector(), and S.

◆ evaluate_lin()

void oofem::NTN::evaluate_lin ( FloatMatrix & answer,
MPElement & e,
GaussPoint * gp,
TimeStep * tstep ) const
overridevirtual

Evaluates the linearization of term (the lhs contribution).

Parameters
answer
e
coords

Implements oofem::Term.

Definition at line 45 of file termlibrary4.C.

References oofem::FloatMatrix::beDyadicProductOf(), oofem::Term::field, and oofem::GaussPoint::giveNaturalCoordinates().

Referenced by evaluate().

◆ getDimensions()

void oofem::NTN::getDimensions ( Element & cell) const
overridevirtual

Implements oofem::Term.

Definition at line 59 of file termlibrary4.C.

◆ initializeCell()

void oofem::NTN::initializeCell ( Element & cell) const
overridevirtual

Implements oofem::Term.

Definition at line 64 of file termlibrary4.C.


The documentation for this class was generated from the following files:

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011