Peano
Loading...
Searching...
No Matches
smltools.py File Reference

Go to the source code of this file.

Namespaces

namespace  exaparty
 This file is part of the ExaParty project.
 
namespace  exaparty.api
 This file is part of the ExaParty project.
 
namespace  exaparty.api.sphtools
 This file is part of the ExaParty project.
 
namespace  exaparty.api.sphtools.smltools
 Tools related to the (computation of) the smoothing length.
 

Functions

 exaparty.api.sphtools.smltools._neighbour_loop_vectorized (ndarray r, float h, str kernel, int ndim)
 A neighbour interaction loop used to determine the smoothing lengths.
 
 exaparty.api.sphtools.smltools._neighbour_loop (ndarray r, float h, str kernel, int ndim)
 A neighbour interaction loop used to determine the smoothing lengths.
 
 exaparty.api.sphtools.smltools.find_smoothing_length (ndarray xp, ndarray xn, str kernel, float eta, float h_tolerance, int ndim, bool verbose=False)
 Determine the smoothing length of a particle with coordinates xp and neighbours with positions xn.
 
 exaparty.api.sphtools.smltools.eta_from_number_of_neighbours (float N, str kernel, int ndim)
 Compute the resolution eta from a given (approximate) number of neighbours.
 
 exaparty.api.sphtools.smltools.number_of_neighbours_from_eta (float eta, str kernel, int ndim)
 Compute the (approximate) number of neighbours from a given resolution eta.