kim-api  2.0.3-git+v2.0.2-git-14-gf1578e2f.GNU
An Application Programming Interface (API) for the Knowledgebase of Interatomic Models (KIM).
Classes | Macros | Typedefs | Functions
ex_model_Ar_P_Morse_07C_w_Extensions.c File Reference
#include "KIM_LogMacros.h"
#include "KIM_ModelHeaders.h"
#include "KIM_SupportedExtensions.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for ex_model_Ar_P_Morse_07C_w_Extensions.c:

Go to the source code of this file.

Classes

struct  buffer
 

Macros

#define TRUE   1
 
#define FALSE   0
 
#define DIM   3 /* dimensionality of space */
 
#define SPECCODE   1 /* internal species code */
 
#define CUTOFF   8.15 /* Angstroms */
 
#define EPSILON   -0.0134783698072604 /* eV */
 
#define PARAM_C   1.545 /* 1/Angstroms */
 
#define RZERO   3.786 /* Angstroms */
 
#define KIM_LOGGER_FUNCTION_NAME   KIM_ModelCompute_LogEntry
 
#define KIM_LOGGER_OBJECT_NAME   modelCompute
 
#define KIM_LOGGER_FUNCTION_NAME   KIM_ModelExtension_LogEntry
 
#define KIM_LOGGER_OBJECT_NAME   modelExtension
 
#define KIM_LOGGER_FUNCTION_NAME   KIM_ModelCreate_LogEntry
 
#define KIM_LOGGER_OBJECT_NAME   modelCreate
 
#define KIM_LOGGER_FUNCTION_NAME   KIM_ModelDestroy_LogEntry
 
#define KIM_LOGGER_OBJECT_NAME   modelDestroy
 
#define KIM_LOGGER_FUNCTION_NAME   KIM_ModelCompute_LogEntry
 
#define KIM_LOGGER_OBJECT_NAME   modelCompute
 

Typedefs

typedef struct buffer buffer
 

Functions

int model_create (KIM_ModelCreate *const modelCreate, KIM_LengthUnit const requestedLengthUnit, KIM_EnergyUnit const requestedEnergyUnit, KIM_ChargeUnit const requestedChargeUnit, KIM_TemperatureUnit const requestedTemperatureUnit, KIM_TimeUnit const requestedTimeUnit)
 
static int compute_arguments_create (KIM_ModelCompute const *const modelCompute, KIM_ModelComputeArgumentsCreate *const modelComputeArgumentsCreate)
 
static int model_compute (KIM_ModelCompute const *const modelCompute, KIM_ModelComputeArguments const *const modelComputeArguments)
 
static int model_extension (KIM_ModelExtension *const modelExtension, void *const extensionStructure)
 
static int compute_arguments_destroy (KIM_ModelCompute const *const modelCompute, KIM_ModelComputeArgumentsDestroy *const modelComputeArgumentsDestroy)
 
static int model_destroy (KIM_ModelDestroy *const modelDestroy)
 
static void calc_phi (double *epsilon, double *C, double *Rzero, double *shift, double *cutoff, double r, double *phi)
 
static void calc_phi_dphi (double *epsilon, double *C, double *Rzero, double *shift, double *cutoff, double r, double *phi, double *dphi)
 
static void calc_phi_d2phi (double *epsilon, double *C, double *Rzero, double *shift, double *cutoff, double r, double *phi, double *dphi, double *d2phi)
 

Macro Definition Documentation

◆ CUTOFF

#define CUTOFF   8.15 /* Angstroms */

Definition at line 59 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

◆ DIM

#define DIM   3 /* dimensionality of space */

Definition at line 57 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

◆ EPSILON

#define EPSILON   -0.0134783698072604 /* eV */

Definition at line 60 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

◆ FALSE

#define FALSE   0

Definition at line 52 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

◆ KIM_LOGGER_FUNCTION_NAME [1/5]

#define KIM_LOGGER_FUNCTION_NAME   KIM_ModelCompute_LogEntry

Definition at line 704 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

◆ KIM_LOGGER_FUNCTION_NAME [2/5]

#define KIM_LOGGER_FUNCTION_NAME   KIM_ModelExtension_LogEntry

