Osmosis in a 2D Gas JS Model
written by
Kostas Papamichalis
The Osmosis in 2D Gas JavaScript Model shows a hard disk gas in a container with a semi-permeable barrier in which N particles are moving. The particles are discriminated into two classes: The "red" particles which cannot pass through the barrier and they are always trapped in chamber D1 and the "blue" particles which can pass through the barrier and move everywhere in the container. The number of "red" particles is n_r=N/3 and that of the "blues" is n_b=2N/3. At time t=0, there are equal numbers of particles in D1 an D2: N/3 "reds" and N/6 "blues" in D1 and N/2 "blues" in D2. Hence the pressure of the gas in each chamber is the same. But, because of the inability of the red particles to pass through the barrier, the number of particles in D1 gradually increases, and that of the particles in D2 decreases. As a result, the pressure in D1 increases with time, and the pressure in D2 decreases by the same amount. This process continues until the system reaches in a state of dynamical equilibrium, achieved when the number of "blue" particles is the same in both chambers. In the state of dynamical equilibrium, the total numbers of particles in each chamber are different. This implies that the final pressure in D1 is different than the pressure in D2; their difference is defined as the osmotic pressure of the system.
The simulation records the number of particles in each chamber, at a specific sequence of time moments, and calculates the corresponding pressures, in real time. In parallel, for every time-step of the simulation, the program calculates the theoretical values of the particles' numbers and the pressures in D1 and D2 derived by the theoretical model, and the corresponding graphs are composed.
ComPADRE is beta testing Citation Styles!
Record Link
<a href="https://www.compadre.org/portal/items/detail.cfm?ID=15554">Papamichalis, Kostas. Osmosis in a 2D Gas JS Model. September 9, 2020.</a>
AIP Format
K. Papamichalis, (2020), WWW Document, (https://www.compadre.org/Repository/document/ServeFile.cfm?ID=15554&DocID=5401).
AJP/PRST-PER
K. Papamichalis, Osmosis in a 2D Gas JS Model (2020), <https://www.compadre.org/Repository/document/ServeFile.cfm?ID=15554&DocID=5401>.
APA Format
Papamichalis, K. (2020, September 9). Osmosis in a 2D Gas JS Model. Retrieved November 4, 2024, from https://www.compadre.org/Repository/document/ServeFile.cfm?ID=15554&DocID=5401
Chicago Format
Papamichalis, Kostas. Osmosis in a 2D Gas JS Model. September 9, 2020. https://www.compadre.org/Repository/document/ServeFile.cfm?ID=15554&DocID=5401 (accessed 4 November 2024).
MLA Format
Papamichalis, Kostas. Osmosis in a 2D Gas JS Model. 2020. 9 Sep. 2020. 4 Nov. 2024 <https://www.compadre.org/Repository/document/ServeFile.cfm?ID=15554&DocID=5401>.
BibTeX Export Format
@misc{
Author = "Kostas Papamichalis",
Title = {Osmosis in a 2D Gas JS Model},
Volume = {2024},
Number = {4 November 2024},
Month = {September 9, 2020},
Year = {2020}
}
Refer Export Format
%A Kostas Papamichalis %T Osmosis in a 2D Gas JS Model %D September 9, 2020 %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=15554&DocID=5401 %O text/html
EndNote Export Format
%0 Electronic Source %A Papamichalis, Kostas %D September 9, 2020 %T Osmosis in a 2D Gas JS Model %V 2024 %N 4 November 2024 %8 September 9, 2020 %9 text/html %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=15554&DocID=5401 Disclaimer: ComPADRE offers citation styles as a guide only. We cannot offer interpretations about citations as this is an automated procedure. Please refer to the style manuals in the Citation Source Information area for clarifications.
Citation Source Information
The AIP Style presented is based on information from the AIP Style Manual. The APA Style presented is based on information from APA Style.org: Electronic References. The Chicago Style presented is based on information from Examples of Chicago-Style Documentation. The MLA Style presented is based on information from the MLA FAQ. Osmosis in a 2D Gas JS Model:
Is Based On
Easy Java Simulations Modeling and Authoring Tool
Use the Easy Java Simulations Modeling and Authoring Tool to edit and to explore the source code for the Osmosis in a 2-dimensional gas solution. relation by Wolfgang ChristianKnow of another related resource? Login to relate this resource to it. |
ContributeRelated MaterialsSimilar Materials |