2020-08-18 14:27:28 +02:00
|
|
|
/*
|
2022-09-05 10:39:42 +02:00
|
|
|
* Copyright (C) 2022 NHR@FAU, University Erlangen-Nuremberg.
|
|
|
|
* All rights reserved. This file is part of MD-Bench.
|
|
|
|
* Use of this source code is governed by a LGPL-3.0
|
|
|
|
* license that can be found in the LICENSE file.
|
2020-08-18 14:27:28 +02:00
|
|
|
*/
|
|
|
|
#ifndef __PARAMETER_H_
|
|
|
|
#define __PARAMETER_H_
|
|
|
|
|
2020-11-05 12:41:44 +01:00
|
|
|
#if PRECISION == 1
|
|
|
|
#define MD_FLOAT float
|
|
|
|
#else
|
|
|
|
#define MD_FLOAT double
|
|
|
|
#endif
|
|
|
|
|
2020-08-18 14:27:28 +02:00
|
|
|
typedef struct {
|
2021-10-26 01:19:11 +02:00
|
|
|
int force_field;
|
2022-03-17 02:44:34 +01:00
|
|
|
char* param_file;
|
2021-10-26 00:40:39 +02:00
|
|
|
char* input_file;
|
2021-10-29 16:52:19 +02:00
|
|
|
char* vtk_file;
|
2022-08-17 17:56:31 +02:00
|
|
|
char* xtc_file;
|
2020-11-05 12:41:44 +01:00
|
|
|
MD_FLOAT epsilon;
|
2022-03-17 02:44:34 +01:00
|
|
|
MD_FLOAT sigma;
|
2020-11-05 12:41:44 +01:00
|
|
|
MD_FLOAT sigma6;
|
|
|
|
MD_FLOAT temp;
|
|
|
|
MD_FLOAT rho;
|
|
|
|
MD_FLOAT mass;
|
2021-05-19 23:51:02 +02:00
|
|
|
int ntypes;
|
2020-08-18 14:27:28 +02:00
|
|
|
int ntimes;
|
|
|
|
int nstat;
|
2022-03-17 02:44:34 +01:00
|
|
|
int reneigh_every;
|
2022-08-17 17:56:31 +02:00
|
|
|
int prune_every;
|
2022-03-17 02:44:34 +01:00
|
|
|
int x_out_every;
|
|
|
|
int v_out_every;
|
|
|
|
int half_neigh;
|
2020-11-05 12:41:44 +01:00
|
|
|
MD_FLOAT dt;
|
|
|
|
MD_FLOAT dtforce;
|
2022-02-28 22:34:42 +01:00
|
|
|
MD_FLOAT skin;
|
2020-11-05 12:41:44 +01:00
|
|
|
MD_FLOAT cutforce;
|
|
|
|
MD_FLOAT cutneigh;
|
2020-08-18 14:27:28 +02:00
|
|
|
int nx, ny, nz;
|
2022-07-08 02:30:03 +02:00
|
|
|
int pbc_x, pbc_y, pbc_z;
|
2021-03-30 01:54:56 +02:00
|
|
|
MD_FLOAT lattice;
|
2021-11-30 01:33:55 +01:00
|
|
|
MD_FLOAT xlo, xhi, ylo, yhi, zlo, zhi;
|
2020-11-05 12:41:44 +01:00
|
|
|
MD_FLOAT xprd, yprd, zprd;
|
2021-10-12 15:04:08 +02:00
|
|
|
double proc_freq;
|
2021-11-30 01:33:55 +01:00
|
|
|
char* eam_file;
|
2022-07-06 01:07:39 +02:00
|
|
|
// DEM
|
|
|
|
MD_FLOAT k_s;
|
|
|
|
MD_FLOAT k_dn;
|
|
|
|
MD_FLOAT gx, gy, gz;
|
2022-07-07 02:11:50 +02:00
|
|
|
MD_FLOAT reflect_x, reflect_y, reflect_z;
|
2020-08-18 14:27:28 +02:00
|
|
|
} Parameter;
|
2022-03-17 02:44:34 +01:00
|
|
|
|
|
|
|
void initParameter(Parameter*);
|
|
|
|
void readParameter(Parameter*, const char*);
|
|
|
|
void printParameter(Parameter*);
|
|
|
|
|
2020-08-18 14:27:28 +02:00
|
|
|
#endif
|