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

Decaying homogeneous isotropic turbulence #194

Conversation

jbrillon
Copy link
Collaborator

@jbrillon jbrillon commented Feb 11, 2023

PR to incorporate the DHIT flow test case and the added features associated with it.

Summary of features:

Alexander and others added 30 commits February 25, 2022 16:17
…akes use of operators in DG strong. Provides weight-adjusted curvilinear Mass matrices. Includes free-stream preserving metric terms.
…ed new numerical fluxes in the numerical_flux_conservation test.
…be written as a combination of matrix-vector products and inner products. A unit test verifies by testing the cputime for A*u and also M*u where M is a mass matrix--uses both matrix-vector product and inner product forms. All that is left is to clean up the unit test a bit to fail at wrong orders.
…ge conflict with ode solver base then pull request changes complete.
…. Updated unsteady tests. Continued to clean up and removed deprecated Burgers Rewienski lines.
…re collections from DG. Made consistent throughout the code to call operators finite element and quadrature collections from the operators collection tuple.
…capabilities for different initial condition functions. This generalizes the initial condition class.
src/physics/euler.cpp Outdated Show resolved Hide resolved
@jbrillon
Copy link
Collaborator Author

All tests that should be passing are passing

ctest_2023-02-13.txt

Copy link
Collaborator

@cpethrick cpethrick left a comment

Choose a reason for hiding this comment

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

Great work! I have left a few comments.

I saw that there is an option to output the results on equidistant nodes. Have you checked whether there is significant interpolation error when reading/writing to different nodes? I.e. would solution --write--> file --read--> solution recover the initial solution?

src/dg/artificial_dissipation.h Outdated Show resolved Hide resolved
src/flow_solver/flow_solver.cpp Show resolved Hide resolved
src/flow_solver/flow_solver.cpp Show resolved Hide resolved
src/flow_solver/flow_solver_cases/periodic_turbulence.cpp Outdated Show resolved Hide resolved
src/flow_solver/flow_solver_cases/periodic_turbulence.cpp Outdated Show resolved Hide resolved
src/physics/euler.cpp Outdated Show resolved Hide resolved
@jbrillon
Copy link
Collaborator Author

as we discussed, output_velocity_field with the equidistant nodes is only used for post-processing and not for generating an input file; the input file must match the expected node coordinates and the reader will fail if they don't

Copy link
Collaborator

@cpethrick cpethrick left a comment

Choose a reason for hiding this comment

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

Approving as all my comments have been addressed!

Copy link
Collaborator

@PranshulThakur PranshulThakur left a comment

Choose a reason for hiding this comment

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

Nice PR to introduce DHIT. I have added a few comments and will approve it soon.

@sivanadarajah
Copy link
Collaborator

PR to incorporate the DHIT flow test case and the added features associated with it.

Summary of features:

  • Initialize solution from a file
  • Output velocity field files at given times (for generating turbulent kinetic energy spectrum plots in post-processing using https://github.com/jbrillon/PHiLiP-Post-Processing)
  • Navier-Stokes can be ran for a constant viscosity if desired
  • LES filter width has been corrected to filter_width = pow(cell_volume, (1.0/3.0))/(cell_poly_degree+1)
  • Closed issue Use PhysicsBase's implementation of boundary_face_values in derived classes #72
  • Added tests homogeneous_isotropic_turbulence_initialization_check which tests the file reader for initializing the solution within the projection loop -- this will fail if the coordinates (x,y,z) and state (s) do not match what PHiLiP expects as it is performing the loop

@jbrillon Would the test work for a DHIT on a curvilinear grid?

@jbrillon
Copy link
Collaborator Author

All tests expected to pass are passing, I've attached the log file
ctest-2023-02-22.txt

@jbrillon
Copy link
Collaborator Author

PR to incorporate the DHIT flow test case and the added features associated with it.
Summary of features:

  • Initialize solution from a file
  • Output velocity field files at given times (for generating turbulent kinetic energy spectrum plots in post-processing using https://github.com/jbrillon/PHiLiP-Post-Processing)
  • Navier-Stokes can be ran for a constant viscosity if desired
  • LES filter width has been corrected to filter_width = pow(cell_volume, (1.0/3.0))/(cell_poly_degree+1)
  • Closed issue Use PhysicsBase's implementation of boundary_face_values in derived classes #72
  • Added tests homogeneous_isotropic_turbulence_initialization_check which tests the file reader for initializing the solution within the projection loop -- this will fail if the coordinates (x,y,z) and state (s) do not match what PHiLiP expects as it is performing the loop

@jbrillon Would the test work for a DHIT on a curvilinear grid?

@sivanadarajah I don't see why not. We would just have to interpolate/project the initial condition from the uniform grid to the curvilinear one which would have to be an added feature.

* Initial progress towards fixing the way soln_grad was computed at equidistant nodes

* cleaning up code, removing output_velocity_field_at_equidistant_nodes parameter since always will be true

* writing vorticity for mpi test as well
Copy link
Collaborator

@PranshulThakur PranshulThakur left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for addressing the comments.

@PranshulThakur PranshulThakur merged commit 1e45900 into dougshidong:master Feb 24, 2023
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.

Use PhysicsBase's implementation of boundary_face_values in derived classes
6 participants