Go to the documentation of this file.
64 radius2_(radius*radius)
69 "error in the input parameters for cylinder"<<
endl;
92 if(!calculateParams())
95 "error in the input parameters for cylinder in dictionary "<< dict.
globalName()<<
endl;
110 "error in reading cylinder from file. \n";
155 if(!dict.
add(
"p1", p1_))
162 if(!dict.
add(
"p2", p2_))
169 if(!dict.
add(
"radius",
sqrt(radius2_)) )
172 " error in writing radius to dictionary "<<dict.
globalName()<<
endl;
185 "error in reading cylinder. \n";
198 "error in writing cylinder. \n";
#define fatalExit
Fatal exit.
FUNCTION_H bool write(iOstream &os) const
Vector< T, Allocator > sqrt(const Vector< T, Allocator > &v)
T max(const internalField< T, MemorySpace > &iField)
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.
INLINE_FUNCTION_HD T dot(const quadruple< T > &oprnd1, const quadruple< T > &oprnd2)
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
INLINE_FUNCTION iIstream & operator>>(iIstream &str, AB3History &ab3)
FUNCTION_H cylinder(const realx3 &p1, const realx3 &p2, const real radius)
INLINE_FUNCTION iOstream & operator<<(iOstream &str, const AB3History &ab3)
T min(const internalField< T, MemorySpace > &iField)
virtual const word & name() const
Return the name of the stream.
realx3 transferBackZ(const realx3 &p) const
T getVal(const word &keyword) const
get the value of data entry
FUNCTION_H bool read(iIstream &is)
#define ioErrorInFile(fileName, lineNumber)
Report an error in file operation with supplied fileName and lineNumber.
FUNCTION_H bool calculateParams()
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...