Messages In This Digest (6 Messages)
- 1a.
- Re: Same old _ out of memory From: ta_wan2006
- 2a.
- The meaning of convergence? From: hdphuc85
- 2b.
- Re: The meaning of convergence? From: srinivasan iyer
- 2c.
- Re: The meaning of convergence? From: Ben Kenney
- 3.
- A problem about generator ? From: ¹p¹q
- 4.
- Probe-Plots From: asa_physicist
Messages
- 1a.
-
Re: Same old _ out of memory
Posted by: "ta_wan2006" ta_wan2006@yahoo.com.tw ta_wan2006
Wed Jan 7, 2009 7:21 pm (PST)
Thanks!! It helps a lot.
--- In COMSOL_Users@yahoogroups. , "freelsjd32289" <freelsjd@..com .>
wrote:
>
> I stand corrected, and I apologize for my mistake. My ignorance of
> Windows has shown through as I am well known to be a Linux
enthusiast!
> Again, I apologize.
>
> The /3G option IS an option for the boot.ini file of windows boot
> configuration and NOT a COMSOL option. It is described here:
>
> http://technet.microsoft. com/en-us/ sysinternals/ bb963892. aspx
>
> A good description of how to modify/edit the boot.ini file is shown
here:
>
> http://support.microsoft. com/kb/289022
>
> These are easily found by a google search on "windows boot.ini
options"
>
>
>
> --- In COMSOL_Users@yahoogroups. , "freelsjd32289" <freelsjd@>com
wrote:
> >
> > You should not need to modify your boot loader at all !
> >
> > We are just talking about how you start up COMSOL !
> >
> > The /3G switch is just that--a switch you add to the end of the
comsol
> > execution line. So, in your icon properties, where the command is
> > defined, add the /3G switch.
> >
> > The other parameters are changes to the COMSOL options file. You
may
> > need to experiment with your settings, following the COMSOL
> > recommendations.
> >
> > --- In COMSOL_Users@yahoogroups. , "ta_wan2006" <ta_wan2006@com >
wrote:
> > >
> > > Thank you!! My computer OS is 32bits with WinXP Professional
SP3,
> > > When I open [boot loader] its shown
> > > [boot loader]
> > > timeout=5
> > > default=multi(0)disk(0) rdisk(0)partitio n(1)\WINDOWS
> > > [operating systems]
> > > multi(0)disk(0)rdisk(0) partition( 1)\WINDOWS= "Microsoft Windows
XP
> > > Professional" /noexecute=optin /fastdetect /noexecute=alwaysoff
> > >
> > > This is different what you describes. Where I should put
the /3G
> > > parameter?
> > >
> > > In X:\COMSOL35\bin\comsol. opts
> > > # memory size parameters
> > > MAXHEAP=256m
> > > MAXHEAPCLIENT=512m
> > > MAXHEAPSERVER=256m
> > > MAXHEAP64=1024m
> > > MAXHEAPCLIENT64=1024m
> > > MAXHEAPSERVER64=1024m
> > > STACKSIZE=2m
> > > STACKSIZE64=4m
> > > JAVAOPTS=on
> > > I just need to change MAXHEAP=256m to MAXHEAP=128m?
> > >
> > >
> > >
> > >
> > > --- In COMSOL_Users@yahoogroups. , "freelsjd32289"com
<freelsjd@>
> > > wrote:
> > > >
> > > > --- In COMSOL_Users@yahoogroups. , "freelsjd32289"com
<freelsjd@>
> > > wrote:
> > > > >
> > > > > --- In COMSOL_Users@yahoogroups. , "ta_wan2006"com
<ta_wan2006@>
> > > wrote:
> > > > > >
> > > > > > I hate to say that-- when the solver pop up #### out of
memory.
> > > It is
> > > > > > realy made me mad about that. I have been used many
commercial
> > > > > > software. The most and frequently to see the small reply
> > > window "####
> > > > > > out of memory" should be Comsol. Is the user problems or
the
> > > software-
> > > > > > itself problem?
> > > > > >
> > > > >
> > > > > 32bit or 64bit ?
> > > > >
> > > > > what kind of solver are you using ?
> > > > >
> > > >
> > > > See the following help available to registered COMSOL users:
> > > >
> > > > http://www.comsol.com/support/ knowledgebase/ 1030/
> > > >
> > > > Solution Number: 1030
> > > > Title: Error message: "Out of memory"
> > > > Platform: All Platforms
> > > > Applies to: All Products
> > > > Versions: 3.3, 3.4
> > > > Created: April 29, 2008
> > > > Last Modified: August 15, 2008
> > > > Categories: Solver, Postprocessing, Error Messages
> > > > Keywords: memory, geometry, mesh
> > > > Description
> > > >
> > > > The error message "Out of memory" occurs mostly on 32-bit
platforms,
> > > > due to the inherent limit in memory address space. We
recommend a
> > > > 64-bit system (for example Windows XP 64-bit Edition, Vista
64-bit
> > > or
> > > > a 64-bit Linux version) for any user with sizable models. For
those
> > > > users who are still restricted to a 32-bit platform, this
Knowledge
> > > > Base solution will give some guidance how to get the most out
of
> > > your
> > > > system.
> > > > Introduction
> > > >
> > > > A 32-bit processor system (for example Windows XP) can
potentially
> > > > allocate up to 4 GB of memory, but in most practical cases
only 1.5
> > > GB
> > > > due to operating system footprint. This is regardless of how
big you
> > > > set the swap space. Some 32-bit operating systems require
special
> > > > settings to be able to use high amounts of memory.
> > > > Software Settings
> > > >
> > > > There are several ways of increasing the available memory for
the
> > > solvers.
> > > > Tuning the Java heap size
> > > >
> > > > Of the available memory (RAM and virtual memory), one
section, the
> > > > Java heap, is reserved for Java and will be used for graphics
and
> > > > postprocessing. The rest will be available for meshing and
solving.
> > > If
> > > > the out-of-memory message appears during the solution
progress, you
> > > > can decrease the Java heap size. If you get out-of-memory
during
> > > > postprocessing, increase the Java heap.
> > > >
> > > > On Windows, modify the file COMSOL34/bin/comsol.opts and on
> > > > Sun/Linux/Mac OSX, modify the file COMSOL34/bin/comsol.
Change the
> > > > line MAXHEAP=256m to for example MAXHEAP=128m. You need to
restart
> > > > COMSOL for the change to apply.
> > > > Running client-server mode
> > > >
> > > > Sometimes it can be favorable to run client/server mode
because a
> > > > separate server has less memory fragmentation problems. If
you want
> > > to
> > > > change the Java heap on a COMSOL server, follow the
intstructions
> > > > above but modify the MAXHEAPSERVER line instead.
> > > > Running COMSOL with MATLAB
> > > >
> > > > Similarly, if you run out of memory while saving an mph-file
from
> > > the
> > > > COMSOL with MATLAB, change the value of the MAXHEAPSERVER
line.
> > > > Virtual Memory and Swap Space for 32-bit architecture
> > > >
> > > > Increasing the swap file size on the system is only
interesting if
> > > you
> > > > can live with the notable slowness in operation that occurs
as soon
> > > as
> > > > the hard disk swapping starts. In many cases, hard disk
swapping is
> > > > not an option.
> > > >
> > > > In Windows XP, you only have 2 GB of virtual address space
available
> > > > initially for a user process. This memory space is also
sometimes
> > > > fragmented by shared libraries. On Linux, Sun, and Mac, you
> > > typically
> > > > get between 3-4 GB of virtual address space available for your
> > > > process. This address space is usually not fragmented.
> > > > 3 GB switch
> > > >
> > > > COMSOL Multiphysics supports the option in Windows XP
Professional
> > > and
> > > > Windows 2003 Server to have 3 GB of virtual address space
available
> > > > for user processes. This reduces the available address space
for the
> > > > operating system to 1 GB. To access it you must boot the
system
> > > using
> > > > an additional boot parameter. The following example shows how
to
> > > > enable application memory tuning by adding the /3GB parameter
in the
> > > > boot.ini file:
> > > >
> > > > Caution: Only add the /3GB switch, shown in boldface below.
Do not
> > > > copy the full lines below into your boot.ini, since the
parameter
> > > > values may be different for different systems. Please note
that the
> > > > file boot.ini is critical to booting your system. If you
change the
> > > > partition numbers, your computer will fail to boot and you
cannot
> > > > recover the system without a system restore disk.
> > > >
> > > > To open the boot.ini file on Windows XP Professional, right-
click My
> > > > Computer, select the Advanced tab, go to the lower section
Startup
> > > and
> > > > Recovery, click Settings. In the new dialog box, click Edit.
> > > >
> > > > [boot loader]
> > > > timeout=30
> > > > default=multi(0)disk(0) rdisk(0)partitio n(2)\WINNT
> > > > [operating systems]
> > > > multi(0)disk(0)rdisk(0) partition( 2)\WINNT= "????" /3GB
> > > >
> > > > The "????" above can be the name of your operating system for
> > > example
> > > > "Microsoft Windows XP Professional".
> > > >
> > > > Some users report that Vista 32-bit also can benefit from a 3
GB
> > > > setting. This is not tested by us. To change the setting, run
the
> > > > command bcdedit /set IncreaseUserVa 3072 as an administrator
at the
> > > > command prompt. To turn off the 3 GB switch, run
> > > bcdedit /deletevalue
> > > > IncreaseUserVa.
> > > > A Note about Memory Monitoring on 32-bit systems
> > > >
> > > >
> > > > Especially in 3D modelling, extensive memory usage urges some
extra
> > > > precautions. The "Out of Memory"-problem occurs whenever
COMSOL
> > > > Multiphysics tries to allocate an array which does not fit
> > > > sequentially in memory. It is common on 32-bit systems that
the
> > > amount
> > > > of available memory seems large enough for the arraybut
there may
> > > > exist no continuous block of that size due to fragmentation.
If you
> > > > for example look in the task manager of Windows, this may
have the
> > > > effect that you can't see any high memory allocation, and
get "out
> > > of
> > > > memory" anyway.
> > > >
> > > > The "Memory Usage" column in the Windows task manager can
also be
> > > > misleading, because it only shows the currently swapped
portion. A
> > > > better indicator of total usage can be found like this
(Win2000,
> > > > WinNT, Win XP, Windows Vista):
> > > >
> > > > 1. Press Ctrl-Alt-Delete to bring up the Task Manager.
> > > > 2. Go to the "processes" tab.
> > > > 3. From the View menu, choose Select Columns.
> > > > 4. Select the Virtual Memory Size (in Windows Vista: "Commit
Size")
> > > > check box.
> > > > 5. Now find the comsol.exe process that corresponds to the
COMSOL
> > > > Multiphysics process in the process list and look in the "VM
Size"
> > > > column. This shows a better value for the actual memory used.
> > > >
> > > > See also: Knowledge Base solution 866 for hardware tips,
Knowledge
> > > > Base solution 830 about memory intensive models.
> > > >
> > >
> >
>
- 2a.
-
The meaning of convergence?
Posted by: "hdphuc85" hdphuc85@yahoo.com hdphuc85
Wed Jan 7, 2009 7:21 pm (PST)
Hi all,
I wonder how exactly does Comsol define the convergece of a model. When
you run your model, sometimes a "does not converge" message pops up.
This happens when the parameter "convergence" is more than 10e-6. So
how is this convergence parameter calculated? My thought is that first
of all, all the boundary values must match the boundary conditions.
Moreover, I think Comsol calculates error percentage of successive
steps. Is that true? If anyone has any knowledge in this issue, please
add. I also am interested in the techniques to improve convergence.
Thanks
Ph
- 2b.
-
Re: The meaning of convergence?
Posted by: "srinivasan iyer" guruofanarchy@yahoo.com guruofanarchy
Thu Jan 8, 2009 9:35 am (PST)
Hello there,
I guess what you can do is either try tweaking the relative tolerance error to a higher value (and see if the accuracy of the solution is tolerable in your case) OR use a direct solver (if your memory permits). Sometimes even changing the mesh parameters can make the model converge for iterative solvers. This convergence issues mainly arise to due to issues with singularities arising in illposed problems i.e. sharp edges in your model where meshing isnt very great etc.
Hope this helps..
Best regards
Srinivasan
--- On Wed, 1/7/09, hdphuc85 <hdphuc85@yahoo.com > wrote:
From: hdphuc85 <hdphuc85@yahoo.com >
Subject: [COMSOL_Users] The meaning of convergence?
To: COMSOL_Users@yahoogroups. com
Date: Wednesday, January 7, 2009, 7:08 PM
Hi all,
I wonder how exactly does Comsol define the convergece of a model. When
you run your model, sometimes a "does not converge" message pops up.
This happens when the parameter "convergence" is more than 10e-6. So
how is this convergence parameter calculated? My thought is that first
of all, all the boundary values must match the boundary conditions.
Moreover, I think Comsol calculates error percentage of successive
steps. Is that true? If anyone has any knowledge in this issue, please
add. I also am interested in the techniques to improve convergence.
Thanks
Ph
- 2c.
-
Re: The meaning of convergence?
Posted by: "Ben Kenney" bkenney@gmail.com benk7
Thu Jan 8, 2009 11:16 am (PST)
The convergence is related to the residual. For example, if you're
solving the system of equations:
Ax = b, then the residual would be: residual = b-Ax which should be as
close as possible to 0 (specified by the tolerance).
The exact method that comsol uses to calculate the residual (or error)
can vary.
I think that increasing the tolerance should be your last resort and
first you should try a grid study to see if that helps, then try
adjusting the damping factor to lower values and then take a look at
your parameters.
Ben
On Thu, Jan 8, 2009 at 8:44 AM, srinivasan iyer <guruofanarchy@yahoo.com > wrote:
> Hello there,
>
> I guess what you can do is either try tweaking the relative tolerance error
> to a higher value (and see if the accuracy of the solution is tolerable in
> your case) OR use a direct solver (if your memory permits). Sometimes even
> changing the mesh parameters can make the model converge for iterative
> solvers. This convergence issues mainly arise to due to issues
> with singularities arising in illposed problems i.e. sharp edges in your
> model where meshing isnt very great etc.
>
> Hope this helps..
>
> Best regards
> Srinivasan
>
>
> --- On Wed, 1/7/09, hdphuc85 <hdphuc85@yahoo.com > wrote:
>
> From: hdphuc85 <hdphuc85@yahoo.com >
> Subject: [COMSOL_Users] The meaning of convergence?
> To: COMSOL_Users@yahoogroups. com
> Date: Wednesday, January 7, 2009, 7:08 PM
>
> Hi all,
> I wonder how exactly does Comsol define the convergece of a model. When
> you run your model, sometimes a "does not converge" message pops up.
> This happens when the parameter "convergence" is more than 10e-6. So
> how is this convergence parameter calculated? My thought is that first
> of all, all the boundary values must match the boundary conditions.
> Moreover, I think Comsol calculates error percentage of successive
> steps. Is that true? If anyone has any knowledge in this issue, please
> add. I also am interested in the techniques to improve convergence.
> Thanks
> Ph
>
>
>
- 3.
-
A problem about generator ?
Posted by: "¹p¹q" jason_key44@yahoo.com.tw jason_key44
Thu Jan 8, 2009 9:35 am (PST)
Hello!every one . I want to calculate the current of the generator .
In example of Ac/Dc module,the voltage of winding of generator was
calculated by Vi=L*Ez_emqa/A (in "options > Integration coupling
variable > subdomain vaiable" ) Can everybody give me a good idea to
get the current?
thanks
- 4.
-
Probe-Plots
Posted by: "asa_physicist" alexandre.abreu@physik.uni-augsburg.de asa_physicist
Thu Jan 8, 2009 9:35 am (PST)
Hi,
i want COMSOL to automatically create several plots after solving a
time-dependent model. If i use probe-plots for this, I only get the
plots for time-steps i did not define but i need the plots using the
time-stepping defined in the solver settings.
I hope anyone can help me out.
One further information: i have not licensed the COMSOL Script program.
Need to Reply?
Click one of the "Reply" links to respond to a specific message in the Daily Digest.
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Individual | Switch format to Traditional
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
沒有留言:
張貼留言