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

[Algo_QC] Feature addition: Saving each \Delta_t time step #10

Open
wants to merge 26 commits into
base: next
Choose a base branch
from

Conversation

YanisZatout
Copy link

[Algo_QC] Decoupled saving raw data and statistics files (statistiques_T.txt, moyenne_spatiale_T.txt) and raw data files.

Adding keyword save_each_delta_t for saving each \Delta_t, as well as test case with prm files.

The save_each_delta_t checks if the current time step makes the simulation time go beyond the wanted simulation raw data. If that's the case, the time step is capped to the needed value to attain the wanted saving time.

This feature is also possible to implement for any other code module.

YanisZatout and others added 25 commits October 3, 2023 16:04
Hard copy-paste of IJK_Kernel files
Adding compilable Algo_QC with patched items that correspond to
the right calculation of surfaces for the calculation of
the mass flux in the QUICK and Centered order 2 schemes

Correction of the Simd tools used to compute the terms
of the QUICK scheme :

in the J direction (spanwise in a channel), the offset to take
into account in the J direction for each parallel domain was
fixed when it needed to be taken into account.
This had the effect of not computing the flux correctly on
the very first J cell for the mass flux.

This is a very similar bug to commit hash:
ead456d04d72824210683fa612a7885d41a20d1e

which is detailed in the changelogs of Algo_QC.
OpDiffTurbIJKScalar.cpp:
  Added method OpDiffVectorialIJKScalar_double::ajouter
  This method is used in the Algo_QC code and
  was missing. Its implementation is not changed from
  previous versions.
OpCentre2IJK.*:
  These files are centered order 2 scheme for velocity
  convection in momentum energy convervation equation.
  They are a copy-paste of the OpCentre4IJK.* files
  with g1 and g4 values put to 0.0, and
  g2 and g3 values put to 0.5.
Statistiques_dns_qc_ijk.*:
  The class Statistiques_dns_qc_ijk is just a
  child class of Statistiques_dns_ijk that
  implements the method `complemer_read' as
  non forcing for process exiting.
  This is essentially like the old version of
  Statistiques_dns_ijk*, where
  Statistiques_dns_ijk was directly used for
  logging statistics in Algo_QC.
OpDiffTurbIJK.tpp, OpDiffTurbIJKScalar.tpp:
  Bug correction relating to the variable
  `dummy_field' that stores the velocity.
  Instead of storing a pointer to the
  velocity, the changed code was actively
  copying the entire velocity field,
  leading to a reduction in performances
  especially in a already costly simulation
Added documentation for Algo_QC class.
This includes Quasi Compressible hypothesis
equations, LES formulations, and LES models
and bibliography.
Decoupled saving statistics and raw data.
Added keywords to save each physical \Delta_t
Forces the timestep to change to match the
aimed timestep wanted for saving
@YanisZatout YanisZatout changed the title [Algo_QC] Feature addition: Saving each time step [Algo_QC] Feature addition: Saving each \Delta_t time step Mar 29, 2024
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