OOFEM 3.0
Loading...
Searching...
No Matches
fe2fluidmaterial.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 fe2sinteringmaterial_h
36#define fe2sinteringmaterial_h
37
39#include "matstatus.h"
41#include "floatmatrix.h"
42
43#include <memory>
44
46
47#define _IFT_FE2FluidMaterial_Name "fe2fluidmaterial"
48#define _IFT_FE2FluidMaterial_fileName "inputfile"
50
51namespace oofem {
52class EngngModel;
53
59{
60protected:
62 std :: unique_ptr< EngngModel > rve;
65
69 double Cp;
70
71 double pressure;
73
75
76public:
84 FE2FluidMaterialStatus(int n, int rank, GaussPoint * gp, const std :: string & inputfile);
85
86 EngngModel *giveRVE() { return this->rve.get(); }
87 MixedGradientPressureBC *giveBC() { return this->bc; }
88
89 void markOldTangents();
90 void computeTangents(TimeStep *tStep);
91
92 double giveVOFFraction() { return this->voffraction; }
93
95 bool createRVE(int n, int rank, GaussPoint *gp, const std :: string &inputfile);
96
98 void setTimeStep(TimeStep *tStep);
99
103 double &giveVolumetricPressureTangent() { return Cp; }
104
105 double givePressure() { return this->pressure; }
106 void letPressureBe(double val) { this->pressure = val; }
107
108 void printOutputAt(FILE *file, TimeStep *tStep) const override;
109
110 void initTempStatus() override;
111 void updateYourself(TimeStep *tStep) override;
112
113 void saveContext(DataStream &stream, ContextMode mode) override;
114 void restoreContext(DataStream &stream, ContextMode mode) override;
115
116 const char *giveClassName() const override { return "FE2FluidMaterialStatus"; }
117};
118
119
131{
132private:
133 std :: string inputfile;
134 static int n;
135
136public:
143
144 void initializeFrom(InputRecord &ir) override;
145 void giveInputRecord(DynamicInputRecord &input) override;
146
147 int checkConsistency() override;
148
149 std::unique_ptr<MaterialStatus> CreateStatus(GaussPoint *gp) const override;
150
151 std::pair<FloatArrayF<6>, double> computeDeviatoricStress3D(const FloatArrayF<6> &eps, double pressure, GaussPoint *gp, TimeStep *tStep) const override;
152 FloatArrayF<6> computeDeviatoricStress3D(const FloatArrayF<6> &eps, GaussPoint *gp, TimeStep *tStep) const override;
153
154 FloatMatrixF<6,6> computeTangent3D(MatResponseMode mode, GaussPoint *gp, TimeStep *tStep) const override;
155 Tangents<6> computeTangents3D(MatResponseMode mode, GaussPoint *gp, TimeStep *tStep) const override;
156
157 double giveEffectiveViscosity(GaussPoint *gp, TimeStep *tStep) const override;
158
159 int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override;
160
161 const char *giveClassName() const override { return "FE2FluidMaterial"; }
162 const char *giveInputRecordName() const override { return _IFT_FE2FluidMaterial_Name; }
163};
164} // end namespace oofem
165#endif // rvesinteringmaterial_h
void printOutputAt(FILE *file, TimeStep *tStep) const override
Print receiver's output to given stream.
const char * giveClassName() const override
void computeTangents(TimeStep *tStep)
std ::unique_ptr< EngngModel > rve
The subscale flow.
FE2FluidMaterialStatus(int n, int rank, GaussPoint *gp, const std ::string &inputfile)
FloatArray & giveVolumetricDeviatoricTangent()
void updateYourself(TimeStep *tStep) override
MixedGradientPressureBC * giveBC()
MixedGradientPressureBC * bc
Boundary condition in RVE that performs the computational homogenization.
void saveContext(DataStream &stream, ContextMode mode) override
void setTimeStep(TimeStep *tStep)
Copies time step data to RVE.
FloatArray & giveDeviatoricPressureTangent()
bool createRVE(int n, int rank, GaussPoint *gp, const std ::string &inputfile)
Creates/Initiates the RVE problem.
void restoreContext(DataStream &stream, ContextMode mode) override
int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override
std::unique_ptr< MaterialStatus > CreateStatus(GaussPoint *gp) const override
void initializeFrom(InputRecord &ir) override
double giveEffectiveViscosity(GaussPoint *gp, TimeStep *tStep) const override
Tangents< 6 > computeTangents3D(MatResponseMode mode, GaussPoint *gp, TimeStep *tStep) const override
const char * giveInputRecordName() const override
FloatMatrixF< 6, 6 > computeTangent3D(MatResponseMode mode, GaussPoint *gp, TimeStep *tStep) const override
const char * giveClassName() const override
void giveInputRecord(DynamicInputRecord &input) override
std::pair< FloatArrayF< 6 >, double > computeDeviatoricStress3D(const FloatArrayF< 6 > &eps, double pressure, GaussPoint *gp, TimeStep *tStep) const override
int checkConsistency() override
FE2FluidMaterial(int n, Domain *d)
FluidDynamicMaterialStatus(GaussPoint *g)
Constructor - creates new TransportMaterialStatus with number n, belonging to domain d and integratio...
GaussPoint * gp
Associated integration point.
#define _IFT_FE2FluidMaterial_Name
long ContextMode
Definition contextmode.h:43

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