New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Functions::RayleighKotheVortex #15932
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two small comments, nothing big
source/base/function_lib.cc
Outdated
|
||
const double px = numbers::PI * point(0); | ||
const double py = numbers::PI * point(1); | ||
const double pt = numbers::PI / T * t; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if that's the best variable name. pt for me mentally translates to point... but maybe that's just me :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am fine with the names.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe
const double pt = numbers::PI / T * t; | |
const double pi_t = numbers::PI / T * t; |
and similarly above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@masterleinad I went with your name suggestion. Thanks 👍
@@ -278,7 +236,7 @@ namespace Step68 | |||
MappingQ1<dim> mapping; | |||
LinearAlgebra::distributed::Vector<double> velocity_field; | |||
|
|||
Vortex<dim> velocity; | |||
Functions::RayleighKotheVortex<dim> velocity; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also make the same change in the performance benchmark while we are at it?
:)
28e3999
to
4c73fcd
Compare
4c73fcd
to
d9805d0
Compare
/rebuild |
/** | ||
* A class that represents a time-dependent function object for a | ||
* Rayleigh--Kothe vortex vector field. This is generally used as | ||
* flow pattern in complex test cases for interface tracking methods |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* flow pattern in complex test cases for interface tracking methods | |
* as flow pattern in complex test cases for interface tracking methods |
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The line above contains the as
.
source/base/function_lib.cc
Outdated
|
||
const double px = numbers::PI * point(0); | ||
const double py = numbers::PI * point(1); | ||
const double pt = numbers::PI / T * t; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe
const double pt = numbers::PI / T * t; | |
const double pi_t = numbers::PI / T * t; |
and similarly above?
d9805d0
to
7a40b5a
Compare
No description provided.