Renamed Globalconf to GlobalConf

This commit is contained in:
J.A. de Jong @ vulgaris 2016-11-13 20:22:32 +01:00
parent ca73a502f6
commit 6f2eb63833
2 changed files with 9 additions and 9 deletions

View File

@ -3,20 +3,20 @@
#include "tasmet_exception.h"
#include "tasmet_io.h"
Globalconf::Globalconf(us Nf,d freq)
GlobalConf::GlobalConf(us Nf,d freq)
{
set(Nf,freq);
TRACE(10,"Globalconf constructor done");
TRACE(10,"GlobalConf constructor done");
}
void Globalconf::show() const {
void GlobalConf::show() const {
cout << "------- Global configuration ------ \n";
cout << "------- Number of harmonics to solve for: "<< _Nf <<"\n";
cout << "------- Fundamental frequency : " << _omg/2/number_pi << " Hz\n";
}
void Globalconf::set(us Nf,d freq){
TRACE(15,"Globalconf::set(_Nf,freq)");
void GlobalConf::set(us Nf,d freq){
TRACE(15,"GlobalConf::set(_Nf,freq)");
d omg = 2*number_pi*freq;
//ctor
// Sanity checks

View File

@ -13,7 +13,7 @@
#include "tasmet_types.h"
#include "tasmet_tracer.h"
class Globalconf{
class GlobalConf{
d _omg; // The "base" frequency in rad/s
us _Nf; // Number of frequencies to solve for
@ -25,12 +25,12 @@ class Globalconf{
// Wfo=1, interpolation is done from
// the right side
public:
Globalconf(us Nf,d freq);
GlobalConf(us Nf,d freq);
us Nf() const {return _Nf;}
us Ns() const {return 2*_Nf+1;}
~Globalconf(){TRACE(-5,"~Globalconf()");}
~GlobalConf(){TRACE(-5,"~GlobalConf()");}
d getomg() const {return _omg;}
d getfreq() const {return _omg/2/number_pi;}
// d meshPeclet(const Gas& gas,d dx,d u) const {return u*dx*gas.rho0()*gas().cp(T0())/gas().kappa(T0());}
@ -48,7 +48,7 @@ public:
void show() const;
}; /* Class Globalconf */
}; /* Class GlobalConf */
#endif /* _GLOBALCONF_H_ */
//////////////////////////////////////////////////////////////////////