Skip to content
Merged
Show file tree
Hide file tree
Changes from 32 commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
d953d5b
Pushing from local
danieljvickers Sep 15, 2025
9f6af97
Succesfully added RK time stepping
danieljvickers Oct 2, 2025
8d3941d
Finalizing time-step module
danieljvickers Oct 2, 2025
734b649
Addded handlers for new case file parameters
danieljvickers Oct 2, 2025
e1c3b3f
added hooks for a rotation matrix
danieljvickers Oct 2, 2025
effd324
Added the rotation matrix calculation, which will be needed for ident…
danieljvickers Oct 2, 2025
ac0013d
Finished adding velocity update, but now I need to fix compiler errors
danieljvickers Oct 2, 2025
50799ab
Added some inverse rotation calculations to the square case
danieljvickers Oct 7, 2025
c04cfae
Ready to test with a rotated square
danieljvickers Oct 7, 2025
e80952b
Ran test case and everything appears to be working
danieljvickers Oct 7, 2025
6ddc795
Spelling and formatting run
danieljvickers Oct 7, 2025
ce5f071
Fixed single-precision building
danieljvickers Oct 7, 2025
007949d
Updated patch_IB rotation values
danieljvickers Oct 8, 2025
ddfcd0f
Updated 2D airfoil
danieljvickers Oct 8, 2025
0cabfff
Finished adding support for existing IB geometries. They will all now…
danieljvickers Oct 8, 2025
372ddf0
Fixed compiler issue with airfoil changes. All tests pass locally
danieljvickers Oct 8, 2025
603b42f
Updated rectangle levelset
danieljvickers Oct 8, 2025
ab29c8a
Swapped out Id values
danieljvickers Oct 8, 2025
71437fd
Modified the cuboid levelset to use local coords
danieljvickers Oct 8, 2025
fcccef7
Final levelset calculation updated
danieljvickers Oct 8, 2025
d13de48
Fixed compiling errors'
danieljvickers Oct 8, 2025
91e0f50
Temporary fix for issue involving cuboid normal vector selection. Com…
danieljvickers Oct 8, 2025
42e1177
Fixed airfoil shape, but it is not rotating yet
danieljvickers Oct 9, 2025
367bea6
I am dumb. Do not look at this commit. It has nothing for you.
danieljvickers Oct 9, 2025
24b25ec
Need to generate new golden files for the locations of the airfoil ar…
danieljvickers Oct 9, 2025
c6c55b7
Updated the golden files for this test case after realizing that ther…
danieljvickers Oct 9, 2025
c7c8d8a
Formatting and spelling
danieljvickers Oct 9, 2025
6b1ee94
Changes to the case file to support new rotational system
danieljvickers Oct 9, 2025
3208814
Resolved memory not being reset for rectangles and cuboids. Also fixe…
danieljvickers Oct 10, 2025
9dc62dd
Fixing macOS runners failing due to contera version difference
danieljvickers Oct 10, 2025
6febe45
Ran formatting
danieljvickers Oct 10, 2025
78fd281
Fixed issue with pre-processing not applying correct initial rotation…
danieljvickers Oct 10, 2025
7cf947e
Formatting
danieljvickers Oct 10, 2025
63c87c5
Adding OpenMP/OpenACC tags for vecturs used in paralel loop for GPU s…
danieljvickers Oct 10, 2025
1af3670
found an error in 3d Airfoil case that is unrelated to the frontier C…
danieljvickers Oct 12, 2025
5a60a7f
Merge branch 'master' into add-rotating-mibms
danieljvickers Oct 12, 2025
272ca02
Build with one task for testing
wilfonba Oct 13, 2025
8fc4902
.github
danieljvickers Oct 13, 2025
64fa336
Found my error. Thanks Ben for being a rubber ducky :)
danieljvickers Oct 13, 2025
29db19a
Integrated with new time stepper code
danieljvickers Oct 13, 2025
c29ec88
Resolved error. Ready to merge
danieljvickers Oct 13, 2025
604e1db
Merge branch 'add-rotating-mibms' of github.com:danieljvickers/MFC in…
danieljvickers Oct 13, 2025
cbfb2da
Formatting
danieljvickers Oct 13, 2025
7560a02
Added a tumbling rectangle case
danieljvickers Oct 15, 2025
8906927
Fixed GPU errors on NVHPC
danieljvickers Oct 16, 2025
d4a1280
Generated golden files for totating sphere
danieljvickers Oct 16, 2025
876f16a
Updated case file to be longer
danieljvickers Oct 16, 2025
f1b6fb7
Formatting
danieljvickers Oct 16, 2025
21d0594
Spelling
danieljvickers Oct 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ jobs:
- name: Clone
uses: actions/checkout@v4

- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: '3.13'


- name: Setup MacOS
if: matrix.os == 'macos'
run: |
Expand Down
6 changes: 3 additions & 3 deletions examples/2D_ibm_airfoil/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@
"patch_ib(1)%t": 0.15,
"patch_ib(1)%p": 0.4,
"patch_ib(1)%m": 0.02,
"patch_ib(1)%theta": 30,
"patch_ib(1)%angles(3)": -0.5235987756, # 30 degrees clockwise rotation, in radians
# Fluids Physical Parameters
# Use the same stiffness as the air bubble
"fluid_pp(1)%gamma": 1.0e00 / (gam_a - 1.0e00), # 2.50(Not 1.40)
"fluid_pp(1)%gamma": 1.0e00 / (gam_a - 1.0e00), # 2.50 (Not 1.40)
"fluid_pp(1)%pi_inf": 0,
"fluid_pp(2)%gamma": 1.0e00 / (gam_b - 1.0e00), # 2.50(Not 1.40)
"fluid_pp(2)%gamma": 1.0e00 / (gam_b - 1.0e00), # 2.50 (Not 1.40)
"fluid_pp(2)%pi_inf": 0,
}
)
Expand Down
290 changes: 138 additions & 152 deletions src/common/m_compute_levelset.fpp

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions src/common/m_derived_types.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,13 @@ module m_derived_types
real(wp) :: x_centroid, y_centroid, z_centroid !<
!! Location of the geometric center, i.e. the centroid, of the patch. It
!! is specified through its x-, y- and z-coordinates, respectively.
real(wp) :: step_x_centroid, step_y_centroid, step_z_centroid !<
!! Centroid locations of intermediate steps in the time_stepper module

real(wp), dimension(1:3) :: angles
real(wp), dimension(1:3) :: step_angles
real(wp), dimension(1:3, 1:3) :: rotation_matrix !< matrix that converts from IB reference frame to fluid reference frame
real(wp), dimension(1:3, 1:3) :: rotation_matrix_inverse !< matrix that converts from fluid reference frame to IB reference frame

real(wp) :: c, p, t, m

Expand Down Expand Up @@ -322,6 +329,9 @@ module m_derived_types
!! Patch conditions for moving imersed boundaries
integer :: moving_ibm ! 0 for no moving, 1 for moving, 2 for moving on forced path
real(wp), dimension(1:3) :: vel
real(wp), dimension(1:3) :: step_vel ! velocity array used to store intermediate steps in the time_stepper module
real(wp), dimension(1:3) :: angular_vel
real(wp), dimension(1:3) :: step_angular_vel ! velocity array used to store intermediate steps in the time_stepper module

end type ib_patch_parameters

Expand Down
Loading
Loading