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
5854e0cb
Commit
5854e0cb
authored
Mar 22, 2021
by
Steffen Schotthöfer
Browse files
Merge branch 'PN_CSD' of git.scc.kit.edu:rtsn/rtsn into PN_CSD
parents
c0f8a71e
4415d734
Changes
4
Hide whitespace changes
Inline
Side-by-side
code/include/common/globalconstants.h
View file @
5854e0cb
...
...
@@ -115,6 +115,7 @@ enum SOLVER_NAME {
CSD_SN_FOKKERPLANCK_TRAFO_SOLVER
,
CSD_SN_FOKKERPLANCK_TRAFO_SOLVER_2D
,
CSD_SN_FOKKERPLANCK_TRAFO_SH_SOLVER_2D
,
CSD_PN_SOLVER
,
PN_SOLVER
,
MN_SOLVER
};
...
...
@@ -126,6 +127,7 @@ inline std::map<std::string, SOLVER_NAME> Solver_Map{ { "SN_SOLVER", SN_SOLVER }
{
"CSD_SN_FOKKERPLANCK_TRAFO_SOLVER"
,
CSD_SN_FOKKERPLANCK_TRAFO_SOLVER
},
{
"CSD_SN_FOKKERPLANCK_TRAFO_SOLVER_2D"
,
CSD_SN_FOKKERPLANCK_TRAFO_SOLVER_2D
},
{
"CSD_SN_FOKKERPLANCK_TRAFO_SH_SOLVER_2D"
,
CSD_SN_FOKKERPLANCK_TRAFO_SH_SOLVER_2D
},
{
"CSD_PN"
,
CSD_PN_SOLVER
},
{
"PN_SOLVER"
,
PN_SOLVER
},
{
"MN_SOLVER"
,
MN_SOLVER
}
};
...
...
code/input/pointSource_sph_csd.cfg
View file @
5854e0cb
OUTPUT_DIR = ../result
OUTPUT_FILE = IsotropicPointSource_sph_nq6
LOG_DIR = ../result/logs
MESH_FILE = phantom2D
_fine
.su2
MESH_FILE =
meshes/
phantom2D.su2
PROBLEM = ISOTROPICPOINTSOURCE2D
SOLVER = CSD_SN_FOKKERPLANCK_TRAFO_SH_SOLVER_2D
CONTINUOUS_SLOWING_DOWN = YES
SOLVER = CSD_PN
HYDROGEN_FILE = ENDL_H.txt
OXYGEN_FILE = ENDL_O.txt
KERNEL = ISOTROPIC
...
...
code/src/solvers/solverbase.cpp
View file @
5854e0cb
...
...
@@ -6,6 +6,7 @@
#include "fluxes/numericalflux.h"
#include "problems/problembase.h"
#include "quadratures/quadraturebase.h"
#include "solvers/csdpnsolver.h"
#include "solvers/csdsnsolver.h"
#include "solvers/csdsolvertrafofp.h"
#include "solvers/csdsolvertrafofp2d.h"
...
...
@@ -110,6 +111,7 @@ SolverBase* SolverBase::Create( Config* settings ) {
case
CSD_SN_FOKKERPLANCK_TRAFO_SOLVER
:
return
new
CSDSolverTrafoFP
(
settings
);
case
CSD_SN_FOKKERPLANCK_TRAFO_SOLVER_2D
:
return
new
CSDSolverTrafoFP2D
(
settings
);
case
CSD_SN_FOKKERPLANCK_TRAFO_SH_SOLVER_2D
:
return
new
CSDSolverTrafoFPSH2D
(
settings
);
case
CSD_PN_SOLVER
:
return
new
CSDPNSolver
(
settings
);
default:
ErrorMessages
::
Error
(
"Creator for the chosen solver does not yet exist. This is is the fault of the coder!"
,
CURRENT_FUNCTION
);
}
ErrorMessages
::
Error
(
"Creator for the chosen solver does not yet exist. This is is the fault of the coder!"
,
CURRENT_FUNCTION
);
...
...
code/src/toolboxes/interpolation.cpp
View file @
5854e0cb
...
...
@@ -53,7 +53,7 @@ double Interpolation::operator()( double x ) const {
// Check whether 1D
if
(
_dim
!=
1u
)
ErrorMessages
::
Error
(
"Invalid data dimension for operator(x)!"
,
CURRENT_FUNCTION
);
// x must be between min and max of table values
if
(
x
<
_x
[
0
]
||
x
>
_x
[
_x
.
size
()
-
1u
]
)
{
if
(
(
x
<
_x
[
0
]
||
x
>
_x
[
_x
.
size
()
-
1u
]
)
&&
_type
!=
linear
)
{
// std::cout << x << "\t" << _x[0] << std::endl;
// std::cout << x << "\t" << _x[_x.size() - 1u] << std::endl;
ErrorMessages
::
Error
(
"Extrapolation is not supported!"
,
CURRENT_FUNCTION
);
...
...
jannick.wolters
@jm2154
mentioned in commit
b74bad99
·
Apr 30, 2021
mentioned in commit
b74bad99
mentioned in commit b74bad99df4ccad3369d1ece6a5ef88cd7f3a10a
Toggle commit list
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