find_radius Interface

interface


Calls

interface~~find_radius~~CallsGraph interface~find_radius find_radius proc~find_radius find_radius interface~find_radius->proc~find_radius none~line line proc~find_radius->none~line

public module function find_radius(this, center, vector, get_density) result(radius)

Arguments

Type IntentOptional Attributes Name
class(bnsbase), intent(in) :: this

bnsbase object owning this PROCEDURE

double precision, intent(in), DIMENSION(3) :: center

Center point relative to which the radius is measured

double precision, intent(in), DIMENSION(3) :: vector

Vector that defines the direction along which to measure the radius. If not normalized, it will be normalized.

procedure(get_density_at_pos), optional :: get_density

Return Value double precision

Radius of the star relative to center, along the direction specified by vector

Description

Finds the radius of a matter object, relative to a center and along a direction. The radius is determined as the first point where the density is zero.