27#ifndef _QPMS_SCUFFGEN_H
28#define _QPMS_SCUFFGEN_H
39#define QPMS_SCUFFGEN_UM 1e-6
43#define QPMS_SCUFFGEN_VERSION "1"
108 _Complex
double omega,
const void *params);
145 double lc,
const double (*normals)[3],
int nnormals, FILE *f);
161 const double center[3],
double snap_tol,
double merge_tol,
162 int expected_euler,
int star_shaped, FILE *report);
167 _Complex
double eps, _Complex
double mu, FILE *f);
qpms_errno_t
Error codes / return values for certain numerical functions.
Definition qpms_types.h:88
double qpms_scuffgen_max_extent(const qpms_scuffgen_shape_t *s)
Largest particle dimension of the shape (metres).
Definition scuffgen.c:139
qpms_errno_t qpms_scuffgen_chamber_mirrors(const qpms_scuffgen_shape_t *shape, const qpms_finite_group_t *G, double(**normals_out)[3], int *nn_out)
Definition scuffgen_sym.c:485
qpms_errno_t qpms_scuffgen_symmetrise_mesh(const char *chamber_path, const char *out_path, const qpms_finite_group_t *G, const double center[3], double snap_tol, double merge_tol, int expected_euler, int star_shaped, FILE *report)
Definition scuffgen_sym.c:962
qpms_errno_t qpms_scuffgen_emit_chamber_geo(const qpms_scuffgen_shape_t *shape, double lc, const double(*normals)[3], int nnormals, FILE *f)
Definition scuffgen_sym.c:513
qpms_errno_t qpms_scuffgen_emit_geo(const qpms_scuffgen_shape_t *shape, double lc, FILE *f)
Emits the gmsh .geo file content for the given shape (in microns).
Definition scuffgen.c:180
qpms_errno_t qpms_scuffgen_sym_check_group(const qpms_scuffgen_shape_t *shape, const qpms_finite_group_t *G, char *errbuf, size_t errlen)
Definition scuffgen_sym.c:480
qpms_errno_t qpms_tmatrix_generator_scuffgen(qpms_tmatrix_t *t, _Complex double omega, const void *params)
The scuff-em T-matrix generator for qpms_tmatrix_generator_t.
Definition scuffgen.c:602
qpms_errno_t qpms_scuffgen_emit_scuffgeo(const char *meshfile, _Complex double eps, _Complex double mu, FILE *f)
Definition scuffgen.c:305
char * qpms_scuffgen_resolve_tool(const char *envvar, const char *default_name)
Resolves an external tool executable.
Definition scuffgen.c:51
Prototype for general optical property generator for isotropic materials.
Definition materials.h:21
A point group with its irreducible representations and some metadata.
Definition groups.h:56
Configuration of the external scuff-em T-matrix generator.
Definition scuffgen.h:84
qpms_epsmu_generator_t inside
Particle material.
Definition scuffgen.h:100
const char * scuff_args
Definition scuffgen.h:93
const qpms_finite_group_t * symgroup
Definition scuffgen.h:98
int mesh_order
Definition scuffgen.h:90
qpms_scuffgen_shape_t shape
Definition scuffgen.h:85
double mesh_lc
Definition scuffgen.h:89
qpms_epsmu_generator_t outside
Surrounding medium.
Definition scuffgen.h:99
Shape dimensions for the scuff generator, as parsed from the scatspec.
Definition scuffgen.h:57
double radius_major
torus/ring distance from the z axis to the cross-section centre
Definition scuffgen.h:62
double deltay
wedge top-face shift in y
Definition scuffgen.h:80
double lengthy
rectangular_cuboid/wedge extent in y
Definition scuffgen.h:70
double length
cube edge length
Definition scuffgen.h:68
double shift
regular_prism base polygon azimuthal offset (radians)
Definition scuffgen.h:73
double height
ring, cylinder, cone, cut_sphere, pyramid, regular_prism height
Definition scuffgen.h:64
double radiusz
ellipsoid semi-axis in z (spheroid polar semi-axis)
Definition scuffgen.h:67
double radius
sphere/cylinder/cone radius; pyramid/prism base circumradius
Definition scuffgen.h:76
double radius_bottom
cone bottom base radius
Definition scuffgen.h:78
double deltax
wedge top-face shift in x
Definition scuffgen.h:79
double angle
pyramid apex displacement azimuth (radians)
Definition scuffgen.h:75
double lengthx
rectangular_cuboid/wedge extent in x
Definition scuffgen.h:69
long n_edges
regular_prism/pyramid base polygon edge count
Definition scuffgen.h:72
double radius_top
cone top base radius
Definition scuffgen.h:77
double radiusy
ellipsoid semi-axis in y
Definition scuffgen.h:66
double radiusx
ellipsoid semi-axis in x
Definition scuffgen.h:65
double radius_minor
torus tube radius; ring cross-section half-width
Definition scuffgen.h:63
double lengthz
rectangular_cuboid/wedge extent in z
Definition scuffgen.h:71
char shapename[32]
Definition scuffgen.h:61
double apex_shift
pyramid apex lateral displacement (metres)
Definition scuffgen.h:74
A T-matrix.
Definition qpms_types.h:343
T-matrices for scattering systems.