Skip to content

2lpt for multi fluid #12

@energy-berkeley

Description

@energy-berkeley

For the problem in code line 214 # FIXME: Add 2LPT. According to Vlah, the 2LPT of CDM is the only,

Isn't it already fixed by:

    if order == 2:
        source1[...] /= Omega_tot
        source1[...] /= pt.D1(a) # goto z=0

        source2 = lpt2source(source1)

        for spname, sp in species.items():
            DX2 = lpt1(source2, Q)
            sp.S[...] += pt.D2(a) * DX2
            sp.V[...] += a ** 2 * pt.f2(a) * pt.E(a) * pt.D2(a) * DX2

    state = StateVector(self.cosmology, species, self.pm.comm)
    state.a['S'] = a
    state.a['P'] = a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions