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

#include <leplic.h>

Inheritance diagram for oofem::LEPlic:
Collaboration diagram for oofem::LEPlic:

Classes

class  computeLEPLICVolumeFractionWrapper

Public Member Functions

 LEPlic (int n, Domain *d)
void updatePosition (TimeStep *tStep) override
void updateYourself (TimeStep *tStep) override
void giveMaterialMixtureAt (FloatArray &answer, FloatArray &position) override
void giveElementMaterialMixture (FloatArray &answer, int ielem) override
double giveNodalScalarRepresentation (int) override
double computeCriticalTimeStep (TimeStep *tStep) override
void giveUpdatedCoordinate (FloatArray &answer, int num)
double giveUpdatedXCoordinate (int num)
double giveUpdatedYCoordinate (int num)
void initializeFrom (InputRecord &ir) override
void giveInputRecord (DynamicInputRecord &input) override
const char * giveClassName () const override
Public Member Functions inherited from oofem::MaterialInterface
 MaterialInterface (int n, Domain *d)
const char * giveInputRecordName () const override
virtual void initialize ()
Public Member Functions inherited from oofem::FEMComponent
 FEMComponent (int n, Domain *d)
virtual ~FEMComponent ()=default
 Virtual destructor.
DomaingiveDomain () const
virtual void setDomain (Domain *d)
int giveNumber () const
void setNumber (int num)
virtual void updateLocalNumbering (EntityRenumberingFunctor &f)
virtual void initializeFrom (InputRecord &ir, int priority)
virtual void initializeFinish ()
virtual void postInitialize ()
 Performs post initialization steps. Called after all components are created and initialized.
virtual void saveContext (DataStream &stream, ContextMode mode)
virtual void restoreContext (DataStream &stream, ContextMode mode)
virtual int checkConsistency ()
virtual void printOutputAt (FILE *file, TimeStep *tStep)
virtual void printYourself ()
 Prints receiver state on stdout. Useful for debugging.
virtual InterfacegiveInterface (InterfaceType t)
std::string errorInfo (const char *func) const
 Returns string for prepending output (used by error reporting macros).

Protected Member Functions

void doLagrangianPhase (TimeStep *tStep)
void doInterfaceReconstruction (TimeStep *tStep, bool coord_upd, bool temp_vof)
void doInterfaceRemapping (TimeStep *tStep)
void doCellDLS (FloatArray &fvgrad, int ie, bool coord_upd, bool temp_vof_flag)
void findCellLineConstant (double &p, FloatArray &fvgrad, int ie, bool coord_upd, bool temp_vof_flag)

Protected Attributes

FloatArray updated_XCoords
 Array used to store updated x-coordinates of nodes as moved along streamlines.
FloatArray updated_YCoords
 Array used to store updated y-coordinates of nodes as moved along streamlines.
double orig_reference_fluid_volume
Protected Attributes inherited from oofem::FEMComponent
int number
 Component number.
Domaindomain
 Link to domain object, useful for communicating with other FEM components.

Detailed Description

Abstract base class representing Lagrangian-Eulerian (moving) material interfaces. Its typical use to model moving interface (such as free surface) in a fixed-grid methods (as typically used in CFD). The basic tasks are representation of interface and its updating.

Definition at line 149 of file leplic.h.

Constructor & Destructor Documentation

◆ LEPlic()

oofem::LEPlic::LEPlic ( int n,
Domain * d )
inline

Constructor. Takes two two arguments. Creates MaterialInterface instance with given number and belonging to given domain.

Parameters
nComponent number in particular domain. For instance, can represent node number in particular domain.
dDomain to which component belongs to.

Definition at line 165 of file leplic.h.

References oofem::MaterialInterface::MaterialInterface(), and orig_reference_fluid_volume.

Referenced by oofem::LEPlic::computeLEPLICVolumeFractionWrapper::computeLEPLICVolumeFractionWrapper().

Member Function Documentation

◆ computeCriticalTimeStep()

double oofem::LEPlic::computeCriticalTimeStep ( TimeStep * tStep)
overridevirtual

Computes critical time step induced by receiver integration algorithm

Implements oofem::MaterialInterface.

Definition at line 650 of file leplic.C.

References oofem::LEPlicElementInterface::computeCriticalLEPlicTimeStep(), oofem::FEMComponent::domain, oofem::LEPlicElementInterfaceType, and oofem::min().

◆ doCellDLS()

◆ doInterfaceReconstruction()

◆ doInterfaceRemapping()

◆ doLagrangianPhase()

◆ findCellLineConstant()

◆ giveClassName()

const char * oofem::LEPlic::giveClassName ( ) const
inlineoverridevirtual
Returns
Class name of the receiver.

Implements oofem::FEMComponent.

Definition at line 192 of file leplic.h.

◆ giveElementMaterialMixture()

