Skip to content

Commit

Permalink
Update for exercise 2 matter evolution
Browse files Browse the repository at this point in the history
  • Loading branch information
KAClough committed Jun 24, 2024
1 parent d7d427c commit d3be88c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/mymatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@

# params for matter
scalar_mu = 1.0 # this is an inverse length scale related to the scalar compton wavelength
scalar_lambda = 0.0 # dimensionless in geometric units

# The scalar potential
def V_of_u(u) :
return 0.5 * scalar_mu * scalar_mu * u * u
return 0.5 * scalar_mu * scalar_mu * u * u * (1.0 + 0.5 * scalar_lambda * u * u)

# Derivative of scalar potential
def dVdu(u) :
return scalar_mu * scalar_mu * u
return scalar_mu * scalar_mu * u * (1.0 + scalar_lambda * u * u)

def get_matter_rhs(u, v, dudr, d2udr2, r_gamma_UU, em4phi,
dphidr, K, lapse, dlapsedr, r_conformal_chris) :
Expand Down

0 comments on commit d3be88c

Please sign in to comment.