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

### 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: `bim2c_global_flux`

Function File: [jx,jy] = bim2c_global_flux(mesh,u,alpha,gamma,eta,beta)

Compute the flux associated with the Scharfetter-Gummel approximation of the scalar field u.

The vector field is defined as:

J(u) = alpha* gamma * (eta * grad u - beta * u))

where alpha is an element-wise constant scalar function, eta and gamma are piecewise linear conforming scalar functions, while beta is element-wise constant vector function.

J(u) is an element-wise constant vector function.

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: bim2c_pde_gradient, bim2a_advection_diffusion

Source Code: bim2c_global_flux