Surface Tension#
\[σ = a + b\cdot T + c\cdot T^2 + d\cdot T^3 \tag{11}\]
where
Var
Description
σ
is the surface tension liquid water N/m
T
is temperature of the water °C
a
is 0.075652711
b
is -0.00013936956
c
is -3.0842103e-07
d
is 2.7588435e-10
Show/Hide Code 11surf_tens.py
import altair as alt
import numpy as np
import pandas as pd
T = np.linspace(0, 30, 31)
sig = 0.075652711 - 0.00013936956 * T - 3.0842103e-07 * np.power(T, 2) + \
2.7588435e-10 * np.power(T, 3)
source = pd.DataFrame({
'Temperature °C': T,
'Surface Tension N/m': sig
})
chart = alt.Chart(source).mark_line().encode(
x=alt.X('Temperature °C', axis=alt.Axis(title='Temperature °C')),
y=alt.Y('Surface Tension N/m', axis=alt.Axis(title='Surface Tension N/m'),
scale=alt.Scale(domain=(0.0710, 0.0760))
),
tooltip=['Temperature °C', alt.Tooltip('Surface Tension N/m', format='.5f')]
).properties(
title={
"text": "Surface Tension of Saturated Liquid Water",
"color": "#282828"
}
)
chart.save('surf_tens.html')