-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathsimulation.h
More file actions
51 lines (42 loc) · 2.04 KB
/
simulation.h
File metadata and controls
51 lines (42 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// -*- coding: utf-8 -*-
//
// simulation.h
//
// @copyright Deepansh J. Srivastava, 2019-2021.
// Created by Deepansh J. Srivastava, Apr 11, 2019.
// Contact email = srivastava.89@osu.edu
//
#include "method.h"
#include "mrsimulator.h"
#include "octahedron.h"
// headerdoc
extern void mrsimulator_core(
// spectrum information and related amplitude
double *spec, // The amplitude of the spectrum.
double spectral_start, // The start of the frequency spectrum.
double spectral_increment, // The increment of the frequency spectrum.
int number_of_points, // Number of points on the frequency spectrum.
isotopomer_ravel *ravel_isotopomer, // isotopomer structure
MRS_sequence *the_sequence, // the transition sequence.
int n_sequence, // number of sequences.
int quad_second_order, // Quad theory for second order,
// spin rate, spin angle and number spinning sidebands
unsigned int number_of_sidebands, // The number of sidebands
double sample_rotation_frequency_in_Hz, // The rotor spin frequency
double rotor_angle_in_rad, // The rotor angle relative to lab-frame z-axis
// Pointer to the transition.
float *transition,
// powder orientation average
// The number of triangle along the edge of octahedron.
unsigned int integration_type, // 0-octahedron, 1-sphere
int integration_density,
unsigned int integration_volume, // 0-octant, 1-hemisphere, 2-sphere.
bool interpolation, bool *freq_contrib, double *affine_matrix);
extern void __mrsimulator_core(
// spectrum information and related amplitude
double *spec, // The pointer to the vector representing the spectrum.
isotopomer_ravel *ravel_isotopomer, // isotopomer structure
// Pointer to the transitions. transition[0] = mi and transition[1] = mf
float *transition, MRS_sequence *the_sequence, int n_sequence,
MRS_fftw_scheme *fftw_scheme, MRS_averaging_scheme *scheme,
bool interpolation, bool *freq_contrib, double *affine_matrix);