forked from goma/goma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmm_species.h
41 lines (36 loc) · 2.36 KB
/
mm_species.h
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
/************************************************************************ *
* Goma - Multiphysics finite element software *
* Sandia National Laboratories *
* *
* Copyright (c) 2022 Goma Developers, National Technology & Engineering *
* Solutions of Sandia, LLC (NTESS) *
* *
* Under the terms of Contract DE-NA0003525, the U.S. Government retains *
* certain rights in this software. *
* *
* This software is distributed under the GNU General Public License. *
* See LICENSE file. *
\************************************************************************/
#ifndef GOMA_MM_SPECIES_H
#define GOMA_MM_SPECIES_H
#include "std.h"
struct Variable_Initialization;
extern int normalize_species_fractions(double[], const int);
extern int check_consistent_fraction_vector(struct Variable_Initialization *, int, int, double[]);
extern double wt_from_Xk(const int, const double *, const double *);
extern double wt_from_Yk(const int, const double *, const double *);
extern double wt_from_Ck(const int, const double *, const double *);
extern void Xk_from_Yk(const int, double *, double *, const double *);
extern void Yk_from_Xk(const int, double *, double *, const double *);
extern void Yk_from_Ck(const int, double *, double *, MATRL_PROP_STRUCT *);
extern void Ck_from_Xk(const int, double *, double *, MATRL_PROP_STRUCT *, const double);
extern void Xk_from_Ck(const int, double *, double *);
extern void Ck_from_Yk(const int, double *, double *, MATRL_PROP_STRUCT *, const double);
extern void Ck_from_Dk(const int, double *, double *, MATRL_PROP_STRUCT *);
extern void Dk_from_Ck(const int, double *, double *, MATRL_PROP_STRUCT *);
extern int convert_species_var(int, MATRL_PROP_STRUCT *, int, double *, double);
extern void deriv1_Ck_to_Yk(double *, MATRL_PROP_STRUCT *, double *, double);
extern void assign_species_var_type(const int, const int, const int);
extern void assign_global_species_var_type(const int, const int);
extern void assign_species_prefix(const int, char *);
#endif