Functions and types
Functions
ComputationalHeatTransfer.heattransfer_system
— Methodheattransfer_system(grid,[bodies];kwargs...)
Construct the operators and cache variables for a heat transfer problem.
The kwargs
are the optional keyword aguments. There are several, some of which are crucial for certain types of problems.
ddftype =
to set the DDF type. The default isCartesianGrids.Yang3
.scaling =
to set the scaling type,GridScaling
(default) orIndexScaling
.dtype =
to set the element type toFloat64
(default) orComplexF64
.phys_params =
A dictionary to pass in physical parameters, or to pass in alternative models for the freestream velocity (with the "freestream" key)bc =
A dictionary to pass in boundary condition data or functions, using "external" and "internal" keys to pass in functions that provide the corresponding surface data outside and inside the surface(s).forcing =
A dictionary to pass in forcing models (via the "forcing models" key)motions =
to provide function(s) that specify the velocity of the immersed surface(s).reference_body =
to solve the problem in a reference frame attached to a body rather than the inertial frame (with is the default, with body number 0).timestep_func =
to pass in a function for time-dependent problems that provides the time-step size. It is expected that this function takes in two arguments, thegrid::PhysicalGrid
andphys_params
, and returns the time step. It defaults to the basic Fourier/CFL type functiondefault_timestep
ComputationalHeatTransfer.setup_grid
— Methodsetup_grid(xlim::Tuple,ylim::Tuple,phys_params::Dict[;nthreads_max=length(Sys.cpu_info())])
Construct a Cartesian grid with limits xlim
and ylim
and spacing determined by user input. The maximum number of threads can be optionally set; it defaults to the number of processor cores.
ComputationalHeatTransfer.surface_point_spacing
— Methodsurface_point_spacing(g::PhysicalGrid,phys_params)
Calculate the surface point spacing for a given grid, using the specified parameter "point spacing ratio" in the physical parameters, or the default value (1.4) if not specified.
Types
ComputationalHeatTransfer.DirichletHeatConductionProblem
— TypeDirichletHeatConductionProblem
ILM problem type dealing with scalar-type data.
ComputationalHeatTransfer.NeumannHeatConductionProblem
— TypeNeumannHeatConductionProblem
ILM problem type dealing with scalar-type data.