OOFEM 3.0
Loading...
Searching...
No Matches
transportgradientneumann.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#pragma once
36
37//#include "prescribedgradienthomogenization.h"
38#include "activebc.h"
39#include "floatarray.h"
40
41#include <memory>
42
43#define _IFT_TransportGradientNeumann_Name "tmgradneumann"
44#define _IFT_TransportGradientNeumann_gradient "gradient"
45#define _IFT_TransportGradientNeumann_centerCoords "centercoords"
46#define _IFT_TransportGradientNeumann_surfSets "surfsets"
47#define _IFT_TransportGradientNeumann_dispControl "useeta"
48
49namespace oofem {
50class Node;
51class Element;
52
61class OOFEM_EXPORT TransportGradientNeumann : public ActiveBoundaryCondition //, public Homogenization
62{
63public:
65
66 int giveNumberOfInternalDofManagers() override { return 1; }
67 DofManager *giveInternalDofManager(int i) override;
68
69 void initializeFrom(InputRecord &ir) override;
70 void giveInputRecord(DynamicInputRecord &input) override;
71 void postInitialize() override;
72
73 bcType giveType() const override { return UnknownBT; }
74
75 void scale(double s) override;
76
77 double domainSize();
78
79 void assembleVector(FloatArray &answer, TimeStep *tStep,
80 CharType type, ValueModeType mode,
81 const UnknownNumberingScheme &s, FloatArray *eNorm=nullptr, void*lock=nullptr) override;
82
83 void assemble(SparseMtrx &answer, TimeStep *tStep, CharType type, const UnknownNumberingScheme &r_s,
84 const UnknownNumberingScheme &c_s, double scale=1.0, void*lock=nullptr) override;
85
86 void giveLocationArrays(std :: vector< IntArray > &rows, std :: vector< IntArray > &cols, CharType type,
87 const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s) override;
88
89 const char *giveClassName() const override { return "TransportGradientNeumann"; }
90 const char *giveInputRecordName() const override { return _IFT_TransportGradientNeumann_Name; }
91
92 virtual void computeField(FloatArray &flux, TimeStep *tStep);
93 virtual void computeTangent(FloatMatrix &tangent, TimeStep *tStep);
94
95 void giveFluxLocationArray(IntArray &oCols, const UnknownNumberingScheme &r_s);
96
97protected:
99 std :: unique_ptr< Node > mpFluxHom;
104
106
108 std :: vector< std :: vector< FloatArray > > eta;
109
111 void computeEta();
112
114 void integrateTangent(FloatMatrix &oTangent, Element *e, int iBndIndex, int surfSet, int pos);
115};
116} /* namespace oofem */
ActiveBoundaryCondition(int n, Domain *d)
Definition activebc.h:71
std ::vector< std ::vector< FloatArray > > eta
Scaling factor (one array per edge with one scaling factor per GP).
const char * giveClassName() const override
std ::unique_ptr< Node > mpFluxHom
DOF-manager containing the unknown homogenized stress.
void computeEta()
Help function computes phi by solving a diffusion problem on the RVE-surface.
const char * giveInputRecordName() const override
int giveNumberOfInternalDofManagers() override
Gives the number of internal dof managers.
void integrateTangent(FloatMatrix &oTangent, Element *e, int iBndIndex, int surfSet, int pos)
Help function that integrates the tangent contribution from a single element boundary.
FloatArrayF< N > assemble(const FloatArrayF< M > &x, int const (&c)[M])
Assemble components into zero matrix.
bcType
Type representing the type of bc.
Definition bctype.h:40
@ UnknownBT
Unknown.
Definition bctype.h:41
#define OOFEM_EXPORT
Definition oofemcfg.h:7
#define _IFT_TransportGradientNeumann_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