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
751d7066
Commit
751d7066
authored
Aug 07, 2020
by
Jonas Kusch
Browse files
linesource corrected
parent
42e9a4a2
Pipeline
#103239
passed with stages
in 25 minutes and 51 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
code/include/problems/problembase.h
View file @
751d7066
...
...
@@ -49,7 +49,9 @@ class ProblemBase
* in vector energy
* @param energy is the energy the cross section is queried for
*/
virtual
VectorVector
GetScatteringXSE
(
const
Vector
&
energies
,
const
Vector
&
angles
)
{
return
VectorVector
(
1
,
Vector
(
1
)
);
}
virtual
VectorVector
GetScatteringXSE
(
const
Vector
&
energies
,
const
Vector
&
angles
)
{
return
VectorVector
(
energies
.
size
(),
Vector
(
angles
.
size
()
)
);
}
/**
* @brief GetExternalSource gives back vector of vectors of source terms for each
...
...
code/input/example.cfg
View file @
751d7066
...
...
@@ -37,4 +37,4 @@ BC_DIRICHLET = ( void )
% Quadrature Type
QUAD_TYPE = LEBEDEV
% Quadrature Order
QUAD_ORDER = 4
7
QUAD_ORDER = 4
code/input/example_csd.cfg
View file @
751d7066
OUTPUT_DIR = ../result
OUTPUT_FILE = example_csd
LOG_DIR = ../result/logs
MESH_FILE = linesource_pseudo_1
d
.su2
PROBLEM =
WATERPHANTOM
MESH_FILE = linesource_pseudo_1
D
.su2
PROBLEM =
LINESOURCE_PSEUDO_1D
SOLVER = CSD_SN_SOLVER
CONTINUOUS_SLOWING_DOWN =
YES
CONTINUOUS_SLOWING_DOWN =
NO
HYDROGEN_FILE = ENDL_H.txt
OXYGEN_FILE = ENDL_O.txt
KERNEL = ISOTROPIC_1D
CFL_NUMBER = 0.
000
1
TIME_FINAL =
0
.0
0001
CFL_NUMBER = 0.1
TIME_FINAL =
1
.0
CLEAN_FLUX_MATRICES = NO
BC_DIRICHLET = ( void )
...
...
code/src/problems/linesource.cpp
View file @
751d7066
...
...
@@ -43,7 +43,7 @@ VectorVector LineSource_SN_Pseudo1D::SetupIC() {
double
t
=
3.2e-4
;
// pseudo time for gaussian smoothing
for
(
unsigned
j
=
0
;
j
<
cellMids
.
size
();
++
j
)
{
double
x
=
cellMids
[
j
][
0
];
psi
[
j
]
=
1.0
/
(
4
.0
*
M_PI
*
t
)
*
std
::
exp
(
-
(
x
*
x
)
/
(
4
*
t
)
);
psi
[
j
]
=
1.0
/
(
2
.0
*
M_PI
*
t
)
*
std
::
exp
(
-
(
x
*
x
)
/
(
2.0
*
t
)
);
}
return
psi
;
}
...
...
Write
Preview
Supports
Markdown
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