-
Notifications
You must be signed in to change notification settings - Fork 0
/
ns.f95
43 lines (35 loc) · 1.47 KB
/
ns.f95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
program navier_stokes
! Solves the incompressible Navier-Stokes equations on a rectangular grid with even spacing and velocity boundary conditions
use boundary_condition_m
use ns_case_m
character(100) :: input_file
type(ns_case_t) :: case
! Print welcome message
write(*,*) ""
write(*,*) "-------------------------------------------------"
write(*,*) "| |"
write(*,*) "| Welcome to the Flow81 Navier-Stokes Solver! |"
write(*,*) "| |"
write(*,*) "| Created by Cory Goates, (c) 2021 |"
write(*,*) "| |"
write(*,*) "-------------------------------------------------"
write(*,*) ""
! Load input
call getarg(1, input_file)
write(*,*) "Got input file: ", input_file
write(*,*) "Loading input..."
call ns_case_load_input(case, input_file)
! Run case
write(*,*) ""
write(*,*) "Running case..."
call ns_case_run_simple(case)
! Output
! Print quit message
write(*,*) ""
write(*,*) "-------------------------------------------------"
write(*,*) "| |"
write(*,*) "| Flow81 finished successfully |"
write(*,*) "| |"
write(*,*) "-------------------------------------------------"
write(*,*) ""
end program navier_stokes