suggestions for DSMC particle storage needed
- From: phaccount@xxxxxxxxxxxx
- Date: 31 Oct 2005 06:24:12 -0800
Hello group.
I am writing a DSMC (Direct Simulation Monte Carlo) code in f95 using
ifort. The code will be launching particles, following them, and they
will eventually be lost.
I was thinking of implementing a linked list for particle storage,
allocating and de-allocating as needed. I am aware of discussions
regarding the inefficiencies in memory allocation, and see below
regarding that.
I am curious however, whether the de-allocation of particles is going
to leave gaps of unused memory in he physical memory, and that my
memory requiriements will continue to grow during the simulation even
though I am releasing it.
I think my question translates into: what is a good memory management
scheme for Monte-Carlo type simulations where I will have a decent
turn-over of particles? I am very new to this area, and pointers to
literature will be appreciated.
Regarding the inefficies of linked lists, if that were an issue for me,
I was thinking of having an "internal memory manager" -- much simpler
than it sounds. Basically, I would allocated memory for, say 1000
particles at a time. That way I would have a heap of 1000 pointers,
and use that until I run out of them. When I do run out of them, I go
back again and ask for 1000 more. I really have not thought this
through, nor have implemented it. Actually I am fairly new to f95 (I'
ve been using IDL), and my understanding of pointers may not be 100%
accurate.
Many thanks,
Mirko
.
- Follow-Ups:
- Re: suggestions for DSMC particle storage needed
- From: Thomas Koenig
- Re: suggestions for DSMC particle storage needed
- From: phaccount
- Re: suggestions for DSMC particle storage needed
- Prev by Date: Re: IMPLICIT NONE (F2k8+/-)
- Next by Date: Re: Read/Write Matlab files in fortran
- Previous by thread: ordinate a sequences of number
- Next by thread: Re: suggestions for DSMC particle storage needed
- Index(es):
Relevant Pages
|