예제 #1
0
    def V_of_vdl_at_u0(self, vdl):
        """
		Evaluate the function V(vdl) = V(r(udl0,vdl)) by interpolating from stored reference values.
		Smooth interpolation and extrapolation handled by interpolators module.
		"""
        return interp.interp_with_smooth_extrap(vdl,
                                                self.uvdl_u0[1],
                                                self.V_u0,
                                                mu=self.mu)
예제 #2
0
    def udl_of_U_at_v0(self, U):
        """
		Untested.
		Inverse of U(udl).
		"""
        return interp.interp_with_smooth_extrap(U,
                                                self.UV_v0[0],
                                                self.uvdl_v0[0],
                                                mu=self.mu)
예제 #3
0
    def U_of_udl_at_v0(self, udl):
        """
		Evaluate the function U(udl) = U(r(udl,vdl0)) by interpolating from stored reference values.
		Smooth interpolation and extrapolation handled by interpolators module.
		"""
        return interp.interp_with_smooth_extrap(udl,
                                                self.uvdl_v0[0],
                                                self.U_v0,
                                                mu=self.mu)
예제 #4
0
    def vdl_of_V_at_u0(self, V):
        """
		Untested.
		Inverse of V(vdl).
		"""
        return interp.interp_with_smooth_extrap(V,
                                                self.UV_u0[1],
                                                self.uvdl_u0[1],
                                                mu=self.mu)
예제 #5
0
    def V_of_r_at_u0(self, r):
        """
		Evaluate the function V(r) at u0 by interpolating from stored reference values.
		Smooth interpolation and extrapolation handled by interpolators module.
		Setting mu to nan because this should not be extrapolated.
		"""
        return interp.interp_with_smooth_extrap(r,
                                                self.r,
                                                self.V_u0,
                                                mu=np.nan)