-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCrystalSystems.h
More file actions
72 lines (65 loc) · 2.46 KB
/
CrystalSystems.h
File metadata and controls
72 lines (65 loc) · 2.46 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: CrystalSystems.h
* Author: tg
*
* Created on October 8, 2020, 3:24 PM
*/
#ifndef CRYSTALSYSTEMS_H
#define CRYSTALSYSTEMS_H
#include <gsl/gsl_vector.h>
namespace CrystSyst {
/**
* no constraints, vary a, b, c, alpha, beta, gamma
*/
namespace Triclinic {
double target(const gsl_vector* cell, void* restraints);
void gradT(const gsl_vector* cell, void* restraints, gsl_vector* gradT);
void TgradT (const gsl_vector* cell, void* restraints, double* T, gsl_vector* gradT);
}
/**
* alpha = gamma = 90 deg, vary a, b, c, beta
*/
namespace Monoclinic {
double target(const gsl_vector* cell, void* restraints);
void gradT(const gsl_vector* cell, void* restraints, gsl_vector* gradient);
void TgradT (const gsl_vector* cell, void* restraints, double* T, gsl_vector* gradT);
}
/**
* alpha = beta = gamma = 90 deg, vary a, b, c
*/
namespace Orthorhombic {
double target(const gsl_vector* cell, void* restraints);
void gradT(const gsl_vector* cell, void* restraints, gsl_vector* gradient);
void TgradT (const gsl_vector* cell, void* restraints, double* T, gsl_vector* gradT);
}
/**
* a = b and alpha = beta = gamma = 90; vary a, c
*/
namespace Tetragonal {
double target(const gsl_vector* cell, void* restraints);
void gradT(const gsl_vector* cell, void* restraints, gsl_vector* gradient);
void TgradT (const gsl_vector* cell, void* restraints, double* T, gsl_vector* gradT);
}
/**
* a = b and alpha = beta = 90 deg and gamma = 120 deg; vary a, c
*/
namespace Hexagonal {
double target(const gsl_vector* cell, void* restraints);
void gradT(const gsl_vector* cell, void* restraints, gsl_vector* gradient);
void TgradT (const gsl_vector* cell, void* restraints, double* T, gsl_vector* gradT);
}
/**
* a = b = c and alpha = beta = gamma = 90 deg; vary a
*/
namespace Cubic {
double target(const gsl_vector* cell, void* restraints);
void gradT(const gsl_vector* cell, void* restraints, gsl_vector* gradient);
void TgradT (const gsl_vector* cell, void* restraints, double* T, gsl_vector* gradT);
}
}
#endif /* CRYSTALSYSTEMS_H */