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

Implementation of surface integral within update rule #5

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

iagr98
Copy link

@iagr98 iagr98 commented Jan 15, 2025

This pull request adds the functions: 'calculate_normal_vector_circle' and 'surface_integral_circle' to the grid.jl file and use then within 'compute_cell_update_and_max_\Deltat' to update the update rule.

Note: Only implemented for PrimalQuadMode and for the case in which obstacle is a circle.

jonmino and others added 7 commits January 6, 2025 00:20
Changed the cell mask to integer and made normal cells 1, boundary cells
-1 and cells inside the obstacle are of value 0. When assigning ids the
normal cells count up while the boundary cells have negative ids.
Improving the Boundary Cell detection by making the implementation more
efficient by checking if one point is outside of the obstacle instead of
all inside and changing the layering of Ids to work better with multiple
obstacles
There was an error in calculating the Verticies for the cells which
meant that a bigger area then the cell was checked. Now it should be
correct.
Made Pluto use a local version of the Euler2D Package. This sadly means
that Plutos Package Manger cannot be used so I added the required
Packages to the Project.toml file. This should be changed again later.
For Cells which are identified as cells that intersect with the boundart
of the obstacle, the intersection points with the cell border are now
calculated and stored as SVectors in the Cell Structs.
Moved the calculation of the surface integrals and normals into the
partitioning part of the Workflow to minimize calculations necessary at
run time
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