-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major commit taking out numerical flux
Physics and numerical fluxes are now computed outside of the DG discretization. Partial implementation of vector-valued problems by adding the std::array structures Diffusive terms require a function that will evaluate the solution numerical flux and the viscous numerical flux. Current implementation of SIPG is working to recover optimal convergence orders of the solution but not of the output functional Suboptimal output error is perceived for diffusion (maybe, I get 2p) and convection-diffusion (definitely) TODO: Find the adjoint consistent boundary condition for the diffusion problem and convection-diffusion problem TODO: Find out why the linear solver is soooo much slower for the diffusion problems Start 1: 1D_ADVECTION_IMPLICIT_MANUFACTURED_SOLUTION 1/12 Test #1: 1D_ADVECTION_IMPLICIT_MANUFACTURED_SOLUTION .............. Passed 0.53 sec Start 2: 2D_ADVECTION_IMPLICIT_MANUFACTURED_SOLUTION 2/12 Test #2: 2D_ADVECTION_IMPLICIT_MANUFACTURED_SOLUTION .............. Passed 5.84 sec Start 3: 3D_ADVECTION_IMPLICIT_MANUFACTURED_SOLUTION 3/12 Test #3: 3D_ADVECTION_IMPLICIT_MANUFACTURED_SOLUTION .............. Passed 47.98 sec Start 4: 1D_DIFFUSION_IMPLICIT_MANUFACTURED_SOLUTION 4/12 Test #4: 1D_DIFFUSION_IMPLICIT_MANUFACTURED_SOLUTION .............. Passed 0.64 sec Start 5: 2D_DIFFUSION_IMPLICIT_MANUFACTURED_SOLUTION 5/12 Test #5: 2D_DIFFUSION_IMPLICIT_MANUFACTURED_SOLUTION .............. Passed 3.23 sec Start 6: 3D_DIFFUSION_IMPLICIT_MANUFACTURED_SOLUTION 6/12 Test #6: 3D_DIFFUSION_IMPLICIT_MANUFACTURED_SOLUTION .............. Passed 237.84 sec Start 7: 1D_CONVECTION_DIFFUSION_IMPLICIT_MANUFACTURED_SOLUTION 7/12 Test #7: 1D_CONVECTION_DIFFUSION_IMPLICIT_MANUFACTURED_SOLUTION ... Passed 0.75 sec Start 8: 2D_CONVECTION_DIFFUSION_IMPLICIT_MANUFACTURED_SOLUTION 8/12 Test #8: 2D_CONVECTION_DIFFUSION_IMPLICIT_MANUFACTURED_SOLUTION ... Passed 3.45 sec Start 9: 3D_CONVECTION_DIFFUSION_IMPLICIT_MANUFACTURED_SOLUTION 9/12 Test #9: 3D_CONVECTION_DIFFUSION_IMPLICIT_MANUFACTURED_SOLUTION ... Passed 266.84 sec Start 10: 1D_numerical_flux_conservation 10/12 Test #10: 1D_numerical_flux_conservation ........................... Passed 0.27 sec Start 11: 2D_numerical_flux_conservation 11/12 Test #11: 2D_numerical_flux_conservation ........................... Passed 0.25 sec Start 12: 3D_numerical_flux_conservation 12/12 Test #12: 3D_numerical_flux_conservation ........................... Passed 0.24 sec 100% tests passed, 0 tests failed out of 12 Total Test time (real) = 567.87 sec
- Loading branch information
1 parent
67e7119
commit 593089b
Showing
23 changed files
with
1,000 additions
and
289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Listing of Parameters | ||
# --------------------- | ||
# Number of dimensions | ||
set dimension = 1 | ||
|
||
# The kind of solver for the linear system. Choices are | ||
# <advection|convection_diffusion>. | ||
set pde_type = advection | ||
|
||
|
||
subsection ODE solver | ||
# Maximum nonlinear solver iterations | ||
set nonlinear_max_iterations = 3 | ||
|
||
# Nonlinear solver residual tolerance | ||
set nonlinear_steady_residual_tolerance = 1e-13 | ||
|
||
# Print every print_iteration_modulo iterations of the nonlinear solver | ||
set print_iteration_modulo = 1 | ||
|
||
# Explicit or implicit solverChoices are <explicit|implicit>. | ||
set solver_type = implicit | ||
end | ||
|
||
|
||
subsection manufactured solution convergence study | ||
# Last degree used for convergence study | ||
set degree_end = 4 | ||
|
||
# Starting degree for convergence study | ||
set degree_start = 1 | ||
|
||
# Initial grid of size (initial_grid_size)^dim | ||
set initial_grid_size = 2 | ||
|
||
# Number of grids in grid study | ||
set number_of_grids = 5 | ||
|
||
# Multiplier on grid size. nth-grid will be of size | ||
# (initial_grid^grid_progression)^dim | ||
set grid_progression = 1.5 | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env python3 | ||
import os | ||
import sys | ||
import re | ||
|
||
fname = 'input_file.prm' | ||
|
||
f = open(fname) | ||
|
||
regexp = re.compile(r'set dimension.*?([1-3.-]+)') | ||
|
||
dim = -1 | ||
with open(fname) as f: | ||
for line in f: | ||
match = regexp.match(line) | ||
if match: | ||
dim = int(match.group(1)) | ||
break | ||
if dim == -1: | ||
sys.exit("No valid 'set dimension = [1-3]' line found") | ||
|
||
|
||
|
||
bin_path = './bin/PHiLiP_'+str(dim)+'D' | ||
|
||
command = bin_path + ' -p ' + fname | ||
print("Running: " + command) | ||
os.system(command) |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
set(SOURCE | ||
viscous_numerical_flux.cpp | ||
numerical_flux.cpp | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.