void oofem::LEPlic::giveElementMaterialMixture ( FloatArray & answer,
int ielem )
overridevirtual

Returns volumetric (or other based measure) of relative material contents in given element.

Implements oofem::MaterialInterface.

Definition at line 689 of file leplic.C.

References oofem::FloatArray::at(), oofem::FEMComponent::domain, oofem::FEMComponent::giveInterface(), oofem::LEPlicElementInterfaceType, and oofem::FloatArray::resize().

◆ giveInputRecord()

void oofem::LEPlic::giveInputRecord ( DynamicInputRecord & input)
overridevirtual

Setups the input record string of receiver.

Parameters
inputDynamic input record to be filled by receiver.

Reimplemented from oofem::FEMComponent.

Definition at line 643 of file leplic.C.

References _IFT_LEPLIC_refVol, orig_reference_fluid_volume, and oofem::DynamicInputRecord::setField().

◆ giveMaterialMixtureAt()

void oofem::LEPlic::giveMaterialMixtureAt ( FloatArray & answer,
FloatArray & position )
overridevirtual

Returns relative material contents at given point. Usually only one material is presented in given point, but some smoothing may be applied close to material interface to make transition smooth

Implements oofem::MaterialInterface.

Definition at line 665 of file leplic.C.

References oofem::FloatArray::at(), oofem::FEMComponent::domain, oofem::FEMComponent::giveInterface(), oofem::LEPlicElementInterfaceType, oofem::FloatArray::resize(), and oofem::Polygon::testPoint().

◆ giveNodalScalarRepresentation()

double oofem::LEPlic::giveNodalScalarRepresentation ( int )
overridevirtual

Returns scalar value representation of material Interface at given point. For visualization

Implements oofem::MaterialInterface.

Definition at line 704 of file leplic.C.

References oofem::IntArray::at(), oofem::FEMComponent::domain, oofem::IntArray::giveSize(), and oofem::LEPlicElementInterfaceType.

◆ giveUpdatedCoordinate()

void oofem::LEPlic::giveUpdatedCoordinate ( FloatArray & answer,
int num )
inline

◆ giveUpdatedXCoordinate()

◆ giveUpdatedYCoordinate()

◆ initializeFrom()

void oofem::LEPlic::initializeFrom ( InputRecord & ir)
overridevirtual

Initializes receiver according to object description stored in input record. This function is called immediately after creating object using constructor. Input record can be imagined as data record in component database belonging to receiver. Receiver may use value-name extracting functions to extract particular field from record. Note that initializeFrom may be called mutiple times.

See also
IR_GIVE_FIELD
IR_GIVE_OPTIONAL_FIELD
Parameters
irInput record to initialize from.
priorityPriority of the input record. This is used to determine the order of initialization

Reimplemented from oofem::FEMComponent.

Definition at line 635 of file leplic.C.

References _IFT_LEPLIC_refVol, IR_GIVE_OPTIONAL_FIELD, and orig_reference_fluid_volume.

◆ updatePosition()

void oofem::LEPlic::updatePosition ( TimeStep * tStep)
overridevirtual

Updates the position of interface according to state reached in given solution step.

Todo
Can't have OOFEG stuff here, it will crash when running OOFEM normally.

Implements oofem::MaterialInterface.

Definition at line 128 of file leplic.C.

References deleteLayerGraphics(), doInterfaceReconstruction(), doInterfaceRemapping(), doLagrangianPhase(), EVFastRedraw(), myview, and OOFEG_DEBUG_LAYER.

◆ updateYourself()

void oofem::LEPlic::updateYourself ( TimeStep * tStep)
inlineoverridevirtual

Updates element state after equilibrium in time step has been reached. All temporary history variables, which now describe equilibrium state should be copied into equilibrium ones. The existing internal state is used for update.

Implements oofem::MaterialInterface.

Definition at line 170 of file leplic.h.

Member Data Documentation

◆ orig_reference_fluid_volume

double oofem::LEPlic::orig_reference_fluid_volume
protected

Definition at line 156 of file leplic.h.

Referenced by doInterfaceRemapping(), giveInputRecord(), initializeFrom(), and LEPlic().

◆ updated_XCoords

FloatArray oofem::LEPlic::updated_XCoords
protected

Array used to store updated x-coordinates of nodes as moved along streamlines.

Definition at line 153 of file leplic.h.

Referenced by doLagrangianPhase(), giveUpdatedCoordinate(), and giveUpdatedXCoordinate().

◆ updated_YCoords

FloatArray oofem::LEPlic::updated_YCoords
protected

Array used to store updated y-coordinates of nodes as moved along streamlines.

Definition at line 155 of file leplic.h.

Referenced by doLagrangianPhase(), giveUpdatedCoordinate(), and giveUpdatedYCoordinate().


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