Skip to content

Commit

Permalink
Consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
zjwegert committed Apr 4, 2024
1 parent d1633a9 commit dbb13b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/_dev/Paper_scripts/therm_comp_serial.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ function main()
J(u,φ,dΩ,dΓ_N) = ((I φ)*κ*(u)(u))dΩ
dJ(q,u,φ,dΩ,dΓ_N) = *(u)(u)*q*(DH φ)*(norm (φ)))dΩ
vol_D = sum((1)dΩ)
C(u,φ,dΩ,dΓ_N) = (((ρ φ) - vf)/vol_D)dΩ
dC(q,u,φ,dΩ,dΓ_N) = (-1/vol_D*q*(DH φ)*(norm (φ)))dΩ
pcfs = PDEConstrainedFunctionals(J,[C],state_map,
analytic_dJ=dJ,analytic_dC=[dC])
C1(u,φ,dΩ,dΓ_N) = (((ρ φ) - vf)/vol_D)dΩ
dC1(q,u,φ,dΩ,dΓ_N) = (-1/vol_D*q*(DH φ)*(norm (φ)))dΩ
pcfs = PDEConstrainedFunctionals(J,[C1],state_map,
analytic_dJ=dJ,analytic_dC=[dC1])
# Velocity extension
α = 4*maximum(get_el_Δ(model))
a_hilb(p,q) =^2*(p)(q) + p*q)dΩ
Expand Down

0 comments on commit dbb13b0

Please sign in to comment.