Public Member Functions | Friends | List of all members
magnet Class Reference

Class to hold the defining data for a permanent magnet, in particular the name, relative permeability and remanence. More...

Public Member Functions

 magnet ()
 Null constructor for lists. More...
 
 magnet (const word &name, const scalar mur, const scalar Mr, const vector &orientation)
 Construct from components. More...
 
 magnet (Istream &is)
 Construct from Istream. More...
 
const word & name () const
 Return name. More...
 
scalar mur () const
 Return relative permeability. More...
 
const dimensionedScalar & Mr () const
 Return remenance. More...
 
const vector & orientation () const
 Return orientation. More...
 

Friends

Istream & operator>> (Istream &is, magnet &m)
 
Ostream & operator<< (Ostream &os, const magnet &m)
 

Detailed Description

Class to hold the defining data for a permanent magnet, in particular the name, relative permeability and remanence.

Source files

Definition at line 57 of file magnet.H.

Constructor & Destructor Documentation

magnet ( )
inline

Null constructor for lists.

Definition at line 71 of file magnet.H.

magnet ( const word &  name,
const scalar  mur,
const scalar  Mr,
const vector &  orientation 
)
inline

Construct from components.

Definition at line 79 of file magnet.H.

magnet ( Istream &  is)
inline

Construct from Istream.

Definition at line 93 of file magnet.H.

Member Function Documentation

const word& name ( ) const
inline

Return name.

Definition at line 105 of file magnet.H.

scalar mur ( ) const
inline

Return relative permeability.

Definition at line 111 of file magnet.H.

const dimensionedScalar& Mr ( ) const
inline

Return remenance.

Definition at line 117 of file magnet.H.

const vector& orientation ( ) const
inline

Return orientation.

Definition at line 123 of file magnet.H.

Friends And Related Function Documentation

Istream& operator>> ( Istream &  is,
magnet &  m 
)
friend

Definition at line 131 of file magnet.H.

Ostream& operator<< ( Ostream &  os,
const magnet &  m 
)
friend

Definition at line 146 of file magnet.H.


The documentation for this class was generated from the following file: