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

A continuity equation term ($Hp=(\grad N_p)^T f(p)$, where $f=\bf{k}/\mu \grad p$. More...

#include <termlibrary.h>

Inheritance diagram for oofem::gNTfTerm:
Collaboration diagram for oofem::gNTfTerm:

Public Member Functions

 gNTfTerm (const Variable *testField, const Variable *unknownField, MatResponseMode lhsType, MatResponseMode rhsType)
void evaluate_lin (FloatMatrix &answer, MPElement &e, GaussPoint *gp, TimeStep *tstep) const override
 Evaluates $\bf{H}$ matrix, the linearization of $w^T(\grad N)^T f(p)$, i.e. $(\grad N)^T \bf{k}/\mu \grad p = \bf{H}$.
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)

Protected Member Functions

void grad (FloatMatrix &answer, const Variable *v, const FEInterpolation *interpol, const Element &cell, const FloatArray &coords) const
 Evaluates B matrix; i.e. $\grad N$ where $N$ is interpolation matrix of unknown (p).

Protected Attributes

MatResponseMode lhsType
MatResponseMode rhsType

Additional Inherited Members

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

Detailed Description

A continuity equation term ($Hp=(\grad N_p)^T f(p)$, where $f=\bf{k}/\mu \grad p$.

Definition at line 92 of file termlibrary.h.

Constructor & Destructor Documentation

◆ gNTfTerm()

oofem::gNTfTerm::gNTfTerm ( const Variable * testField,
const Variable * unknownField,
MatResponseMode lhsType,
MatResponseMode rhsType )

Member Function Documentation

◆ evaluate()

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

◆ evaluate_lin()

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

Evaluates $\bf{H}$ matrix, the linearization of $w^T(\grad N)^T f(p)$, i.e. $(\grad N)^T \bf{k}/\mu \grad p = \bf{H}$.

Parameters
answer
e
coords

Implements oofem::Term.

Definition at line 122 of file termlibrary.C.

References oofem::FloatMatrix::beProductOf(), oofem::FloatMatrix::beTProductOf(), oofem::Term::field, oofem::Material::giveCharacteristicMatrix(), oofem::Element::giveCrossSection(), oofem::CrossSection::giveMaterial(), oofem::GaussPoint::giveNaturalCoordinates(), grad(), and lhsType.

◆ getDimensions()

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

Implements oofem::Term.

Definition at line 140 of file termlibrary.C.

◆ grad()

void oofem::gNTfTerm::grad ( FloatMatrix & answer,
const Variable * v,
const FEInterpolation * interpol,
const Element & cell,
const FloatArray & coords ) const
protected

Evaluates B matrix; i.e. $\grad N$ where $N$ is interpolation matrix of unknown (p).

Parameters
answerB matrix
v
interpol
cell
coords

Definition at line 147 of file termlibrary.C.

References oofem::FloatMatrix::beTranspositionOf(), and oofem::FEInterpolation::evaldNdx().

Referenced by evaluate(), oofem::TMgNTfTerm::evaluate(), and evaluate_lin().

◆ initializeCell()

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

Implements oofem::Term.

Definition at line 145 of file termlibrary.C.

Member Data Documentation

◆ lhsType

MatResponseMode oofem::gNTfTerm::lhsType
protected

Definition at line 94 of file termlibrary.h.

Referenced by evaluate_lin(), gNTfTerm(), and oofem::TMgNTfTerm::TMgNTfTerm().

◆ rhsType

MatResponseMode oofem::gNTfTerm::rhsType
protected

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