Skip to content
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

Serrated Edges 3D Potential Flow Simulation #235

Draft
wants to merge 26 commits into
base: master
Choose a base branch
from

Conversation

aidanchristoffersson
Copy link

Rough draft for review.

@@ -371,6 +366,10 @@ bool DGBaseState<dim,nstate,real,MeshType>::potential_body_geometry(


// checking if position within TES geometry
// TES shape
auto TES = [&](real v) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just wondering, what does [&](real v) do? I've never seen this before

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passes the real variable v as a reference. (real v) is just a stand in for whatever variable is passed in the expression.

See the below article for reference, my understanding is lambdas are just a replacement for function pointers. In this case not really needed now that I look back on it... Could just be written inline.

https://en.cppreference.com/w/cpp/language/lambda

Solution output and mesh input is currently setup for local machine.
…r naca0012 periodic case.

The purpose of this spanwise refinement is to avoid the failure that occurs when periodic cells are assigned to different processors.

Input meshes must be 1 cell spanwise, which is then refined using deal.ii after the processors are assigned. This ensures that each processor is responsible for the entire width of its segment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants