[CSC 330] CSC 330 - Diffusion Project Question
Andrew J. Pounds
pounds_aj at mercer.edu
Sat Oct 29 19:08:35 EDT 2022
On 10/29/22 14:20, wrote:
>
> Hey Dr. Pounds,
>
> I was working on the project, and I was confused on the difference
> between maxSize and room_dimension. Aren’t they supposed to be the
> same thing given that the array is the size/dimension of one side. In
> your Java example I saw that the room_dimension was half the size of
> the maxSize variable. Would you please clarify the reason for this?
>
> Thanks,
>
>
So the room dimension is the actual physical size of each dimension of
the room in meters. In this scenario that value if 5 meters. We are
dealing with a room that is 5 meters long, 5 meters wide, and 5 meters high.
The maxsize is the number of cubes that are used in each dimension
through which our gas will diffuse. These two constants, as well as the
molecular velocity of the gas particles at the given temperature and the
coefficient of diffusion (which is also a property of the diffusing
molecules) determine the values of all the other variables used in the
propagation.
If you had a with the room dimension of 5 meters and the value or
maxsize was 5 then you would have 125 cubes in your room - with each
cube being 1 cubic meter in size. If we double msize to 10, you now
have 1000 cubes in your room - but the actual size of the room is the
same - you are just using more cubes in the diffusion model to get a
more accurate result.
Does that help?
--
*/Andrew J. Pounds, Ph.D./*
/Professor of Chemistry and Computer Science/
/Director of the Computational Science Program/
/Mercer University, Macon, GA 31207 (478) 301-5627/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://theochem.mercer.edu/pipermail/csc330/attachments/20221029/167e3e89/attachment.html>
More information about the csc330
mailing list