<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Eccentricity (Volume Conservation)
Setup
Let's first make sure we have the latest version of PHOEBE 2.0 installed. (You can comment out this line if you don't use pip for your installation or don't want to update to the latest release).
Step1:  As always, let's do imports and initialize a logger and a new Bundle.  See Building a System for more details.
Step2:  Relevant Parameters
Step3:  Relevant Constraints
Step4:  Influence on Meshes (potentials, volumes)
Step5:  Influence on Radial Velocities
Step6:  Influence on Light Curves (fluxes)
<ASSISTANT_TASK:>
Python Code:
!pip install -I "phoebe>=2.0,<2.1"
Explanation: Eccentricity (Volume Conservation)
Setup
Let's first make sure we have the latest version of PHOEBE 2.0 installed. (You can comment out this line if you don't use pip for your installation or don't want to update to the latest release).
End of explanation
%matplotlib inline
import phoebe
from phoebe import u # units
import numpy as np
import matplotlib.pyplot as plt
logger = phoebe.logger()
b = phoebe.default_binary()
Explanation: As always, let's do imports and initialize a logger and a new Bundle.  See Building a System for more details.
End of explanation
print b.get(qualifier='ecc')
print b.get(qualifier='ecosw', context='component')
print b.get(qualifier='esinw', context='component')
Explanation: Relevant Parameters
End of explanation
b.filter(qualifier='pot', context='constraint')
print b.get(qualifier='pot', component='primary', context='constraint')
print b.get(qualifier='ecosw', context='constraint')
print b.get(qualifier='esinw', context='constraint')
Explanation: Relevant Constraints
End of explanation
b.add_dataset('mesh', times=np.linspace(0,1,11))
b.set_value('ecc', 0.2)
b.run_compute()
print b['pot@primary@model']
ax, artists = b['mesh01'].plot(x='times', y='pot')
print b['rpole@primary@model']
axs, artists = b['mesh01'].plot(x='times', y='rpole')
print b['volume@primary@model']
ax, artists = b['mesh01'].plot(x='times', y='volume')
b.remove_dataset('mesh01')
Explanation: Influence on Meshes (potentials, volumes)
End of explanation
b.add_dataset('rv', times=np.linspace(0,1,51))
b.run_compute()
axs, artists = b.plot()
b.remove_dataset('rv01')
Explanation: Influence on Radial Velocities
End of explanation
b.add_dataset('lc', times=np.linspace(0,1,51))
b.run_compute()
axs, artists = b.plot()
Explanation: Influence on Light Curves (fluxes)
End of explanation
<END_TASK>