CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > CFX

estimating RAM

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 12, 2002, 07:43
Default estimating RAM
  #1
Farid
Guest
 
Posts: n/a
Hello CFX familly

I ve read that 1 Mo RAM is necessary evry 1 k Cells for a computation with standard k-e model.

How can memory be estimated more precisely ? For instance, function of number of solved equation, simple or double precision, and so on...

Thanks

  Reply With Quote

Old   August 12, 2002, 09:36
Default Re: estimating RAM
  #2
Robin
Guest
 
Posts: n/a
Hi Farid,

The amount of memory required for a given run will depend on many factors: boundary conditions, physical models, advection scheme, element type and connectivity, etc., so it is impossible to know exactly how much memory is required until the assembly is done. But there are a few rules of thumb you can use to get an estimate.

For one, if you run a predominantly tetrahedral element mesh, you will require ~3x more RAM than for a hex mesh with the same number of nodes. This is related to the increased connectivity between nodes in a tet mesh.

If you have a look near the top of your .out file, you will see that the solver reports detailed information regarding memory allocation in the section titled Memory Usage Information. The primary number you want to concern yourself with is the number of words per node (1 word = 4 bytes). A typical value for a tet mesh with second order high resolution advection scheme and the k-e turbulence model is about 125 words/node, which translates to 500 bytes/node or .5 MB/1k nodes. For a given selection of physics and models, and a specific type of mesh, this will remain constant and can provide a means for estimating memory usage.

Keep these things in mind as you run the solver and you should bcome familiar with the memory requirements.

Regards, Robin
  Reply With Quote

Old   August 12, 2002, 16:25
Default Re: estimating RAM
  #3
Astrid
Guest
 
Posts: n/a
Robin,

I have a related question. I have a grid that consists of a tetmesh (3.5M elements), a hex mesh (1.2 M elements), a tet mesh (1.4 M elements), and finally a hex mesh (0.28 M elements). All connected with 3 GGI's.

I use CFX 5.5.1 for this, with air as an ideal gas, two equation turbulence model, starting with upwind, nothing fancy yet. The case starts and gives a list for memory requirements. A total of 1.4Gb is required. Then I get an memory allocation error.

I start the case on a P4-WinNT with 1Gb memory and 1 Gb virual memory. The PC is supposed to be the master in a parallel run with 4 similar PC's. Thus total 5 Gb. That should be sufficient, shouldn't it, or is the 1 Gb of the master limiting in this case? Or is it related to the use of hex meshes? In other words, can CFX 5 run in parallel with Hex meshes? I suppose so.

Astrid
  Reply With Quote

Old   August 12, 2002, 17:06
Default Re: estimating RAM
  #4
Robin
Guest
 
Posts: n/a
Hi Astrid,

There are no specific parallel limitations regarding mesh type or GGI. All of these should work just fine.

When you run the job, the first memory requirements reported are for the partitioner, which is run in serial on the master. After the partioner is run, you should get memory allocation information for each partition on each system.

Did the memory error occur in the partioner or the solver?

Robin
  Reply With Quote

Old   August 12, 2002, 18:00
Default Re: estimating RAM
  #5
Astrid
Guest
 
Posts: n/a
The error occured in the partitioner. Apparently for that serial process not enough memory is available. Do you have any suggestion for the advanced memory allocation during partitioning?

I have just ran it on a Pc with 2Gb RAM, same error.......

Astrid
  Reply With Quote

Old   August 13, 2002, 10:24
Default Re: estimating RAM
  #6
Robin
Guest
 
Posts: n/a
Hi Astrid,

You have a couple options:

1) Reduce the memory allocation to try and fit into what you have by setting the Allocation Multiplier to a value less than 1 (try 0.9). Typically, it will try to allocate more memory than it actually needs (just to be safe), so you may get just be able to fit it in. Note: this only works when the memory error reports that the memory could not be allocated. If it reports that not enough memory was allocated, you will need to increase the allocation multiplier instead.

2) Use a different partitioning algorithm. The MeTiS algorithm is the default and generates optimum partitions. However, it also requires the most RAM. If you switch to User Specified Direction, the partitioner will simply divide the mesh into roughly equal partitions along the direction you specify. This algorithm requires very little RAM.

3) If you have another system available which has more RAM, you can do a Partitioner Only run to get a par file, then use this to start your parallel run on the Windows systems.

Let me know what works.

Regards, Robin
  Reply With Quote

Old   August 14, 2002, 02:22
Default Re: estimating RAM
  #7
Farid
Guest
 
Posts: n/a
Dear Astrid & Robin,

Thank you for your answers.

F.

  Reply With Quote

Old   August 14, 2002, 10:02
Default Re: estimating RAM
  #8
Michael
Guest
 
Posts: n/a
More info is provided in the 5.5.1 doc under Master Contents > CFX-5 Solver Manager > Managing Your CFD Run > Memory and CPU Requirements

Hope this helps.
  Reply With Quote

Old   August 14, 2002, 15:50
Default Re: estimating RAM
  #9
Astrid
Guest
 
Posts: n/a
Michael,

I have noticed this info. However, no absolute numbers about memory are provided, only relative (Hex versus Tet etc.).

Astrid
  Reply With Quote

Old   August 14, 2002, 16:43
Default Re: estimating RAM
  #10
Neale
Guest
 
Posts: n/a
The problem with quoting absolute numbers is that they are both mesh (size and element types) and problem setup (physics and boundary conditions) dependent. So, no single absolute number applies. I think Robin already mentioned this, and quoted some reasonable numbers for one particular, yet simple, setup.

Neale
  Reply With Quote

Old   August 19, 2002, 07:37
Default Re: estimating RAM
  #11
Astrid
Guest
 
Posts: n/a
Robin,

On your request I get back on your posting. Unfortunately there were negative volumes in my hex mesh. So it stopped there. I am still working on it....

Astrid
  Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Max. RAM in Flow3D Lars FLOW-3D 4 January 8, 2009 10:56
Setting up a 32bits server with more than 4gb RAM HSeldon Main CFD Forum 4 February 21, 2008 12:45
using more than 2GB RAM on a windows PC Raju Main CFD Forum 10 October 22, 2006 03:29
Increasing RAM decreases CPU time!!! Melih GULEREN FLUENT 2 April 5, 2004 06:21
Can FLUENT run under Linux with 2 Gb of RAM? Paul Gregory FLUENT 0 February 13, 2001 21:10


All times are GMT -4. The time now is 12:02.