<jupyter_start><jupyter_text>1 Plant - No Nitrogen<jupyter_code># a = Aquaponics('hydroplant', kswitch=100)
# m = a.get_model()

# tf = 45
# steps = tf * 10 + 1
# m.time = np.linspace(0,tf,steps)

# a.solve(glamdring=True, imode=imode, disp=False)
# %matplotlib inline
# plt.figure(figsize=(12,9))
# ax = plt.subplot(311)
# plt.plot(m.time, a.w, label='Dry Weight')
# plt.grid()
# plt.legend()

# plt.subplot(312, sharex=ax)
# plt.plot(m.time, a.dNup, label='dNup')
# plt.grid()
# plt.legend()

# plt.subplot(313, sharex=ax)
# plt.plot(m.time, a.cN, label='cN')
# plt.grid()
# plt.legend()


# plt.xlim(0, tf)
# plt.xlabel('Time (days)')<jupyter_output><empty_output><jupyter_text>1 Plant - Nitrogen<jupyter_code>a = Aquaponics('hydroplant', 'hydronitrogen', T0=20, N0=1.1, kswitch=100)
m = a.get_model()

tf = 45
steps = tf * 10 + 1
m.time = np.linspace(0,tf,steps)

a.solve(glamdring=True, imode=imode, disp=False)
%matplotlib inline
plt.figure(figsize=(12,9))
ax = plt.subplot(311)
plt.plot(m.time, a.w, label='Dry Weight')
plt.grid()
plt.legend()
plt.ylabel('Plant Weight (g)')

plt.subplot(312, sharex=ax)
plt.plot(m.time, a.dNup, label='dNup')
# plt.plot(m.time, a.dNadd, label='dNadd')
plt.grid()
plt.legend()
plt.ylabel('Nitrogen Changes (mmol / day)')

plt.subplot(313, sharex=ax)
plt.plot(m.time, a.Nup, label='Nup')
plt.plot(m.time, a.cN, label='cN')
plt.grid()
plt.legend()
plt.ylabel('Nitrogen Pool (mmol)')


plt.xlim(0, tf)
plt.xlabel('Time (days)')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.21084337349397592, 'fraction_numerical': 0.03480589022757698, 'mean_word_length': 5.5, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '365022', 'license': 'Apache-2.0', 'n_tokens_mistral': 744, 'n_tokens_neox': 697, 'n_words': 114, 'path': 'aquaponics-master/notebooks/Hydroponics/Simulation experiments max harvest.ipynb', 'repo_name': 'JunwenLIU/Aquaponics_system_Simulink', 'size': '1494'}