AcouSTO  version 2.0

◆ delaysc2()

void delaysc2 ( struct vector  xcn,
struct vector  xs,
DOUBLE rad,
DOUBLE theta 
)

This routine evaluates the acoustic delay between the source point xs and the influenced point xcn.

Parameters
[in]xcncentroid of panel
[in]xsposition of source
[out]raddistance
[out]thetaAcoustic delay
39  {
40  struct vector dx;
41  vec_diff(&dx,xs,xcn);
42  *rad = vec_mod(dx);
43  *theta = *rad/runinfo->vsound;
44 }
struct run_info * runinfo
Definition: globals.h:34
DOUBLE vsound
Definition: structs.h:102
vector struct to hold triplets.
Definition: structs.h:29
DOUBLE vec_mod(struct vector v1)
Definition: math.c:121
void vec_diff(struct vector *vdest, const struct vector v1, const struct vector v2)
Definition: math.c:52