Astaroth  2.2
astaroth_utils.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2014-2020, Johannes Pekkila, Miikka Vaisala.
3 
4  This file is part of Astaroth.
5 
6  Astaroth is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  Astaroth is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with Astaroth. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
25 #pragma once
26 #include "astaroth.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
33 AcResult acLoadConfig(const char* config_path, AcMeshInfo* config);
34 
37 
39 AcResult acMeshCreate(const AcMeshInfo mesh_info, AcMesh* mesh);
40 
43 
45 AcResult acMeshSet(const AcReal value, AcMesh* mesh);
46 
49 
52 
55 
58 
60 AcResult acVerifyMesh(const AcMesh model, const AcMesh candidate);
61 
62 #ifdef __cplusplus
63 } // extern "C"
64 #endif
acMeshCreate
AcResult acMeshCreate(const AcMeshInfo mesh_info, AcMesh *mesh)
Definition: memory.c:24
AcResult
AcResult
Definition: astaroth.h:51
acMeshDestroy
AcResult acMeshDestroy(AcMesh *mesh)
Definition: memory.c:38
acVerifyMesh
AcResult acVerifyMesh(const AcMesh model, const AcMesh candidate)
Definition: verification.c:173
astaroth.h
AcReal
float AcReal
Definition: astaroth.h:38
acMeshSet
AcResult acMeshSet(const AcReal value, AcMesh *mesh)
Definition: memory.c:47
acModelIntegrateStep
AcResult acModelIntegrateStep(AcMesh mesh, const AcReal dt)
Definition: modelsolver.c:919
acUpdateBuiltinParams
AcResult acUpdateBuiltinParams(AcMeshInfo *config)
Definition: config_loader.c:78
acMeshRandomize
AcResult acMeshRandomize(AcMesh *mesh)
Definition: memory.c:64
AcMeshInfo
Definition: astaroth.h:128
acMeshApplyPeriodicBounds
AcResult acMeshApplyPeriodicBounds(AcMesh *mesh)
Definition: memory.c:75
value
Preprocessed Scalar value(in ScalarField vertex)
Definition: stdderiv.h:218
acLoadConfig
AcResult acLoadConfig(const char *config_path, AcMeshInfo *config)
Loads data from astaroth.conf into a config struct.
Definition: config_loader.c:118
acMeshClear
AcResult acMeshClear(AcMesh *mesh)
Definition: memory.c:141
AcMesh
Definition: astaroth.h:135