nonlinear_amp.cpp
上传用户:jtjnyq9001
上传日期:2014-11-21
资源大小:3974k
文件大小:4k
- //
- // File = nonlinear_amp.cpp
- //
- #include <stdlib.h>
- #include <fstream>
- #include <strstream>
- #include "parmfile.h"
- #include "nonlinear_amp.h"
- #include "model_graph.h"
- extern ParmFile *ParmInput;
- //======================================================
- NonlinearAmplifier::NonlinearAmplifier(
- char* instance_name,
- PracSimModel* outer_model,
- Signal< complex<float> >* in_sig,
- Signal< complex<float> >* out_sig )
- :PracSimModel(instance_name,
- outer_model)
- {
- MODEL_NAME(NonlinearAmplifier);
- // Read model config parms
- OPEN_PARM_BLOCK;
- GET_DOUBLE_PARM(Output_Power_Scale_Factor);
- GET_DOUBLE_PARM(Phase_Scale_Factor);
- GET_DOUBLE_PARM(Anticipated_Input_Power);
- GET_DOUBLE_PARM(Operating_Point);
- GET_DOUBLE_PARM(Agc_Time_Constant);
- Input_Power_Scale_Factor =
- float(Operating_Point/Anticipated_Input_Power);
- Am_Am_Fname = new char[64];
- strcpy(Am_Am_Fname, "