4 #ifndef __u3d_abstract_wfieldhpp
5 #define __u3d_abstract_wfieldhpp
8 #include <u3d_raytr_defines.hpp>
10 #include "u3d_rtmod_defines.hpp"
24 U3dSignal(U3dWaveletType sid,
float freq);
33 float getT0() {
return m_t0; }
36 virtual void setData(
float length,
float step,
int samples_num,
float* data) {};
58 void setData(
float length,
float step,
int samples_num,
float* data);
84 U3dWaveletType signal_type ,
86 bool save_rp =
false );
91 void addWave(
int spn, U3dWaveDynHodo wh);
103 virtual bool saveAllHods(
const char* file_name) = 0;
113 virtual bool saveAllRays(
char* file_name,
int pid);
136 void recalcShearDirection(
double &f,
double &az);
173 void mergeRPFiles(
const char*
const * filenames,
int size,
const char* resultFileName,
int actualNum)
throw (std::ios_base::failure,
181 void deleteRPFiles(
const char*
const * filenames,
int size,
int actualNum)
throw (std::ios_base::failure);
Definition: u3d_abstract_wfield.hpp:20
void setData(float length, float step, int samples_num, float *data)
Definition: u3d_rtmod_defines.hpp:153
U3dSPHodsAr m_sp_hods
Definition: u3d_abstract_wfield.hpp:152
bool addRayPath(U3dWaveHodoCell whc, int rp_id)
float m_tmax
Definition: u3d_abstract_wfield.hpp:142
Definition: u3d_rtmod_defines.hpp:106
int m_trlen
Definition: u3d_abstract_wfield.hpp:143
int getSPN()
Definition: u3d_abstract_wfield.hpp:97
float getSampleTime(int sn)
Definition: u3d_abstract_wfield.hpp:130
float m_length
Definition: u3d_abstract_wfield.hpp:43
U3dTrace * m_traces
Definition: u3d_abstract_wfield.hpp:149
Definition: u3d_abstract_wfield.hpp:49
float m_dt
Definition: u3d_abstract_wfield.hpp:141
float * trbody_x
Definition: u3d_abstract_wfield.hpp:14
int getSampleNum(double t)
Definition: u3d_abstract_wfield.hpp:127
Definition: u3d_abstract_wfield.hpp:13
float m_freq
Definition: u3d_abstract_wfield.hpp:42
virtual void setData(float length, float step, int samples_num, float *data)
Definition: u3d_abstract_wfield.hpp:36
bool m_ready
Definition: u3d_abstract_wfield.hpp:139
float * trbody_y
Definition: u3d_abstract_wfield.hpp:15
static double m_max_ampl
Definition: u3d_abstract_wfield.hpp:121
Definition: u3d_abstract_wfield.hpp:76
int getTrLen()
Definition: u3d_abstract_wfield.hpp:100
static int m_ray_path_id
Definition: u3d_abstract_wfield.hpp:118
U3dSignal * m_signal
Definition: u3d_abstract_wfield.hpp:150
virtual bool saveAllHods(const char *file_name)=0
bool getHodName(U3dComplexWaveHod hod, char *name)
U3dObservSys * m_os
Definition: u3d_abstract_wfield.hpp:145
int m_spn
Definition: u3d_abstract_wfield.hpp:146
int getRecNum()
Definition: u3d_abstract_wfield.hpp:94
bool m_save_rays_paths
Definition: u3d_abstract_wfield.hpp:154
int m_recnum
Definition: u3d_abstract_wfield.hpp:147
Definition: u3d_os.hpp:14
void addWHCell(U3dSPHods &sp_hods, U3dWaveHodoCell whi)
virtual float getForm(float t)
U3dAbstractWField(int spn, U3dObservSys *os, float tmax, float dt, U3dWaveletType signal_type, float signal_freq, bool save_rp=false)
virtual bool saveAllRays(char *file_name, int pid)
Definition: u3d_abstract_wfield.hpp:158
bool getReady()
Definition: u3d_abstract_wfield.hpp:64
float getLength()
Definition: u3d_abstract_wfield.hpp:31
Definition: u3d_rtmod_defines.hpp:146
void addWave(int spn, U3dWaveDynHodo wh)
U3dRayPathSt m_rp_st
Definition: u3d_abstract_wfield.hpp:163
U3dWaveletType m_sigType
Definition: u3d_abstract_wfield.hpp:36
float * trbody_z
Definition: u3d_abstract_wfield.hpp:16