OOFEM 3.0
Loading...
Searching...
No Matches
function.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 function_h
36#define function_h
37
38#include "femcmpnn.h"
39#include "valuemodetype.h"
40#include "intarray.h"
41#include "floatarray.h"
42#include "gausspoint.h"
43
44#include <map>
45#include <algorithm>
46
48
49#define _IFT_Function_initialvalue "initialvalue"
51
52namespace oofem {
53class FloatArray;
54class IntArray;
55
85
91{
92public:
95
101 Function(int n, Domain * d);
103 virtual ~Function() { }
104
112 virtual double evaluate(TimeStep *tStep, ValueModeType mode);
113
119 virtual void evaluate(FloatArray &answer, const std :: map< std :: string, FunctionArgument > &valDict, GaussPoint *gp=nullptr, double param=0.);
125 virtual double evaluate(const std :: map< std :: string, FunctionArgument > &valDict);
126
132 virtual double evaluateAtTime(double t);
138 virtual double evaluateVelocityAtTime(double t) = 0;
144 virtual double evaluateAccelerationAtTime(double t) = 0;
145
146 double giveFunctionParameter(int paramID);
147 void saveContext(DataStream &stream, ContextMode mode) override;
148 void restoreContext(DataStream &stream, ContextMode mode) override;
149};
150} // end namespace oofem
151#endif // function_h
FEMComponent(int n, Domain *d)
Definition femcmpnn.h:88
FunctionArgument(int val)
Definition function.h:82
FunctionArgumentType type
Determines which of the types the instance points towards.
Definition function.h:72
FunctionArgument(IntArray val)
Definition function.h:83
FunctionArgument(double val)
Definition function.h:80
FunctionArgument(FloatArray val)
Definition function.h:81
void restoreContext(DataStream &stream, ContextMode mode) override
Definition function.C:135
double giveFunctionParameter(int paramID)
Definition function.C:49
Function(int n, Domain *d)
Definition function.C:44
virtual ~Function()
Destructor.
Definition function.h:103
virtual double evaluateAccelerationAtTime(double t)=0
virtual double evaluateVelocityAtTime(double t)=0
void saveContext(DataStream &stream, ContextMode mode) override
Definition function.C:122
Domain * funcDomain
Definition function.h:93
long ContextMode
Definition contextmode.h:43
#define OOFEM_EXPORT
Definition oofemcfg.h:7

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