PDE Solver using a Finite Element/Finite Volume approach: bim1a_advection_upwind

### Categories &

#### Functions List

###### Matrix assembly

- bim1a_advection_diffusion
- bim1a_advection_upwind
- bim1a_axisymmetric_advection_diffusion
- bim1a_axisymmetric_advection_upwind
- bim2a_advection_diffusion
- bim2a_advection_upwind
- bim2a_axisymmetric_advection_diffusion
- bim2a_axisymmetric_advection_upwind
- bim3a_advection_diffusion
- bim3a_osc_advection_diffusion
- bim1a_laplacian
- bim1a_axisymmetric_laplacian
- bim2a_laplacian
- bim2a_axisymmetric_laplacian
- bim3a_laplacian
- bim3a_osc_laplacian
- bim1a_reaction
- bim1a_axisymmetric_reaction
- bim2a_reaction
- bim2a_axisymmetric_reaction
- bim3a_reaction
- bim1a_rhs
- bim1a_axisymmetric_rhs
- bim2a_rhs
- bim2a_axisymmetric_rhs
- bim3a_rhs
- bim2a_boundary_mass
- bim2a_axisymmetric_boundary_mass
- bim3a_boundary_mass

###### Pre-processing and Post-processing computations

- bim2c_mesh_properties
- bim3c_mesh_properties
- bim2c_unknowns_on_side
- bim3c_unknowns_on_faces
- bim2c_pde_gradient
- bim3c_pde_gradient
- bim2c_global_flux
- bim3c_global_flux
- bim1c_elem_to_nodes
- bim2c_tri_to_nodes
- bim3c_tri_to_nodes
- bim2c_intrp
- bim3c_intrp
- bim1c_norm
- bim2c_norm
- bim3c_norm

###### Utilities

- bimu_bernoulli
- bimu_logm

### Function Reference: `bim1a_advection_upwind`

Function File: [A] = bim1a_advection_upwind (mesh, beta)

Build the UW stabilized stiffness matrix for an advection problem.

The equation taken into account is:

(beta u)’ = f

where beta is an element-wise constant.

Instead of passing the vector field beta directly one can pass a piecewise linear conforming scalar function phi as the last input. In such case beta = grad phi is assumed.

If phi is a single scalar value beta is assumed to be 0 in the whole domain.

See also: bim1a_rhs, bim1a_reaction, bim1a_laplacian, bim2a_advection_diffusion

Source Code: bim1a_advection_upwind