Skip to content

Commit 1da8916

Browse files
some interface documentation
1 parent e4a5400 commit 1da8916

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

include/Eisvogel/Current0D.hh

+9
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ class Current0D {
99
public:
1010

1111
Current0D() : m_points({}), m_charges({}) { };
12+
13+
/**
14+
* Create a new particle trajectory as a collection of straight-line segments, with a certain
15+
* amount of charge flowing along each segment.
16+
*
17+
* @param points Vector of (t, x, y, z) coordinates defining the start- and endpoints of the individual straight-line segments.
18+
* A vector of length `N` defines `N-1` line segments.
19+
* @param charges Vector of length `N-1` containing charges for each line segment.
20+
*/
1221
Current0D(std::vector<CoordVector>&& points, std::vector<scalar_t>&& charges) : m_points(points),
1322
m_charges(charges) {
1423
if(m_points.size() != m_charges.size() + 1) {

include/Eisvogel/SignalCalculator.hh

+10
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ public:
1414
SignalCalculator(const std::filesystem::path& geometry_path);
1515
scalar_t ComputeSignal(const Current0D& track, scalar_t t_sig);
1616
scalar_t ComputeSignal(const SparseCurrentDensity3D& current_distribution, scalar_t t_sig);
17+
18+
/**
19+
* Calculate the contribution to the antenna signal arising from a particle track.
20+
*
21+
* @param track The particle track.
22+
* @param ts The time values at which the signal should be calculated
23+
* @param signal Antenna signal buffer in which the contribution is to be accumulated.
24+
* Must exist and have the same length as ts.
25+
*/
26+
void AccumulateSignal(const Current0D& track, std::vector<scalar_t>& ts, std::vector<scalar_t>& signal);
1727

1828
private:
1929
std::filesystem::path m_geometry_path;

0 commit comments

Comments
 (0)