Mallard 0.8.0
Unstructured, GPU accelerated, high-order finite volume CFD solver
Mallard website
Loading...
Searching...
No Matches
solver.cpp File Reference

Solver class implementation. More...

#include "solver.h"
#include "input.h"
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <filesystem>
#include <limits>
#include <map>
#include <memory>
#include <numeric>
#include <sstream>
#include <Kokkos_Core.hpp>
#include "comm.h"
#include "device_comm.h"
#include "common.h"
#include "log.h"
#include "mesh_block.h"
#include "partition.h"
#include "expression.h"
#include "gradient.h"
#include "viscous_flux.h"

Classes

struct  TimeStepFunctor
 Per-cell stable time step for CFL = 1 (Blazek eqs. 6.20-6.21, C = 4): dt_i = 2 V_i / (sum_f (|u_n| + a)_f A_f + 4 nu_eff sum_f A_f^2 / V_i), with the face wave speed taken as the max over the two adjacent cells and nu_eff = max(4/3, gamma/Pr) mu / rho for viscous flow. Half the sums over faces stand for Blazek's sums of projected areas. More...
 
struct  ForceFunctor
 Traction of the fluid on boundary faces, t = p n - tau . n with n pointing out of the fluid. Pressure is the adjacent cell's; on walls the velocity gradient is corrected with the wall velocity as in the viscous flux. More...
 
struct  ForceFunctor::value_type
 
struct  FlowStatisticsFunctor
 Per-cell contributions to Solver::integrate_flow_statistics. More...
 
struct  FlowStatisticsFunctor::value_type
 

Detailed Description

Solver class implementation.

Author
Matthew Bonanni (mbona.nosp@m.nni0.nosp@m.01@gm.nosp@m.ail..nosp@m.com)
Version
0.2
Date
2023-12-20