Giter Site home page Giter Site logo

1-lps-deprecated's Introduction

aguaclara

Pypi Version Documentation Build Status Code Coverage

aguaclara is a Python package developed by AguaClara Cornell and AguaClara Reach for designing and performing research on AguaClara water treatment plants. The package has several main functionalities:

  • DESIGN of AguaClara water treatment plant components
  • MODELING of physical, chemical, and hydraulic processes in water treatment
  • PLANNING of experimental setup for water treatment research
  • ANALYSIS of data collected by ProCoDA (process control and data acquisition tool)

Installing

The aguaclara package can be installed from Pypi by running the following command in the command line:

pip install aguaclara

To upgrade an existing installation, run

pip install aguaclara --upgrade

Using aguaclara

aguaclara's main functionalities come from several sub-packages.

  1. Core: fundamental physical, chemical, and hydraulic functions and values
  2. Design: modules for designing components of an AguaClara water treatment plant
  3. Research: modules for process modeling, experimental design, and data analysis in AguaClara research

To use aguaclara's registry of scientific units (based on the Pint package), use from aguaclara.core.units import u. Any other function or value in a sub-package can be accessed by importing the package itself:

Example Usage: Design

import aguaclara as ac
from aguaclara.core.units import u

# Design a water treatment plant
plant = ac.Plant(
    q = 40 * u.L / u.s,
    cdc = ac.CDC(coag_type = 'pacl'),
    floc = ac.Flocculator(hl = 40 * u.cm),
    sed = ac.Sedimentor(temp = 20 * u.degC),
    filter = ac.Filter(q = 20 * u.L / u.s)
)

Example Usage: Core

# continued from Example Usage: Design

# Model physical, chemical, and hydraulic properties 
cdc = plant.cdc
coag_tube_reynolds_number = ac.re_pipe(
    FlowRate = cdc.coag_q_max,
    Diam = cdc.coag_tube_id,
    Nu = cdc.coag_nu(cdc.coag_stock_conc, cdc.coag_type)
)

Example Usage: Research

import aguaclara as ac
from aguaclara.core.units import u
import matplotlib.pyplot as plt

# Plan a research experiment
reactor = ac.Variable_C_Stock(
    Q_sys = 2 * u.mL / u.s, 
    C_sys = 1.4 * u.mg / u.L, 
    Q_stock = 0.01 * u.mL / u.s
)
C_stock_PACl = reactor.C_stock()

# Visualize and analyze ProCoDA data
ac.iplot_columns(
    path = "https://raw.githubusercontent.com/AguaClara/team_resources/master/Data/datalog%206-14-2018.xls", 
    columns = [3, 4], 
    x_axis = 0
)
plt.ylabel("Turbidity (NTU)")
plt.xlabel("Time (hr)")
plt.legend(("Influent", "Effluent"))

The package is still undergoing rapid development. As it becomes more stable, a user guide will be written with more detailed tutorials. At the moment, you can find some more examples in specific pages of the API reference.

Contributing

Bug reports, features requests, documentation updates, and any other enhancements are welcome! To suggest a change, make an issue in the aguaclara Github repository.

To contribute to the package as a developer, refer to the Developer Guide.

1-lps-deprecated's People

Contributors

fernandomerinom avatar nataliemottl avatar sidneylok avatar sungminkim2795 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

1-lps-deprecated's Issues

DeFrees Lab Drain for 1 LPS

We checked with Paul and set up the drain and secured it 2.27. However, there is minor leaking at the lower fernco that needs to be tightened.

Building a lab bench

The DeFrees lab currently doesn't have a lab bench set up for our team. We are working with Paul to get this set up so we can run tests with turbidimeters and pumps on the plant later on in the semester.

cap for EStaRS

Machining a piece of flat PVC so that is the same diameter as the pipe and has a smooth surface for a water seal with a Fernco fitting will not be easy. An alternative approach is to do the following.

  1. Cut a ring of PVC pipe that is about 5 cm long.
  2. Glue a flat piece of PVC to the PVC ring
  3. Use a fernco to attach the ring to the top of the EStaRS filter

The challenging step here is gluing the flat piece of PVC to the PVC pipe ring. The top of the PVC ring where the plate will be attached needs to be reasonably smooth and flat. Tape a piece of sandpaper to a table top and use that as a sanding surface to make the ring flat. Then drill holes through the flat plate and into the ring every inch or two for these screws with a clearance hole in the PVC sheet and a hole the right diameter for thread formation in the PVC ring.

Given that the hole distribution won't be uniform, mark the plate and the ring for alignment and drill all of the holes without allowing the pieces to change position. Then prepare to glue and be set up to drive all of the screws in a matter of a minute before the glue hardens.

Github Issues Check #2

See the rubric that was shared with you earlier in the semester for your Team's grade.

-Progress visible through Issues; comments by the team is easy to follow
-Feel free to close Issues no longer applicable (Issues check 1)
-I know that 1LPS has pictures! Documenting apparatus setup and putting it into their respective Issues/documented progress would be a huge plus!

-Next Issues check will be after Spring Break
-Symposium grade has also been updated
-Feel free to contact me with questions!

Github Issues Check #3

Hi 1LPS,
I did an Issues check for your team today, but since no significant Issues have been added since the previous check, your team will not be graded for this check. (I know the team has had setbacks for the past few weeks!) For clarification, other teams are getting grades for this check, but your team will not. 1LPS will have a total of 4 checks before the end of the semester, whereas most other teams will have received 5 checks.

Please remember to update your Issues before the next check. I look forward to seeing the experiments that the team can finally run!

-Next Issues check will be in 2 weeks!
-Feel free to contact me with questions!

Drain check before operation

Please check with Paul to ensure before running the plant to make sure that the plumbing is okay and that the drain is able to handle the flow.

Also determine whether the sludge can go down the drain or if it must be disposed of in a better way.

Github Issues Check #1

See the rubric that was shared with you earlier in the semester for your Team's grade.

-Good organization for GIthub issues in general
-Good incorporation of diagram/picture of lever arm
-Could incorporate a more thorough explanation of the problem/task at hand and the approach to solving it
-Don’t forget to update the issues for the month -- what’s the progress for each of the tasks listed in February, since we have already reached the end of the month?
-Don’t forget to mark down meetings with RA/Monroe
-Encourage all team members to participate on Github!
-Please incorporate suggestions into future Github usage
-The next Github issues check will be in 2 weeks!

Delay in Testing 1 LPS with water

Paul and crew noticed that something was wrong with the drain yesterday (3.5) and told us today that we cannot drain water until they figure out what is wrong with the drainage system. There has been a water elevation roughly for a month but everyone thought it was okay until this week. There seems to be another water source that is draining into the drain since both 1 LPS and Katie Adler's flume has not drained recently. Paul and crew are pumping out the water today and tomorrow and we will check back with him on Thursday to know if the issue can be resolved in the next week.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.