Thread: Reverse Osmosis - Simulation written in Java

Results 1 to 10 of 10
  1. #1 Reverse Osmosis - Simulation written in Java 
    Registered Member
    Alpi's Avatar
    Join Date
    Jun 2011
    Age
    28
    Posts
    1,191
    Thanks given
    212
    Thanks received
    285
    Rep Power
    148
    So basically I am writing a program up that will simulate reverse osmosis and its actual usefulness in society. I have a GUI so far, but yet to write the actual engine of the simulation.

    Here is what the GUI looks like:



    Top white panel = Variables Panel
    Middle Grey panel = where the actual simulation will occur
    Bottom black panel = Java Console

    Then heres the dropdown:



    Here is how you can initialize variables:



    and here to show it actually updates on the variable panel:



    As of now, I dont actually have it check if all variables are initialized before I run the simulation because I can't run the simulation yet, but still. As this is my first GUI with a purpose, I am quite proud of it considering the sweat I've gone through to get it to look like this. I will be sure to update with more media as I add more and progress more into the engine part of this project.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Pilldom's Avatar
    Join Date
    Sep 2007
    Posts
    1,298
    Thanks given
    24
    Thanks received
    221
    Rep Power
    164
    So it runs a simulation of how osmosis would occur within a cell, given a set of parameters?
    Attached image
    Reply With Quote  
     

  3. #3  
    only shallow

    Join Date
    Apr 2011
    Age
    26
    Posts
    1
    Thanks given
    2,907
    Thanks received
    413
    Rep Power
    0
    GUI doesn't look that good imo but good luck.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Alpi's Avatar
    Join Date
    Jun 2011
    Age
    28
    Posts
    1,191
    Thanks given
    212
    Thanks received
    285
    Rep Power
    148
    Quote Originally Posted by Pilldom View Post
    So it runs a simulation of how osmosis would occur within a cell, given a set of parameters?
    No, Osmosis is getting something into a solution, Reverse Osmosis is getting something out of a solution. Reverse Osmosis Filters are common for water filters. I will be simulating a water filter that Los Alamos National Labs use.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Pilldom's Avatar
    Join Date
    Sep 2007
    Posts
    1,298
    Thanks given
    24
    Thanks received
    221
    Rep Power
    164
    Ah I see. Good luck.
    Attached image
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jan 2013
    Posts
    85
    Thanks given
    3
    Thanks received
    4
    Rep Power
    24
    Quote Originally Posted by RiiPiiNFtW View Post
    No, Osmosis is getting something into a solution, Reverse Osmosis is getting something out of a solution. Reverse Osmosis Filters are common for water filters. I will be simulating a water filter that Los Alamos National Labs use.
    I thought osmosis was transport of water specifically?
    Reply With Quote  
     

  7. #7  
    ¯̿ ̿|̿ ̿ |̶ ̶ ̶ ̶| |̶͇̿ ̶͇̿ ͇̿ Haskelle

    Join Date
    Nov 2007
    Age
    29
    Posts
    1,227
    Thanks given
    329
    Thanks received
    517
    Rep Power
    1133
    check out NetLogo Home Page for simulations. I've used it before. it's kinda ocol
    Monads are just Monoids in the category of Endofunctors. What is the problem?
    Costate Comonad Coalgebra is equivalent of Java's member variable update technology for haskell. Problem?
    Reply With Quote  
     

  8. #8  
    Registered Member
    Alpi's Avatar
    Join Date
    Jun 2011
    Age
    28
    Posts
    1,191
    Thanks given
    212
    Thanks received
    285
    Rep Power
    148
    Quote Originally Posted by Cups View Post
    check out NetLogo Home Page for simulations. I've used it before. it's kinda ocol
    I know about it, as my teacher who is my leader in this competition uses it. I just felt I should use Java to help me learn more. My philosophy is to fully learn 1 program before another.
    Reply With Quote  
     

  9. #9  
    ¯̿ ̿|̿ ̿ |̶ ̶ ̶ ̶| |̶͇̿ ̶͇̿ ͇̿ Haskelle

    Join Date
    Nov 2007
    Age
    29
    Posts
    1,227
    Thanks given
    329
    Thanks received
    517
    Rep Power
    1133
    Quote Originally Posted by RiiPiiNFtW View Post
    I know about it, as my teacher who is my leader in this competition uses it. I just felt I should use Java to help me learn more. My philosophy is to fully learn 1 program before another.
    your philosophy sucks. NetLogo is a Domain-specific language. It's made for simulation. Java is a generic language. It's made for everything. Choosing that language (/tools ) that fits the goal is half the work as a programmer. If I'm going to do something like math, I am not going to write my own libraries, I fire up matlab, geogebra or Mathematica. I'm not saying you HAVE to do this, but if the goal is just to create a simulation your approach is overkill.

    But hey that's my opinion.
    Monads are just Monoids in the category of Endofunctors. What is the problem?
    Costate Comonad Coalgebra is equivalent of Java's member variable update technology for haskell. Problem?
    Reply With Quote  
     

  10. #10  
    Registered Member
    Alpi's Avatar
    Join Date
    Jun 2011
    Age
    28
    Posts
    1,191
    Thanks given
    212
    Thanks received
    285
    Rep Power
    148
    Quote Originally Posted by Cups View Post
    your philosophy sucks. NetLogo is a Domain-specific language. It's made for simulation. Java is a generic language. It's made for everything. Choosing that language (/tools ) that fits the goal is half the work as a programmer. If I'm going to do something like math, I am not going to write my own libraries, I fire up matlab, geogebra or Mathematica. I'm not saying you HAVE to do this, but if the goal is just to create a simulation your approach is overkill.

    But hey that's my opinion.
    Meh, I see this as a good learning experience, especially since im writing it all from scratch.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 5
    Last Post: 09-28-2011, 06:39 AM
  2. Replies: 22
    Last Post: 01-15-2011, 06:12 AM
  3. .NET Server written in Java?!
    By Colby in forum RS2 Server
    Replies: 2
    Last Post: 07-09-2009, 09:24 AM
  4. Proof that runescape is written in Java.
    By Hotyute in forum RS 503+ Client & Server
    Replies: 36
    Last Post: 05-31-2009, 05:55 PM
  5. Command Maker purely written in java (beta)
    By quest rs in forum Tools
    Replies: 7
    Last Post: 03-02-2008, 01:39 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •