#include <dloadn.h>
Public Member Functions | |
dloadn () | |
double | getval (double t, long id) |
long | print (FILE *out) |
long | read (XFILE *in) |
~dloadn () | |
Public Attributes | |
gfunct * | gf |
array with time functions for particular load components | |
long | idn |
number of loaded node |
This class defines time dependent nodal load or the load which is the function of time or displacement. The load may be described with constant values, expression defined by the string or set of strings and finally it may be described with table.
Definition at line 15 of file dloadn.h.
dloadn | ( | ) |
The constructor initializes class attributes to the zero values
Created by Tomas Koudelka
Definition at line 14 of file dloadn.cpp.
~dloadn | ( | ) |
The destructor deallocates used memory.
Created by Tomas Koudelka
Definition at line 27 of file dloadn.cpp.
References gf.
double getval | ( | double | t, | |
long | id | |||
) |
The function return value of the dynamical nodal load for the time given by the parameter t.
t | - required time. | |
id | - required load component id |
Created by JK, Tomas Koudelka, Rewritten by Tomas Koudelka, 7.7.2014
Definition at line 108 of file dloadn.cpp.
References gfunct::getval(), gf, mechtop::give_ndofn(), idn, Mt, and print_err().
Referenced by dloadcase::assemble().
long print | ( | FILE * | out | ) |
The function prints data for the dynamical nodal load into the opened text file given by the parameter out.
out | - pointer to the opened text file |
0 | - on success. | |
1 | - error parsing string expression |
TKr, 08/02/2013 according to read(XFILE *in) Rewritten by Tomas Koudelka, 7.7.2014
Definition at line 81 of file dloadn.cpp.
References gf, mechtop::give_ndofn(), idn, and Mt.
Referenced by dloadcase::print().
long read | ( | XFILE * | in | ) |
The function reads data for the dynamical nodal load from the opened text file given by the parameter in.
in | - pointer to the opened text file |
0 | - on success. | |
1 | - error parsing string expression |
Created by JK Modified by TKo Rewritten by Tomas Koudelka, 7.7.2014
Definition at line 47 of file dloadn.cpp.
References gf, mechtop::give_ndofn(), idn, memset(), Mt, mechtop::nn, print_err(), and xfscanf().
Referenced by dloadcase::read().
long idn |