Definition at line 704 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

◆ KIM_LOGGER_FUNCTION_NAME [3/5]

#define KIM_LOGGER_FUNCTION_NAME   KIM_ModelCreate_LogEntry

Definition at line 704 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

◆ KIM_LOGGER_FUNCTION_NAME [4/5]

#define KIM_LOGGER_FUNCTION_NAME   KIM_ModelDestroy_LogEntry

Definition at line 704 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

◆ KIM_LOGGER_FUNCTION_NAME [5/5]

#define KIM_LOGGER_FUNCTION_NAME   KIM_ModelCompute_LogEntry

Definition at line 704 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

◆ KIM_LOGGER_OBJECT_NAME [1/5]

#define KIM_LOGGER_OBJECT_NAME   modelCompute

Definition at line 706 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

◆ KIM_LOGGER_OBJECT_NAME [2/5]

#define KIM_LOGGER_OBJECT_NAME   modelExtension

Definition at line 706 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

◆ KIM_LOGGER_OBJECT_NAME [3/5]

#define KIM_LOGGER_OBJECT_NAME   modelCreate

Definition at line 706 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

◆ KIM_LOGGER_OBJECT_NAME [4/5]

#define KIM_LOGGER_OBJECT_NAME   modelDestroy

Definition at line 706 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

◆ KIM_LOGGER_OBJECT_NAME [5/5]

#define KIM_LOGGER_OBJECT_NAME   modelCompute

Definition at line 706 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

◆ PARAM_C

#define PARAM_C   1.545 /* 1/Angstroms */

Definition at line 61 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

◆ RZERO

#define RZERO   3.786 /* Angstroms */

Definition at line 62 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

◆ SPECCODE

#define SPECCODE   1 /* internal species code */

Definition at line 58 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

◆ TRUE

#define TRUE   1

Definition at line 51 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

Typedef Documentation

◆ buffer

typedef struct buffer buffer

Definition at line 71 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

Function Documentation

◆ calc_phi()

static void calc_phi ( double *  epsilon,
double *  C,
double *  Rzero,
double *  shift,
double *  cutoff,
double  r,
double *  phi 
)
static

Definition at line 125 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

◆ calc_phi_d2phi()

static void calc_phi_d2phi ( double *  epsilon,
double *  C,
double *  Rzero,
double *  shift,
double *  cutoff,
double  r,
double *  phi,
double *  dphi,
double *  d2phi 
)
static

Definition at line 187 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

◆ calc_phi_dphi()

static void calc_phi_dphi ( double *  epsilon,
double *  C,
double *  Rzero,
double *  shift,
double *  cutoff,
double  r,
double *  phi,
double *  dphi 
)
static

Definition at line 154 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

◆ compute_arguments_create()

static int compute_arguments_create ( KIM_ModelCompute const *const  modelCompute,
KIM_ModelComputeArgumentsCreate *const  modelComputeArgumentsCreate 
)
static

Definition at line 708 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

◆ compute_arguments_destroy()

static int compute_arguments_destroy ( KIM_ModelCompute const *const  modelCompute,
KIM_ModelComputeArgumentsDestroy *const  modelComputeArgumentsDestroy 
)
static

Definition at line 756 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

◆ model_compute()

static int model_compute ( KIM_ModelCompute const *const  modelCompute,
KIM_ModelComputeArguments const *const  modelComputeArguments 
)
static

Definition at line 228 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

◆ model_create()

int model_create ( KIM_ModelCreate *const  modelCreate,
KIM_LengthUnit const  requestedLengthUnit,
KIM_EnergyUnit const  requestedEnergyUnit,
KIM_ChargeUnit const  requestedChargeUnit,
KIM_TemperatureUnit const  requestedTemperatureUnit,
KIM_TimeUnit const  requestedTimeUnit 
)

Definition at line 572 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

◆ model_destroy()

int model_destroy ( KIM_ModelDestroy *const  modelDestroy)
static

Definition at line 689 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.

◆ model_extension()

static int model_extension ( KIM_ModelExtension *const  modelExtension,
void *const  extensionStructure 
)
static

Definition at line 537 of file ex_model_Ar_P_Morse_07C_w_Extensions.c.