00001
00005 #pragma once
00006
00007 #include <usml/ocean/profile_model.h>
00008
00009 namespace usml {
00010 namespace ocean {
00011
00014
00038 class USML_DECLSPEC profile_n2 : public profile_model {
00039
00040
00041
00042
00044 double _soundspeed0 ;
00045
00047 double _factor ;
00048
00049 public:
00050
00059 virtual void sound_speed( const wposition& location,
00060 matrix<double>* speed, wvector* gradient=NULL ) ;
00061
00062
00063
00064
00074 profile_n2(
00075 double c0, double g0,
00076 attenuation_model* attmodel=NULL
00077 ) :
00078 profile_model(attmodel),
00079 _soundspeed0(c0), _factor(2.0*g0/c0)
00080 { }
00081
00082 };
00083
00085 }
00086 }