Go to the documentation of this file.
72int Dof :: giveDofManNumber()
const {
return this->
dofManager->giveNumber(); }
74int Dof :: giveDofManGlobalNumber()
const {
return this->
dofManager->giveGlobalNumber(); }
76void Dof :: printSingleOutputAt(FILE *File,
TimeStep *tStep,
char ch, ValueModeType mode,
double scale)
81 fprintf(File,
" dof %-3d %c % .8e\n",
dofID, ch, x);
84void Dof :: printSingleOutputWithAdditionAt(FILE *File,
TimeStep *tStep,
char ch, ValueModeType mode,
double addend)
89 fprintf(File,
" dof %-3d %c % .8e\n",
dofID, ch, x);
92void Dof :: printMultipleOutputAt(FILE *File,
TimeStep *tStep,
char *ch,
93 ValueModeType *mode,
int nite)
97 fprintf(File,
" dof %d",
dofID);
98 for (
int i = 1; i <= nite; i++ ) {
99 double x = this->
giveUnknown(mode [ i - 1 ], tStep);
100 fprintf(File,
" %c % .8e", ch [ i - 1 ], x);
107void Dof :: printYourself()
113std :: string Dof :: errorInfo(
const char *func)
const
115 return std::string(this->
giveClassName()) +
"::" + func +
" id " + std::to_string(
dofID) +
", of DofManager " + std::to_string(
dofManager->giveNumber());
120Dof :: giveBcValue(ValueModeType mode,
TimeStep *tStep)
122 if ( this->
hasBc(tStep) ) {
126 rel =
giveIc()->give(VM_Total, c);
127 return this->
giveBc()->give(
this, VM_Total, tStep) - rel;
129 return this->
giveBc()->give(
this, mode, tStep) - rel;
140 if ( !stream.
write(_val) ) {
151 if ( !stream.
read(_val) ) {
169 masterUnknowns.
at(1) = this->
giveUnknown(field, mode, tStep);
176 masterContribs.
at(1) = 1.0;
virtual int read(int *data, std::size_t count)=0
Reads count integer values into array pointed by data.
virtual int write(const int *data, std::size_t count)=0
Writes count integer values from array pointed by data.
DofIDItem dofID
Physical meaning of DOF.
DofIDItem giveDofID() const
virtual double giveUnknown(ValueModeType mode, TimeStep *tStep)=0
DofManager * dofManager
Link to related DofManager.
DofManager * giveDofManager() const
virtual bool hasIcOn(ValueModeType u)=0
virtual bool hasBc(TimeStep *tStep)=0
virtual BoundaryCondition * giveBc()
virtual const char * giveClassName() const
Returns class name of the receiver.
virtual InitialCondition * giveIc()
int giveDofManNumber() const
virtual int giveDofEquationNumber(Dof *dof) const =0
@ CIO_IOERR
General IO error.
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