NetSim Source Code Help
Loading...
Searching...
No Matches
MatlabLossModel.c File Reference
#include "main.h"
#include "stdafx.h"
#include "LTENR_PHY.h"
#include "LTENR_PropagationModel.h"
#include "MobilityInterface.h"
#include "NetSim_utility.h"
Include dependency graph for MatlabLossModel.c:

Go to the source code of this file.

Macros

#define LTENR_MATLAB_MODEL_DEFAULT   _strdup("NONE")
 
#define MATLAB_LOSS_RAIN_RAINRATE_DEFAULT   16
 
#define MATLAB_LOSS_RAIN_TILTANGLE_DEFAULT   0
 
#define MATLAB_LOSS_RAIN_ELEVATIONANGLE_DEFAULT   0
 
#define MATLAB_LOSS_RAIN_EXCEEDANCEPERCENTAGEOFRAINFALL_DEFAULT   0
 
#define MATLAB_LOSS_FOG_TEMPERATURE_DEFAULT   15
 
#define MATLAB_LOSS_FOG_WATERDENSITY_DEFAULT   7.5
 
#define MATLAB_LOSS_GAS_TEMPERATURE_DEFAULT   15
 
#define MATLAB_LOSS_GAS_WATERDENSITY_DEFAULT   7.5
 
#define MATLAB_LOSS_GAS_AIRPRESSURE_DEFAULT   10300
 

Functions

void netsim_matlab_configure_loss_model (ptrLTENR_PROPAGATIONCONFIG config, void *xmlNetSimNode)
 
static double netsim_matlab_get_fspl (ptrLTENR_PROPAGATIONINFO info)
 
static double netsim_matlab_get_rainLoss (ptrLTENR_PROPAGATIONINFO info)
 
static double netsim_matlab_get_gasLoss (ptrLTENR_PROPAGATIONINFO info)
 
static double netsim_matlab_get_fogLoss (ptrLTENR_PROPAGATIONINFO info)
 
double netsim_matlab_calculate_loss (ptrLTENR_PROPAGATIONINFO info)
 

Macro Definition Documentation

◆ LTENR_MATLAB_MODEL_DEFAULT

#define LTENR_MATLAB_MODEL_DEFAULT   _strdup("NONE")

Definition at line 31 of file MatlabLossModel.c.

◆ MATLAB_LOSS_FOG_TEMPERATURE_DEFAULT

#define MATLAB_LOSS_FOG_TEMPERATURE_DEFAULT   15

Definition at line 40 of file MatlabLossModel.c.

◆ MATLAB_LOSS_FOG_WATERDENSITY_DEFAULT

#define MATLAB_LOSS_FOG_WATERDENSITY_DEFAULT   7.5

Definition at line 41 of file MatlabLossModel.c.

◆ MATLAB_LOSS_GAS_AIRPRESSURE_DEFAULT

#define MATLAB_LOSS_GAS_AIRPRESSURE_DEFAULT   10300

Definition at line 46 of file MatlabLossModel.c.

◆ MATLAB_LOSS_GAS_TEMPERATURE_DEFAULT

#define MATLAB_LOSS_GAS_TEMPERATURE_DEFAULT   15

Definition at line 44 of file MatlabLossModel.c.

◆ MATLAB_LOSS_GAS_WATERDENSITY_DEFAULT

#define MATLAB_LOSS_GAS_WATERDENSITY_DEFAULT   7.5

Definition at line 45 of file MatlabLossModel.c.

◆ MATLAB_LOSS_RAIN_ELEVATIONANGLE_DEFAULT

#define MATLAB_LOSS_RAIN_ELEVATIONANGLE_DEFAULT   0

Definition at line 36 of file MatlabLossModel.c.

◆ MATLAB_LOSS_RAIN_EXCEEDANCEPERCENTAGEOFRAINFALL_DEFAULT

#define MATLAB_LOSS_RAIN_EXCEEDANCEPERCENTAGEOFRAINFALL_DEFAULT   0

Definition at line 37 of file MatlabLossModel.c.

◆ MATLAB_LOSS_RAIN_RAINRATE_DEFAULT

#define MATLAB_LOSS_RAIN_RAINRATE_DEFAULT   16

Definition at line 34 of file MatlabLossModel.c.

◆ MATLAB_LOSS_RAIN_TILTANGLE_DEFAULT

#define MATLAB_LOSS_RAIN_TILTANGLE_DEFAULT   0

Definition at line 35 of file MatlabLossModel.c.

Function Documentation

◆ netsim_matlab_calculate_loss()

double netsim_matlab_calculate_loss ( ptrLTENR_PROPAGATIONINFO  info)

Definition at line 143 of file MatlabLossModel.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ netsim_matlab_configure_loss_model()

void netsim_matlab_configure_loss_model ( ptrLTENR_PROPAGATIONCONFIG  config,
void *  xmlNetSimNode 
)

Definition at line 48 of file MatlabLossModel.c.

◆ netsim_matlab_get_fogLoss()

static double netsim_matlab_get_fogLoss ( ptrLTENR_PROPAGATIONINFO  info)
static

Definition at line 125 of file MatlabLossModel.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ netsim_matlab_get_fspl()

static double netsim_matlab_get_fspl ( ptrLTENR_PROPAGATIONINFO  info)
static

Definition at line 81 of file MatlabLossModel.c.

Here is the call graph for this function:

◆ netsim_matlab_get_gasLoss()

static double netsim_matlab_get_gasLoss ( ptrLTENR_PROPAGATIONINFO  info)
static

Definition at line 106 of file MatlabLossModel.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ netsim_matlab_get_rainLoss()

static double netsim_matlab_get_rainLoss ( ptrLTENR_PROPAGATIONINFO  info)
static

Definition at line 92 of file MatlabLossModel.c.

Here is the call graph for this function:
Here is the caller graph for this function: