OOFEM 3.0
Loading...
Searching...
No Matches
surfacetensionbc.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 surfacetensionbc_h
36#define surfacetensionbc_h
37
38#include "activebc.h"
39
40#include <utility>
41#include <list>
42
44
45#define _IFT_SurfaceTensionBoundaryCondition_Name "surfacetension"
46#define _IFT_SurfaceTensionBoundaryCondition_gamma "gamma"
47#define _IFT_SurfaceTensionBoundaryCondition_useTangent "usetangent"
49
50namespace oofem {
51class Element;
52
58{
59 double gamma;
61
62public:
71
72 void initializeFrom(InputRecord &ir) override;
73
74 void assemble(SparseMtrx &answer, TimeStep *tStep,
75 CharType type, const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s, double scale = 1.0, void*lock=nullptr) override;
76
77 void assembleVector(FloatArray &answer, TimeStep *tStep,
78 CharType type, ValueModeType mode,
79 const UnknownNumberingScheme &s,
80 FloatArray *eNorms=nullptr,
81 void*lock=nullptr) override;
82
83 void giveLocationArrays(std :: vector< IntArray > &rows, std :: vector< IntArray > &cols, CharType type,
84 const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s) override;
85
86 const char *giveClassName() const override { return "SurfaceTensionBoundaryCondition"; }
87 const char *giveInputRecordName() const override { return _IFT_SurfaceTensionBoundaryCondition_Name; }
88
89protected:
93 void computeLoadVectorFromElement(FloatArray &answer, Element *e, int side, TimeStep *tStep);
97 void computeTangentFromElement(FloatMatrix &answer, Element *e, int side, TimeStep *tStep);
98};
99} // end namespace oofem
100#endif // surfacetensionbc_h
ActiveBoundaryCondition(int n, Domain *d)
Definition activebc.h:71
virtual ~SurfaceTensionBoundaryCondition()
Destructor.
bool useTangent
Determines if tangent should be used.
const char * giveInputRecordName() const override
const char * giveClassName() const override
FloatArrayF< N > assemble(const FloatArrayF< M > &x, int const (&c)[M])
Assemble components into zero matrix.
#define OOFEM_EXPORT
Definition oofemcfg.h:7
#define _IFT_SurfaceTensionBoundaryCondition_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