-
Notifications
You must be signed in to change notification settings - Fork 32
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
PDE filter for Brinkman source term #1562
base: develop
Are you sure you want to change the base?
Conversation
use hsmg, only: hsmg_t | ||
use utils, only: neko_error | ||
use device_math, only: device_cfill, device_col3 | ||
implicit none |
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.
implicit none | |
implicit none |
call json_get_or_default(json, "filter.radius", this%r, 1.0_rp) | ||
|
||
call json_get_or_default(json, "filter.tolerance", this%abstol_filt, & | ||
0.0000000001_rp) |
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 use exponential notation instead?
0.0000000001_rp) | |
1.0e-10_rp) |
As a general comment, could we come up with more specific names? filter_t is definitely too generic, since we already have e.g. a filter for LES. PDE_filter is better, but perhaps could be concretized as well. I would also use |
A counter proposal would be, shouldn't the LES filter derive from the generic filter type then, we will probably add more filters later, meaning the abstract base class should have some name which is easy to understand. on the PDE_filter name, sure, it might be better to call it a helmholz_filter, since that is the PDE implemented for this particular filter. |
Both good suggestions. Regarding the names, yeh I sort of expected this to be problematic. We also now have I'm happy with |
Yes that is also a thing 😅 I guess we need to move the smooth_step functions somewhere else as well. |
@Shiyu-Sandy-Du implemented the LES filtering. I think if you guys can figure out a good abstract interface that would fit a reasonably large class of filters, that would be great! |
This is a PDE filter used to smooth the boundaries of a Brinkman source term, to avoid oscillations associated with sharp interfaces + spectral methods.
The theory is based on B. S. Lazarov, O. Sigmund (2010) "Filters in topology optimization based on Helmholtz-type differential equations".