Go to the documentation of this file.
31 radius2_(radius*radius)
60 "error in reading sphere from file. \n";
102 if(!dict.
add(
"center", center_))
105 " error in writing center to dictionary "<<dict.
globalName()<<
endl;
110 if(!dict.
add(
"radius",
sqrt(radius2_)) )
113 " error in writing radius to dictionary "<<dict.
globalName()<<
endl;
126 "error in reading sphere. \n";
139 "error in writing sphere. \n";
#define fatalExit
Fatal exit.
FUNCTION_H bool write(iOstream &os) const
Vector< T, Allocator > sqrt(const Vector< T, Allocator > &v)
virtual word globalName() const
global name of entry, separated with dots
bool add(const word &keyword, const float &v)
add a float dataEntry
iOstream & endl(iOstream &os)
Add newline and flush stream.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
Interface class for any input stream
#define fatalErrorInFunction
Report a fatal error and function name and exit the application.
bool nextData(const word &keyword, T &data)
read the data next to keword keyword data; check the keyword is correct or not
FUNCTION_H bool read(iIstream &is)
INLINE_FUNCTION iIstream & operator>>(iIstream &str, AB3History &ab3)
INLINE_FUNCTION iOstream & operator<<(iOstream &str, const AB3History &ab3)
virtual const word & name() const
Return the name of the stream.
T getVal(const word &keyword) const
get the value of data entry
FUNCTION_H sphere(const realx3 ¢er, const real radius)
#define ioErrorInFile(fileName, lineNumber)
Report an error in file operation with supplied fileName and lineNumber.
int32 lineNumber() const
Const access to the current stream line number.
Interface class for any output stream.
iOstream & writeWordEntry(const word &key, const T &value)
Write a keyword/value entry.
Dictionary holds a set of data entries or sub-dictionaries that are enclosed in a curely braces or ar...