Waveform filter programs

◆ writeparameters()

void writeparameters ( std::ostream &  os,
const std::string &  prefix,
const Tparameters para,
const double &  hnd,
const double &  heff,
const double &  Rs,
const double &  R1,
const double &  Rd,
const double &  Afac,
const double &  Afaceff 
)

Definition at line 292 of file geophone.cc.

References Tparameters::C, Tparameters::fn, func_Rs(), GEOPHON_VERSION, Tparameters::hoc, Tparameters::Rc, Tparameters::Ri, and Tparameters::type.

Referenced by main().

299 {
300  os << prefix << GEOPHON_VERSION << endl;
301  os << prefix << endl;
302  os << prefix << "geophone parameters:" << endl;
303  os << prefix << "--------------------" << endl;
304  os << prefix << " geophone type: " << para.type
305  << endl;
306  os << prefix << " natural frequency: " << para.fn << " Hz"
307  << endl;
308  os << prefix << " coil resistance: " << para.Rc << " Ohm"
309  << endl;
310  os << prefix << " open circuit damping: " << para.hoc
311  << endl;
312  os << prefix << " geophone constant C: " << para.C << " Ohm*Hz"
313  << endl;
314  os << prefix << " C=Rt*Bc*fn=(K**2)/(4*pi*m)" << endl;
315 
316  os << prefix << endl;
317  os << prefix << " recorder input resistance: " << para.Ri << " Ohm"
318  << endl;
319 
320  os << prefix << endl;
321  os << prefix << "reference parameters:" << endl;
322  os << prefix << "---------------------" << endl;
323  os << prefix << "(parameters for the case that the geophones are" << endl
324  << prefix << "connected directly to the recorder, without any" << endl
325  << prefix << "external resitance)" << endl;
326  os << prefix << " damping: "
327  << hnd << endl;
328  os << prefix << " amplitude as a fraction of open circuit amplitude: "
329  << 100.*Afac << "%" << endl;
330 
331  os << prefix << endl;
332  os << prefix << "parameters with external damping resistance:" << endl;
333  os << prefix << "--------------------------------------------" << endl;
334  os << prefix << " shunt resistance parallel to recorder terminals: "
335  << Rd << " Ohm" << endl;
336  os << prefix << " additional resistance in series to the geophone: "
337  << R1 << " Ohm" << endl;
338  os << prefix << " effective damping: "
339  << heff << endl;
340  os << prefix << " amplitude as a fraction of open circuit amplitude: "
341  << 100.*Afaceff << "%" << endl;
342  os << prefix << " amplitude as a fraction of reference fraction: "
343  << 100.*Afaceff/Afac << "%" << endl;
344 
345  os << prefix << endl;
346  os << prefix
347  << " effective shunt resistance parallel to geophone terminals: "
348  << Rs << " Ohm" << endl;
349  os << prefix
350  << " effective geophone resistance (with series resistance): "
351  << para.Rc+R1 << " Ohm" << endl;
352  os << prefix
353  << " eff. recorder resistance (with ext. resistance in parallel): "
354  << func_Rs(para.Ri, Rd, 0.) << " Ohm" << endl;
355 
356  os << prefix << endl;
357  os << prefix
358  << "All damping values are given as a fraction of critical damping."
359  << endl;
360 } // writeparameters
#define GEOPHON_VERSION
Definition: geophone.cc:49
double Rc
Definition: geophone.cc:80
double fn
Definition: geophone.cc:80
double C
Definition: geophone.cc:80
std::string type
Definition: geophone.cc:89
double hoc
Definition: geophone.cc:80
double Ri
Definition: geophone.cc:80
double func_Rs(const double &fn, const double &hoc, const double &C, const double &Rc, const double &heff)
Definition: geophone.cc:167
Here is the call graph for this function:
Here is the caller graph for this function: