Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KiT-RT
KiT-RT
Commits
952e370d
Commit
952e370d
authored
Jun 10, 2020
by
steffen.schotthoefer
Browse files
code restructuring
parent
971beab9
Pipeline
#91202
failed with stages
in 5 minutes and 32 seconds
Changes
31
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
code/include/laxfriedrichsflux.h
→
code/include/
fluxes/
laxfriedrichsflux.h
View file @
952e370d
...
...
@@ -2,7 +2,6 @@
#define LAXFRIEDRICHSFLUX_H
#include "numericalflux.h"
#include "typedef.h"
class
LaxFriedrichsFlux
:
public
NumericalFlux
{
...
...
code/include/numericalflux.h
→
code/include/
fluxes/
numericalflux.h
View file @
952e370d
...
...
@@ -2,7 +2,7 @@
#define NUMERICALFLUX_H
#include "settings/config.h"
#include "typedef.h"
#include "
settings/
typedef.h"
class
NumericalFlux
{
...
...
code/include/upwindflux.h
→
code/include/
fluxes/
upwindflux.h
View file @
952e370d
...
...
@@ -2,7 +2,6 @@
#define UPWINDFLUX_H
#include "numericalflux.h"
#include "typedef.h"
class
UpwindFlux
:
public
NumericalFlux
{
...
...
code/include/kernels/scatteringkernelbase.h
View file @
952e370d
...
...
@@ -3,7 +3,7 @@
#include "quadratures/quadraturebase.h"
#include "settings/globalconstants.h"
#include "typedef.h"
#include "
settings/
typedef.h"
class
ScatteringKernel
{
...
...
code/include/mesh.h
View file @
952e370d
...
...
@@ -12,8 +12,8 @@
#include "spdlog/spdlog.h"
#include "settings/globalconstants.h"
#include "settings/typedef.h"
#include "toolboxes/errormessages.h"
#include "typedef.h"
class
Mesh
{
...
...
code/include/physics.h
View file @
952e370d
...
...
@@ -3,7 +3,7 @@
// include Matrix, Vector definitions
#include "settings/config.h"
#include "typedef.h"
#include "
settings/
typedef.h"
class
Physics
{
...
...
code/include/problems/problembase.h
View file @
952e370d
...
...
@@ -4,7 +4,7 @@
#include "mesh.h"
#include "physics.h"
#include "settings/config.h"
#include "typedef.h"
#include "
settings/
typedef.h"
class
ProblemBase
{
...
...
code/include/quadratures/quadraturebase.h
View file @
952e370d
...
...
@@ -2,8 +2,8 @@
#define QUADRATURE_H
#include "settings/globalconstants.h"
#include "settings/typedef.h"
#include "toolboxes/errormessages.h"
#include "typedef.h"
#include <iostream>
#include <string>
...
...
code/include/reconstructor.h
View file @
952e370d
...
...
@@ -2,7 +2,7 @@
#define RECONSTRUCTOR_H
#include "settings/config.h"
#include "typedef.h"
#include "
settings/
typedef.h"
class
Reconstructor
{
...
...
code/include/settings/config.h
View file @
952e370d
...
...
@@ -51,11 +51,13 @@ class Config
unsigned
_nCells
;
// Solver
double
_CFL
;
/*!< @brief CFL Number for Solver*/
double
_tEnd
;
/*!< @brief Final Time for Simulation */
PROBLEM_NAME
_problemName
;
SOLVER_NAME
_solverName
;
double
_CFL
;
/*!< @brief CFL Number for Solver*/
double
_tEnd
;
/*!< @brief Final Time for Simulation */
PROBLEM_NAME
_problemName
;
/*!< @brief Name of predefined Problem */
SOLVER_NAME
_solverName
;
/*!< @brief Name of the used Solver */
/*!< @brief If true, very low entries (10^-10 or smaller) of the flux matrices will be set to zero,
* to improve floating point accuracy */
bool
_cleanFluxMat
;
// Boundary Conditions
...
...
@@ -204,7 +206,7 @@ class Config
double
inline
GetTEnd
()
const
{
return
_tEnd
;
}
PROBLEM_NAME
inline
GetProblemName
()
const
{
return
_problemName
;
}
SOLVER_NAME
inline
GetSolverName
()
const
{
return
_solverName
;
}
bool
inline
GetCleanFluxMat
()
const
{
return
_cleanFluxMat
;
}
// Boundary Conditions
BOUNDARY_TYPE
GetBoundaryType
(
std
::
string
nameMarker
)
const
;
/*! @brief Get Boundary Type of given marker */
...
...
code/include/typedef.h
→
code/include/
settings/
typedef.h
View file @
952e370d
File moved
code/include/solvers/advectionsolver.h
deleted
100644 → 0
View file @
971beab9
/*!
* \file advectionsolver.h
* \brief solver for entropy closure of advection equation.
* \author S. Schotthöfer
*/
//#ifndef ADVECTIONSOLVER_H
//#define ADVECTIONSOLVER_H
//
//#include "settings/config.h"
//#include <vector>
//
// class AdvectionSolver
//{
// public:
// AdvectionSolver( Config* settings );
//
// /*! \brief: Solves the advection problem for given lambda */
// void Solve( std::vector<std::vector<double>>* lambda );
//
// /*! \brief: Reconstructs kintec density from given lambda and legendre dual of the entropy functional */
// std::vector<double>* ReconstructKineticDensity( std::vector<std::vector<double>>* lambda );
//
// /* ---- Getter ---- */
// /*! \brief Get pointer to solution vector for each cell (moments) */
// std::vector<std::vector<double>>* GetSolution( void ) { return &_moments; }
//
// protected:
// std::vector<std::vector<double>> _moments; /*! \brief: Solution of the moment advection problem */
// std::vector<std::vector<double>> _kineticDensity; /*! \brief: Reconstructed kinetic Density from given lamnda */
//};
//
//#endif // ADVECTIONSOLVER_H_H
code/include/solvers/entropysolver.h
deleted
100644 → 0
View file @
971beab9
#ifndef ENTROPYSOLVER_H
#define ENTROPYSOLVER_H
class
EntropySolver
{
public:
EntropySolver
();
};
#endif // ENTROPYSOLVER_H
code/include/pnsolver.h
→
code/include/
solvers/
pnsolver.h
View file @
952e370d
...
...
@@ -3,10 +3,7 @@
#include <cmath>
#include "solver.h"
#include "typedef.h"
#include "settings/config.h"
#include "solvers/solver.h"
class
PNSolver
:
public
Solver
{
...
...
code/include/snsolver.h
→
code/include/
solvers/
snsolver.h
View file @
952e370d
...
...
@@ -3,10 +3,7 @@
#include <mpi.h>
#include "solver.h"
#include "typedef.h"
#include "settings/config.h"
#include "solvers/solver.h"
class
SNSolver
:
public
Solver
{
...
...
code/include/snsolverMPI.h
→
code/include/
solvers/
snsolverMPI.h
View file @
952e370d
...
...
@@ -3,10 +3,7 @@
#include <mpi.h>
#include "solver.h"
#include "typedef.h"
#include "settings/config.h"
#include "solvers/solver.h"
class
SNSolverMPI
:
public
Solver
{
...
...
code/include/solver.h
→
code/include/
solvers/
solver.h
View file @
952e370d
...
...
@@ -4,13 +4,13 @@
#include <string>
// include Matrix, Vector definitions
#include "fluxes/numericalflux.h"
#include "io.h"
#include "kernels/scatteringkernelbase.h"
#include "numericalflux.h"
#include "problems/problembase.h"
#include "quadratures/quadraturebase.h"
#include "settings/config.h"
#include "typedef.h"
#include "
settings/
typedef.h"
class
Solver
{
...
...
code/include/toolboxes/textprocessingtoolbox.h
View file @
952e370d
...
...
@@ -11,7 +11,7 @@
#include <string>
#include <vector>
#include "typedef.h"
#include "
settings/
typedef.h"
namespace
TextProcessingToolbox
{
...
...
code/input/example.cfg
View file @
952e370d
...
...
@@ -23,6 +23,8 @@ SOLVER = PN_SOLVER
CFL_NUMBER = 0.8
% Final time for simulation
TIME_FINAL = 0.3
%
CLEAN_FLUX_MATRICES = NO
% ---- Boundary Conditions ----
% Example: BC_DIRICLET = (dummyMarker1, dummyMarker2)
...
...
@@ -33,4 +35,4 @@ BC_DIRICHLET = ( void )
% Quadrature Type
QUAD_TYPE = MONTE_CARLO
% Quadrature Order
QUAD_ORDER =
4
QUAD_ORDER =
1
code/src/laxfriedrichsflux.cpp
→
code/src/
fluxes/
laxfriedrichsflux.cpp
View file @
952e370d
#include "laxfriedrichsflux.h"
#include "
fluxes/
laxfriedrichsflux.h"
LaxFriedrichsFlux
::
LaxFriedrichsFlux
(
Config
*
settings
)
:
NumericalFlux
(
settings
)
{}
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment