Commit 7249d4cb authored by Oliver Bock's avatar Oliver Bock
Browse files

Merge branch 'antenna-patterns' of gitlab:einsteinathome/pulsatingscience into antenna-patterns

parents 88bec7c1 24027c62
......@@ -343,7 +343,7 @@ void get_antenna(struct OutputStruct *out, struct InputStruct *in) {
double amp = sqrt(X*X + Y*Y);
double ang = 180.0*atan2(Y, X)/M_PI;
// pass outputs
out->amp[i]= amp;
out->phase[i] = ang;
......
#ifndef COMMON_H
#define COMMON_H
#define PERIODS 20
#define PERIODS 10
#endif // COMMON_H
......@@ -592,9 +592,11 @@ void PulsarAnimationWidget::updatePulseProfile()
// populate plot data object
for(int x = 0; x < 360*PERIODS; ++x) {
m_plotData.m_dataLLO[x] = out.amp[0] * sin((x+out.phase[0]) * deg2rad);// + out.dt[0];
m_plotData.m_dataLHO[x] = out.amp[1] * sin((x+out.phase[1]) * deg2rad);// + out.dt[1];
m_plotData.m_dataVirgo[x] = out.amp[2] * sin((x+out.phase[2]) * deg2rad);// + out.dt[2];
double t=x/(PERIODS*360.0);
double freq = 1.0/pow(1.1-t,0.375);
m_plotData.m_dataLLO[x] = out.amp[0] * freq * freq * sin((freq*x + out.phase[0]) * deg2rad);// + out.dt[0];
m_plotData.m_dataLHO[x] = out.amp[1] * freq * freq * sin((freq*x + out.phase[1]) * deg2rad);// + out.dt[1];
m_plotData.m_dataVirgo[x] = out.amp[2] * freq * freq * sin((freq*x + out.phase[2]) * deg2rad);// + out.dt[2];
}
m_plotData.m_ampLLO = out.amp[0];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment