KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
Functions
symbolic_generation.compressible_navier_stokes.src.generate_diffusive_flux Namespace Reference

Functions

def ComputeDiffusiveFlux (dofs, dUdx, params)
 Calculate the diffusive flux matrix without shock capturing contribution. More...
 
def ComputeDiffusiveFluxWithShockCapturing (dofs, dUdx, params, sc_params)
 Calculate the diffusive flux matrix with a physics-based shock capturing contribution. More...
 
def CalculuateMassFluxVector (alpha, dUdx)
 Auxiliary function to calculate mass flux vector f_rho = alpha * gradient(u) More...
 
def CalculateViscousStressTensor (mu, beta, rho, mom, dim, dUdx)
 Auxiliary function to calculate the viscous stress tensor for the given dynamic and bulk viscosity values. More...
 
def CalculateHeatFluxVector (c_v, lamb, rho, mom, e_tot, dim, dUdx)
 Auxiliary function to calculate the heat flux vector with Fourier's law. More...
 
def WriteInVoigtNotation (dim, tensor)
 Auxiliary function to represent a 2nd order tensor in Voigt notation. More...
 
def RevertVoigtNotation (dim, voigt_tensor)
 Auxiliary function to set a 2nd order tensor from its Voigt representation. More...
 
def PrintDiffusiveFluxMatrix (G, params)
 Auxiliary function to print the diffusive flux matrix (G) More...
 

Function Documentation

◆ CalculateHeatFluxVector()

def symbolic_generation.compressible_navier_stokes.src.generate_diffusive_flux.CalculateHeatFluxVector (   c_v,
  lamb,
  rho,
  mom,
  e_tot,
  dim,
  dUdx 
)

Auxiliary function to calculate the heat flux vector with Fourier's law.

◆ CalculateViscousStressTensor()

def symbolic_generation.compressible_navier_stokes.src.generate_diffusive_flux.CalculateViscousStressTensor (   mu,
  beta,
  rho,
  mom,
  dim,
  dUdx 
)

Auxiliary function to calculate the viscous stress tensor for the given dynamic and bulk viscosity values.

◆ CalculuateMassFluxVector()

def symbolic_generation.compressible_navier_stokes.src.generate_diffusive_flux.CalculuateMassFluxVector (   alpha,
  dUdx 
)

Auxiliary function to calculate mass flux vector f_rho = alpha * gradient(u)

Mass diffusivity (alpha) is 0 in the Navier-Stokes equations but some shock capturing methods introduce a positive, non-zero value

◆ ComputeDiffusiveFlux()

def symbolic_generation.compressible_navier_stokes.src.generate_diffusive_flux.ComputeDiffusiveFlux (   dofs,
  dUdx,
  params 
)

Calculate the diffusive flux matrix without shock capturing contribution.

◆ ComputeDiffusiveFluxWithShockCapturing()

def symbolic_generation.compressible_navier_stokes.src.generate_diffusive_flux.ComputeDiffusiveFluxWithShockCapturing (   dofs,
  dUdx,
  params,
  sc_params 
)

Calculate the diffusive flux matrix with a physics-based shock capturing contribution.

See:

  1. Fernandez, Nguyen and Peraire A physics-based shock capturing methods for large-eddy simulation..

◆ PrintDiffusiveFluxMatrix()

def symbolic_generation.compressible_navier_stokes.src.generate_diffusive_flux.PrintDiffusiveFluxMatrix (   G,
  params 
)

Auxiliary function to print the diffusive flux matrix (G)

◆ RevertVoigtNotation()

def symbolic_generation.compressible_navier_stokes.src.generate_diffusive_flux.RevertVoigtNotation (   dim,
  voigt_tensor 
)

Auxiliary function to set a 2nd order tensor from its Voigt representation.

◆ WriteInVoigtNotation()

def symbolic_generation.compressible_navier_stokes.src.generate_diffusive_flux.WriteInVoigtNotation (   dim,
  tensor 
)

Auxiliary function to represent a 2nd order tensor in Voigt notation.