Commit 952e370d authored by steffen.schotthoefer's avatar steffen.schotthoefer
Browse files

code restructuring

parent 971beab9
Pipeline #91202 failed with stages
in 5 minutes and 32 seconds
......@@ -2,7 +2,6 @@
#define LAXFRIEDRICHSFLUX_H
#include "numericalflux.h"
#include "typedef.h"
class LaxFriedrichsFlux : public NumericalFlux
{
......
......@@ -2,7 +2,7 @@
#define NUMERICALFLUX_H
#include "settings/config.h"
#include "typedef.h"
#include "settings/typedef.h"
class NumericalFlux
{
......
......@@ -2,7 +2,6 @@
#define UPWINDFLUX_H
#include "numericalflux.h"
#include "typedef.h"
class UpwindFlux : public NumericalFlux
{
......
......@@ -3,7 +3,7 @@
#include "quadratures/quadraturebase.h"
#include "settings/globalconstants.h"
#include "typedef.h"
#include "settings/typedef.h"
class ScatteringKernel
{
......
......@@ -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
{
......
......@@ -3,7 +3,7 @@
// include Matrix, Vector definitions
#include "settings/config.h"
#include "typedef.h"
#include "settings/typedef.h"
class Physics
{
......
......@@ -4,7 +4,7 @@
#include "mesh.h"
#include "physics.h"
#include "settings/config.h"
#include "typedef.h"
#include "settings/typedef.h"
class ProblemBase
{
......
......@@ -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>
......
......@@ -2,7 +2,7 @@
#define RECONSTRUCTOR_H
#include "settings/config.h"
#include "typedef.h"
#include "settings/typedef.h"
class Reconstructor
{
......
......@@ -53,9 +53,11 @@ class Config
// Solver
double _CFL; /*!< @brief CFL Number for Solver*/
double _tEnd; /*!< @brief Final Time for Simulation */
PROBLEM_NAME _problemName;
SOLVER_NAME _solverName;
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 */
......
/*!
* \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
#ifndef ENTROPYSOLVER_H
#define ENTROPYSOLVER_H
class EntropySolver
{
public:
EntropySolver();
};
#endif // ENTROPYSOLVER_H
......@@ -3,10 +3,7 @@
#include <cmath>
#include "solver.h"
#include "typedef.h"
#include "settings/config.h"
#include "solvers/solver.h"
class PNSolver : public Solver
{
......
......@@ -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
{
......
......@@ -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
{
......
......@@ -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
{
......
......@@ -11,7 +11,7 @@
#include <string>
#include <vector>
#include "typedef.h"
#include "settings/typedef.h"
namespace TextProcessingToolbox {
......
......@@ -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
#include "laxfriedrichsflux.h"
#include "fluxes/laxfriedrichsflux.h"
LaxFriedrichsFlux::LaxFriedrichsFlux( Config* settings ) : NumericalFlux( settings ) {}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment