45 #ifndef Foam_indirectCS_H 46 #define Foam_indirectCS_H 63 public coordinateSystem
83 return backend_->localToGlobal(
local, translate);
94 return backend_->localToGlobal(
local, translate);
105 return backend_->globalToLocal(global, translate);
116 return backend_->globalToLocal(global, translate);
165 virtual bool good()
const {
return backend_ && backend_->good(); }
170 return !backend_ || backend_->uniform();
174 virtual bool valid()
const {
return this->
good(); }
188 return backend_->origin();
194 return backend_->rotation();
200 return backend_->name_;
204 virtual const string&
note()
const 206 return backend_->note();
210 virtual const tensor&
R()
const 212 return backend_->R();
218 return backend_->e1();
224 return backend_->e2();
230 return backend_->e3();
254 virtual void clear() {}
289 return backend_->R(global);
295 return backend_->R(global);
301 return backend_->R(global);
Base class for coordinate system specification, the default coordinate system type is cartesian ...
void operator=(const coordinateSystem &csys)=delete
No copy assignment.
virtual bool good() const
Is coordinate system good/valid?
User specification of a coordinate rotation.
virtual bool uniform() const
True if the rotation tensor is uniform for all positions.
TypeName("indirect")
Runtime type information.
virtual const vector e1() const
The local Cartesian x-axis in global coordinates.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual const point & origin() const
Return origin.
virtual const vector e2() const
The local Cartesian y-axis in global coordinates.
virtual vector localToGlobal(const vector &local, bool translate) const
Convert from local coordinate system to the global Cartesian system with optional translation for the...
virtual ~indirect()=default
Destructor.
indirect()=delete
Default construct is disallowed.
static autoPtr< coordinateSystem > Clone(const Derived &csys)
Clone a coordinate system.
virtual void writeEntry(Ostream &os) const
Write 'coordinateSystem' dictionary entry.
virtual const word & name() const
Return the name.
coordinateSystem()
Default construct. This is an identity coordinate system.
virtual const point & origin() const
Return origin.
virtual void write(Ostream &os) const
Write.
A class for handling words, derived from Foam::string.
virtual bool valid() const
Same as good() - 2023-07.
virtual void clear()
Clear (ignored)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
OBJstream os(runTime.globalPath()/outputName)
virtual const vector e3() const
The local Cartesian z-axis in global coordinates.
virtual const tensor & R() const
Return const reference to the rotation tensor.
virtual const coordinateRotation & rotation() const
The rotation specification.
void rename(const word &newName)
Rename (ignored)
virtual const coordinateSystem & cs() const
Reference to the underlying coordinate system.
static coordinateSystem dummy_
Dummy coordinate system for suppressed manipulation.
virtual vector globalToLocal(const vector &global, bool translate) const
Convert from global Cartesian system to the local coordinate system with optional translation for the...
A List with indirect addressing. Like IndirectList but does not store addressing. ...
virtual const string & note() const
Return the optional note.
A coordinate system forward to a global coordinate system that is normally provided by the constant/c...
virtual autoPtr< coordinateSystem > clone() const
Return clone.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
A class for managing temporary objects.
Registry of regIOobjects.
virtual const string & note() const
Return the optional note.
Tensor of scalars, i.e. Tensor<scalar>.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
readOption
Enumeration defining read preferences.