OOFEM 3.0
Loading...
Searching...
No Matches
twofluidmaterial.h
Go to the documentation of this file.
1/*
2 *
3 * ##### ##### ###### ###### ### ###
4 * ## ## ## ## ## ## ## ### ##
5 * ## ## ## ## #### #### ## # ##
6 * ## ## ## ## ## ## ## ##
7 * ## ## ## ## ## ## ## ##
8 * ##### ##### ## ###### ## ##
9 *
10 *
11 * OOFEM : Object Oriented Finite Element Code
12 *
13 * Copyright (C) 1993 - 2025 Borek Patzak
14 *
15 *
16 *
17 * Czech Technical University, Faculty of Civil Engineering,
18 * Department of Structural Mechanics, 166 29 Prague, Czech Republic
19 *
20 * This library is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU Lesser General Public
22 * License as published by the Free Software Foundation; either
23 * version 2.1 of the License, or (at your option) any later version.
24 *
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28 * Lesser General Public License for more details.
29 *
30 * You should have received a copy of the GNU Lesser General Public
31 * License along with this library; if not, write to the Free Software
32 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
33 */
34
35#ifndef twofluidmaterial_h
36#define twofluidmaterial_h
37
39#include "intarray.h"
40#include "matstatus.h"
41#include "gausspoint.h"
42
43#include <memory>
44#include <array>
45
47
48#define _IFT_TwoFluidMaterial_Name "twofluidmat"
49#define _IFT_TwoFluidMaterial_mat "mat"
51
52namespace oofem {
53
59{
60protected:
62
63public:
70
71 void initializeFrom(InputRecord &ir) override;
72 void giveInputRecord(DynamicInputRecord &input) override;
73
74 FloatArrayF<6> computeDeviatoricStress3D(const FloatArrayF<6> &answer, GaussPoint *gp, TimeStep *tStep) const override;
75 FloatMatrixF<6,6> computeTangent3D(MatResponseMode mode, GaussPoint *gp, TimeStep *tStep) const override;
76
77 double giveEffectiveViscosity(GaussPoint *gp, TimeStep *tStep) const override;
78 double give(int aProperty, GaussPoint *gp) const override;
79 int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override;
80 const char *giveClassName() const override { return "TwoFluidMaterial"; }
81 const char *giveInputRecordName() const override { return _IFT_TwoFluidMaterial_Name; }
82 int checkConsistency() override;
83 std::unique_ptr<MaterialStatus> CreateStatus(GaussPoint *gp) const override;
84
85protected:
87 double giveTempVOF(GaussPoint *gp) const;
88};
89
90
92{
93protected:
94 std::array<GaussPoint, 2> slaveGps;
96 //std::array<std::unique_ptr<MaterialStatus>, 2> slaveStatus;
97
98public:
100 TwoFluidMaterialStatus(GaussPoint * g, const std::array<Material*, 2> &slaveMaterial);
101
102 void printOutputAt(FILE *file, TimeStep *tStep) const override;
103
104 void initTempStatus() override;
105 void updateYourself(TimeStep *tStep) override;
106
107 void saveContext(DataStream &stream, ContextMode mode) override;
108 void restoreContext(DataStream &stream, ContextMode mode) override;
109 const char *giveClassName() const override { return "TwoFluidMaterialStatus"; }
110
111 GaussPoint *giveSlaveGaussPoint0() { return &this->slaveGps[0]; }
112 GaussPoint *giveSlaveGaussPoint1() { return &this->slaveGps[1]; }
113};
114} // end namespace oofem
115#endif // twofluidmaterial_h
FluidDynamicMaterialStatus(GaussPoint *g)
Constructor - creates new TransportMaterialStatus with number n, belonging to domain d and integratio...
void restoreContext(DataStream &stream, ContextMode mode) override
void updateYourself(TimeStep *tStep) override
void saveContext(DataStream &stream, ContextMode mode) override
void printOutputAt(FILE *file, TimeStep *tStep) const override
Print receiver's output to given stream.
TwoFluidMaterialStatus(GaussPoint *g, const std::array< Material *, 2 > &slaveMaterial)
Constructor.
std::array< GaussPoint, 2 > slaveGps
const char * giveClassName() const override
FloatMatrixF< 6, 6 > computeTangent3D(MatResponseMode mode, GaussPoint *gp, TimeStep *tStep) const override
std::unique_ptr< MaterialStatus > CreateStatus(GaussPoint *gp) const override
FluidDynamicMaterial * giveMaterial(int i) const
const char * giveClassName() const override
double giveTempVOF(GaussPoint *gp) const
TwoFluidMaterial(int n, Domain *d)
const char * giveInputRecordName() const override
FloatArrayF< 6 > computeDeviatoricStress3D(const FloatArrayF< 6 > &answer, GaussPoint *gp, TimeStep *tStep) const override
double give(int aProperty, GaussPoint *gp) const override
void giveInputRecord(DynamicInputRecord &input) override
double giveEffectiveViscosity(GaussPoint *gp, TimeStep *tStep) const override
void initializeFrom(InputRecord &ir) override
int checkConsistency() override
int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override
long ContextMode
Definition contextmode.h:43
#define _IFT_TwoFluidMaterial_Name

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