50 #define _IFT_TR1_2D_CBS_Name "tr1cbs" 51 #define _IFT_Tr1CBS_vof "vof" 52 #define _IFT_Tr1CBS_pvof "pvof" 128 const FloatArray &normal,
const double p,
bool updFlag);
162 #endif // tr1_2d_cbs_h virtual void computeDiffusionTermsI(FloatArray &answer, TimeStep *)
Calculates contribution from diffusion terms for (*) velocities.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
The element interface required by NodalAvergagingRecoveryModel.
virtual int checkConsistency()
Used to check consistency and initialize some element geometry data (area,b,c)
The element interface required by ZZNodalRecoveryModel.
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
virtual void formMyVolumePoly(Polygon &myPoly, LEPlic *mat_interface, bool updFlag)
Assembles receiver volume.
Element interface for LEPlic class representing Lagrangian-Eulerian (moving) material interface...
virtual Element * giveElement()
Return number of receiver's element.
virtual int SPRNodalRecoveryMI_giveNumberOfIP()
The element interface required by ZZNodalRecoveryModel.
Abstract class representing field of primary variables (those, which are unknown and are typically as...
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
virtual double truncateMatVolume(const Polygon &matvolpoly, double &volume)
Truncates given material polygon to receiver.
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
virtual void computePressureLhs(FloatMatrix &answer, TimeStep *tStep)
Calculates the pressure LHS.
virtual void giveElementCenter(LEPlic *mat_interface, FloatArray ¢er, bool upd)
Computes the receiver center (in updated Lagrangian configuration).
virtual SPRPatchType SPRNodalRecoveryMI_givePatchType()
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
Abstract base class for all finite elements.
virtual void SPRNodalRecoveryMI_giveSPRAssemblyPoints(IntArray &pap)
virtual void updateYourself(TimeStep *tStep)
Updates element state after equilibrium in time step has been reached.
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.
virtual void computeDeviatoricStress(FloatArray &answer, GaussPoint *gp, TimeStep *tStep)
Computes deviatoric stress vector in given integration point and solution step from given total strai...
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Stores receiver state to output stream.
MaterialMode
Type representing material mode of integration point.
virtual void computeNumberOfNodalPrescribedTractionPressureContributions(FloatArray &answer, TimeStep *tStep)
Computes number of edges/sides with prescribed traction contributing to node with prescribed pressure...
#define _IFT_TR1_2D_CBS_Name
Class implementing an array of integers.
virtual void giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
virtual int EIPrimaryFieldI_evaluateFieldVectorAt(FloatArray &answer, PrimaryField &pf, const FloatArray &coords, IntArray &dofId, ValueModeType mode, TimeStep *tStep)
Evaluates the value of field at given point of interest (should be located inside receiver's volume) ...
virtual FEInterpolation * giveInterpolation() const
virtual void computeDensityRhsVelocityTerms(FloatArray &answer, TimeStep *tStep)
Computes velocity terms on RHS for density equation.
Class representing a general abstraction for finite element interpolation class.
virtual const char * giveClassName() const
Class representing a 2d triangular linear interpolation based on area coordinates.
TR1_2D_CBS(int n, Domain *aDomain)
virtual void SPRNodalRecoveryMI_giveDofMansDeterminedByPatch(IntArray &answer, int pap)
virtual int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep)
Returns the integration point corresponding value in full form.
This class is the implementation of triangular CFD element with linear (and equal order) interpolatio...
virtual void computeConsistentMassMtrx(FloatMatrix &answer, TimeStep *)
Calculates consistent mass matrix.
virtual double computeMyVolume(LEPlic *matInterface, bool updFlag)
Computes the volume of receiver.
virtual double computeCriticalLEPlicTimeStep(TimeStep *tStep)
Computes critical time step.
virtual void drawScalar(oofegGraphicContext &gc, TimeStep *tStep)
virtual Interface * giveInterface(InterfaceType)
Interface requesting service.
virtual void formMaterialVolumePoly(Polygon &matvolpoly, LEPlic *matInterface, const FloatArray &normal, const double p, bool updFlag)
Assembles the true element material polygon (takes receiver vof into accout).
virtual double computeLEPLICVolumeFraction(const FloatArray &n, const double p, LEPlic *matInterface, bool updFlag)
Computes corresponding volume fraction to given interface position.
Abstract base class representing Lagrangian-Eulerian (moving) material interfaces.
virtual void computePrescribedTractionPressure(FloatArray &answer, TimeStep *tStep)
Computes prescribed pressure due to applied tractions.
Class representing vector of real numbers.
Class representing 2D polygon.
Implementation of matrix containing floating point numbers.
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Prints output of receiver to stream, for given time step.
virtual void NodalAveragingRecoveryMI_computeNodalValue(FloatArray &answer, int node, InternalStateType type, TimeStep *tStep)
Computes the element value in given node.
virtual void computeDensityRhsPressureTerms(FloatArray &answer, TimeStep *tStep)
Computes pressure terms on RHS for density equation.
IRResultType
Type defining the return values of InputRecord reading operations.
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver state previously written in stream.
virtual void computeDiagonalMassMtrx(FloatArray &answer, TimeStep *)
Calculates diagonal mass matrix.
virtual double computeCriticalTimeStep(TimeStep *tStep)
Calculates critical time step.
This abstract class represent a general base element class for fluid dynamic problems solved using CB...
The spatial localizer element interface associated to spatial localizer.
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep)
InterfaceType
Enumerative type, used to identify interface type.
virtual void giveDofManDofIDMask(int inode, IntArray &answer) const
Returns dofmanager dof mask for node.
virtual void computeConvectionTermsI(FloatArray &answer, TimeStep *)
Calculates convection component for (*) velocities.
double p
Line constant of line segment representing interface.
the oofem namespace is to define a context or scope in which all oofem names are defined.
int giveInternalStateAtNode(FloatArray &answer, InternalStateType type, InternalStateMode mode, int node, TimeStep *tStep)
Returns internal state variable (like stress,strain) at node of element in Reduced form...
Class representing integration point in finite element program.
FloatArray normal
Interface segment normal.
virtual void formVolumeInterfacePoly(Polygon &matvolpoly, LEPlic *matInterface, const FloatArray &normal, const double p, bool updFlag)
Assembles receiver material polygon based solely on given interface line.
Class representing solution step.
InternalStateMode
Determines the mode of internal variable.
virtual const char * giveInputRecordName() const
virtual void computeCorrectionRhs(FloatArray &answer, TimeStep *tStep)
Calculates the RHS of velocity correction step.