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
16e9da8f
Commit
16e9da8f
authored
Dec 10, 2020
by
Steffen Schotthöfer
Browse files
added some comments
Former-commit-id:
0cb743ac
parent
47b4fffd
Changes
1
Hide whitespace changes
Inline
Side-by-side
code/src/toolboxes/datagenerator.cpp
View file @
16e9da8f
...
...
@@ -89,11 +89,19 @@ void nnDataGenerator::ComputeMoments() {
}
void
nnDataGenerator
::
sampleSolutionU
()
{
// Use necessary conditions from Monreal, Dissertation, Chapter 3.2.1, Page 26
// --- sample u in order 0 ---
// u_0 = <1*psi>
double
du
=
100.0
/
(
double
)
_setSize
;
// Prototype: u is sampled from [0,100]
for
(
unsigned
idx_set
=
0
;
idx_set
<
_setSize
;
idx_set
++
)
{
_uSol
[
idx_set
][
0
]
=
du
*
idx_set
;
}
// --- sample u in order 1 ---
/* order 1 has 3 elements. (omega_x, omega_y, omega_z) = omega, let u_1 = (u_x, u_y, u_z) = <omega*psi>
* Condition u_0 >= norm(u_1) */
}
void
nnDataGenerator
::
computeEntropyH_dual
()
{
...
...
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