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

A external flux term $S=(N)^T f$, where $f$ is functor evaluating the flux. More...

#include <termlibrary.h>

Inheritance diagram for oofem::NTf_Body:
Collaboration diagram for oofem::NTf_Body:

Public Member Functions

 NTf_Body (const Variable *testField, const NTfFunctor &f)
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)

Protected Attributes

const NTfFunctorf

Additional Inherited Members

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

Detailed Description

A external flux term $S=(N)^T f$, where $f$ is functor evaluating the flux.

Definition at line 408 of file termlibrary.h.

Constructor & Destructor Documentation

◆ NTf_Body()

oofem::NTf_Body::NTf_Body ( const Variable * testField,
const NTfFunctor & f )

Definition at line 347 of file termlibrary.C.

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

Member Function Documentation

◆ evaluate()

void oofem::NTf_Body::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 350 of file termlibrary.C.

References oofem::FloatArray::beTProductOf(), f, oofem::GaussPoint::giveNaturalCoordinates(), N, and oofem::Term::testField.

◆ evaluate_lin()

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

Evaluates the linearization of term (the lhs contribution).

Parameters
answer
e
coords

Implements oofem::Term.

Definition at line 421 of file termlibrary.h.

◆ getDimensions()

void oofem::NTf_Body::getDimensions ( Element & cell) const
inlineoverridevirtual

Implements oofem::Term.

Definition at line 429 of file termlibrary.h.

◆ initializeCell()

void oofem::NTf_Body::initializeCell ( Element & cell) const
inlineoverridevirtual

Implements oofem::Term.

Definition at line 430 of file termlibrary.h.

Member Data Documentation

◆ f

const NTfFunctor& oofem::NTf_Body::f
protected

Definition at line 410 of file termlibrary.h.

Referenced by evaluate(), and NTf_Body().


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