Exemplo n.º 1
0
    def __init__(self, targetN=10000, cluster_model="Henon", mass_ratio=0, size_eta_parameter=0.3333333,
        imf="single mass", angular_momentum_signs="xx", fraction_of_max_rot_energy=1,
        OsipkovMerritt_anisotropy_radius_r0=999,cutoff_radius_halfmass_radius=20,physical_radius=1| units.parsec,
        distance=20 | nbody_system.length,orbital_energy=0,orbital_angular_momentum=0,seed=123456,
        convert_to_physical=False):
        
        LiteratureReferencesMixIn.__init__(self)

        self._bin_path = os.path.dirname(os.path.abspath(__file__))
        self._particles=None
        self.convert_to_physical=convert_to_physical
        self._exec="mameclot_worker"
        
        self.targetN=targetN
        self.cluster_model=cluster_model
        self.mass_ratio=mass_ratio
        self.size_eta_parameter=size_eta_parameter
        self.imf=imf
        self.angular_momentum_signs=angular_momentum_signs
        self.fraction_of_max_rot_energy=fraction_of_max_rot_energy
        self.OsipkovMerritt_anisotropy_radius_r0=OsipkovMerritt_anisotropy_radius_r0
        self.cutoff_radius_halfmass_radius=cutoff_radius_halfmass_radius
        self.physical_radius=physical_radius
        self.distance=distance
        self.orbital_energy=orbital_energy
        self.orbital_angular_momentum=orbital_angular_momentum
        self.seed=seed        
Exemplo n.º 2
0
    def __init__(self, *args, **kwargs):
        LiteratureReferencesMixIn.__init__(self)
        kwargs["M"] = 1
        kwargs["G"] = 1
        kwargs["rv"] = 1

        self.model = limepy(*args, **kwargs)
        self.kwargs = kwargs
Exemplo n.º 3
0
    def __init__(self, *args, **kwargs):
        LiteratureReferencesMixIn.__init__(self)
        kwargs["scale"] = True
        kwargs["MS"] = 1
        kwargs["GS"] = 1
        kwargs["RS"] = 1
        kwargs["scale_radius"] = "rv"

        self.model = limepy(*args, **kwargs)
        self.kwargs = kwargs
Exemplo n.º 4
0
    def __init__(self, *args, **kwargs):
        LiteratureReferencesMixIn.__init__(self)
        kwargs["scale"] = True
        kwargs["MS"] = 1
        kwargs["GS"] = 1
        kwargs["RS"] = 1
        kwargs["scale_radius"] = "rv"

        self.model = limepy(*args, **kwargs)
        self.kwargs = kwargs
Exemplo n.º 5
0
    def __init__(
        self,
        targetN=10000,
        cluster_model="Henon",
        mass_ratio=0,
        size_eta_parameter=0.3333333,
        imf="single mass",
        angular_momentum_signs="xx",
        fraction_of_max_rot_energy=1,
        OsipkovMerritt_anisotropy_radius_r0=999,
        cutoff_radius_halfmass_radius=20,
        physical_radius=1 | units.parsec,
        distance=20 | nbody_system.length,
        orbital_energy=0,
        orbital_angular_momentum=0,
        seed=123456,
        convert_to_physical=False,
    ):

        LiteratureReferencesMixIn.__init__(self)

        self._bin_path = os.path.dirname(os.path.abspath(__file__))
        self._particles = None
        self.convert_to_physical = convert_to_physical
        self._exec = "mameclot_worker"

        self.targetN = targetN
        self.cluster_model = cluster_model
        self.mass_ratio = mass_ratio
        self.size_eta_parameter = size_eta_parameter
        self.imf = imf
        self.angular_momentum_signs = angular_momentum_signs
        self.fraction_of_max_rot_energy = fraction_of_max_rot_energy
        self.OsipkovMerritt_anisotropy_radius_r0 = OsipkovMerritt_anisotropy_radius_r0
        self.cutoff_radius_halfmass_radius = cutoff_radius_halfmass_radius
        self.physical_radius = physical_radius
        self.distance = distance
        self.orbital_energy = orbital_energy
        self.orbital_angular_momentum = orbital_angular_momentum
        self.seed = seed
Exemplo n.º 6
0
 def __init__(self, **keyword_arguments):
     CodeInterface.__init__(self,
                            name_of_the_worker="petar_worker",
                            **keyword_arguments)
     LiteratureReferencesMixIn.__init__(self)
Exemplo n.º 7
0
 def __init__(self, **keyword_arguments):
     CodeInterface.__init__(self,
                            name_of_the_worker='agama_worker',
                            **keyword_arguments),
     LiteratureReferencesMixIn.__init__(self)