| ²é¿´: 1721 | »Ø¸´: 7 | |||
| µ±Ç°Ö»ÏÔʾÂú×ãÖ¸¶¨Ìõ¼þµÄ»ØÌû£¬µã»÷ÕâÀï²é¿´±¾»°ÌâµÄËùÓлØÌû | |||
markwu4ͳæ (ÖøÃûдÊÖ)
|
[ÇóÖú]
ÇëÓÐcomsol licenseµÄÈËÌṩÎÒKnowledgebase 103/952 ÒÑÓÐ2È˲ÎÓë
|
||
|
ÓÐlicenseµÄÈËÇëÌṩÎÒKnowledgebase 103, 952ÄÚÈÝ http://www.comsol.com/support/knowledgebase/103/ http://www.comsol.com/support/knowledgebase/952/ ÎÒËã³ö¸ºµÄŨ¶È Ìý˵ÀïÃæÓÐһЩ¼¼ÇÉ¿ÉÒÔ½â¾öÕâÀàÎÊÌâ |
» ±¾ÌûÒÑ»ñµÃµÄºì»¨£¨×îÐÂ10¶ä£©
» ²ÂÄãϲ»¶
Çóµ÷¼ÁԺУÐÅÏ¢
ÒѾÓÐ4È˻ظ´
085600²ÄÁÏÓ뻯¹¤306
ÒѾÓÐ4È˻ظ´
286Çóµ÷¼Á
ÒѾÓÐ10È˻ظ´
328Çóµ÷¼Á£¬Ó¢ÓïÁù¼¶551£¬ÓпÆÑоÀú
ÒѾÓÐ9È˻ظ´
Ò»Ö¾Ô¸±±¾©»¯¹¤´óѧ070300 ѧ˶336Çóµ÷¼Á
ÒѾÓÐ4È˻ظ´
286·ÖÈ˹¤ÖÇÄÜרҵÇëÇóµ÷¼ÁÔ¸Òâ¿ç¿¼£¡
ÒѾÓÐ8È˻ظ´
×ÊÔ´Óë»·¾³ µ÷¼ÁÉêÇë(333·Ö)
ÒѾÓÐ5È˻ظ´
280Çóµ÷¼Á
ÒѾÓÐ12È˻ظ´
269ר˶Çóµ÷¼Á
ÒѾÓÐ5È˻ظ´
²ÄÁÏѧ˶301·ÖÇóµ÷¼Á
ÒѾÓÐ7È˻ظ´
» ±¾Ö÷ÌâÏà¹Ø¼ÛÖµÌùÍÆ¼ö£¬¶ÔÄúͬÑùÓаïÖú:
comsolÀïÃæAC/DCÄ£¿é-----Magnetic Fields(mf)·ÂÕæ
ÒѾÓÐ3È˻ظ´
µØÖʵØÇòËù¹ÜÀí²¿ÃÅÓëÒÇÆ÷¼¼ÊõÑз¢ÈËÔ±ÕÐÆ¸ÆôÊÂ
ÒѾÓÐ0È˻ظ´
Öйú¿ÆÑ§ÔºµØÖÊÓëµØÇòÎïÀíÑо¿Ëù ÕÐÆ¸
ÒѾÓÐ0È˻ظ´
ddt1028
гæ (³õÈëÎÄ̳)
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 5.5
- Ìû×Ó: 2
- ÔÚÏß: 1.1Сʱ
- ³æºÅ: 2479316
- ×¢²á: 2013-05-24
|
Solution Number: 952 Title: Avoiding negative concentrations [Requires COMSOL Access] Platform: All Platforms Applies to: All Products Versions: All versions Categories: Solver, Physics Keywords: convergence negative concentrations Problem Description Why do I get negative values of the concentration in my diffusion, convection and reaction model? Why do I see values that go below, or above, their lowest, or highest, possible values based upon the boundary conditions applied for problems involving diffusion and convection? It is clearly unphysical. Solution There are several possible reasons for, and ways to avoid the issue of over- and under-shoot of the solution: Numerical Errors A common reason is numerical noise: For example, when the variable for concentration approaches zero, the numerical noise may become significant in comparison to the value (which is close to zero). If you notice negative concentrations of very small magnitude, numerical noise is probably the cause and does not affect the problem much in diffusion/convection problems without reactions. Reacting Domains: Use Danckwerts inflow type If you have an Inflow condition at a domain containing a chemical reaction, or a domain with reactions on the walls, use Boundary Condition Type: Flux (Danckwerts), available in the Inflow settings. This inflow condition type is designed to avoid negative oscillations and also to speed up the solution of reacting flow problems. Danckwerts. For an example how to use this, see the Separation Through Dialysis example, and also the file provided for download below. Discontinuous Boundary and Initial Conditions: Smoothen the Settings Another cause for locally slightly negative concentrations is a discontinuity in space or time, for instance in the initial condition. As an example, consider the one dimensional time dependent Convection-Diffusion-Reaction equation The initial condition is zero concentration within the domain and the boundary conditions are set to 1 and 0 concentration at the left and right boundary, respectively. The physical interpretation of this is an initially sharp, gradually diffusing front moving in the positive x-direction. However, for finite element shape functions (second order Lagrange), only continuous functions are admissible as solutions, for which reason the discontinuous initial value is modified before the time-iterations can begin. This often results in a small dip in the solution for t=0. The dip traverses to the first time steps too. The concentration will locally be slightly negative at t=0, as shown in the figure. Negative concentrations Figure 1: Solutions to the time-dependent diffusion problem with a boundary condition at the left (c=1) that creates a discontinuity with the initial condition (c=0) at t=0. The finite element method gives rise to a swing below zero in the leftmost element. The dip close to t=0 sometimes results in oscillations and convergence problems. This problem can be avoided by using one of COMSOL Multiphysics's built in smoothed step functions smooths out the initial discontinuity in a controlled way. For instance, in the example above, you could, instead of the uniform zero initial condition, use a smoothed step transition as the initial condition. For more information please refer to Solution 905: Smoothed step transitions. Condition the Reaction Term to be Larger than Zero for Concentrations Approaching Zero A significant negative concentration often indicates that the underlying mathematical model does not correctly describe the physics. In this case the approach mentioned above does not take care of the problem. One potential cause is that you have a constant sink in your reaction term, which is an approximation that only works for large concentrations. When the concentration reaches zero, the reaction term continues to consume the species, finally resulting in negative concentration. This can be avoided by making sure that your reaction rate is such that when the concentration of the species approaches zero, then so does the species sink. This can be achieved for instance by writing max(eps^2,Q). eps is an internal COMSOL constant that is a very small number in the order or 10-15. This type of expression is also helpful if you want to avoid Q being 0, for example if you apply the logarithm to it somewhere within the geometry, or if the symbolic derivative runs a risk of containing division by zero. Make Sure the Mesh Resolves the Problem Insufficient mesh resolution can result in dips below zero. Convergence problems are often the underlying issue when negative concentrations are observed in high convection regimes (high Peclet number) and with large reaction terms or fast kinetics (high Damköhler number).It can also be useful to investigate whether the negative concentration gets better or worse with mesh refinement. If, better the problem is most likely mesh related. If worse, it is probably the mathematical model that causes the problem. In Knowledge Base solution 103 a few tricks are presented which may alleviate these types of problems without extensively refining the mesh. Note: The Danckwerts inflow condition requires any one of the add-on modules Chemical Reaction Engineering Module, Batteries & Fuel Cells Module, Corrosion MOdule, Electrodeposition Module, Electrochemistry Module, or the Subsurface Flow Module Module. |
8Â¥2015-11-10 21:41:56
gzq198765
Òø³æ (СÓÐÃûÆø)
- Ó¦Öú: 27 (СѧÉú)
- ½ð±Ò: 245.9
- ºì»¨: 3
- Ìû×Ó: 74
- ÔÚÏß: 10.3Сʱ
- ³æºÅ: 3268323
- ×¢²á: 2014-06-11
- רҵ: Á¦Ñ§ÖеĻù±¾ÎÊÌâºÍ·½·¨
2Â¥2014-10-14 09:48:38
markwu4
ͳæ (ÖøÃûдÊÖ)
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 14530.5
- ºì»¨: 2
- Ìû×Ó: 1311
- ÔÚÏß: 254.2Сʱ
- ³æºÅ: 2301321
- ×¢²á: 2013-02-26
- רҵ: µç»¯Ñ§
3Â¥2014-10-14 16:05:33
albertwowwow
ľ³æ (СÓÐÃûÆø)
- Ó¦Öú: 80 (³õÖÐÉú)
- ½ð±Ò: 3804.6
- É¢½ð: 20
- ºì»¨: 12
- Ìû×Ó: 211
- ÔÚÏß: 83.4Сʱ
- ³æºÅ: 3292789
- ×¢²á: 2014-06-26
- ÐÔ±ð: GG
- רҵ: ú̿µØÏ¿ª²É
¡¾´ð°¸¡¿Ó¦Öú»ØÌû
¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï
markwu4: ½ð±Ò+10, ¡ï¡ï¡ï¡ï¡ï×î¼Ñ´ð°¸, лл ÒòΪһ°ëÒѾ·Ö¸øµÚÒ»¸öÓ¦ÖúÕß 2014-10-16 06:48:48
markwu4: ½ð±Ò+10, ¡ï¡ï¡ï¡ï¡ï×î¼Ñ´ð°¸, лл ÒòΪһ°ëÒѾ·Ö¸øµÚÒ»¸öÓ¦ÖúÕß 2014-10-16 06:48:48
|
Description Stationary models with high reaction rates, Ri, or more generally, large source terms, may result in convergence problems. You can for instance get error messages such as "No convergence, even when using the minimum damping factor", "NaN repeatedly found in solution", or "Error: Failed to find a solution". Now what could you do to get around this problem? Try to solve the problem using reduced source terms, and then gradually increase them, using the previous solution when solving, until you reach the solution to your original problem. The following approach uses the parametric solver to gradually increase the source term. COMSOL Multiphysics 4 and later Multiply the reaction (source) term (Ri) by a multiplication factor variable, for example "k". Click the Stationary node and select the Auxiliary sweep (in version 4.4) or Continuation (in earlier versions) check box. Enter k as the Sweep parameter In Parameter values, enter a range of increasing values, starting at a low value and increasing to unity, for example "1e-3 1e-2 1e-1 1". Click Compute. COMSOL Multiphysics 3.5a and earlier Multiply the reaction (source) term (Ri) by a multiplication factor variable, for example "k". In the *'Solver Parameters** dialog box, select the Parametric Solver and specify Name of Parameter to that of the multiplication factor, k. Enter the List of Parameter Values as a range of increasing values, starting at a low value and increasing to unity, for example "1e-3 1e-2 1e-1 1". Click OK. Click Solve. COMSOL Multiphysics will now start to solve the problem using the first multiplication factor. Then, if that works, the solution will be used as the initial guess for the next parameter value. This process will continue until the last parameter value is reached. Because you specified the last parameter value to be unity, the last solution will correspond to your original problem formulation. Use the time dependent solver. By making the problem time dependent, you usually get a smoother convergence. COMSOL Multiphysics 4 and later Right-click the Model node and select Add Study. Select Time Dependent and click Finish. In the Times edit field, enter a range of times to solve for, for example "0 1e3". Click Compute. COMSOL Multiphysics 3.5a and earlier Open Solver Parameters. Select the Time dependent solver and specify a range of Times to solve for, for example 0 1e3". Click OK, then Solve. Make sure to solve the problem for large enough times, such that the solution does not vary any longer. This implies that the solution has reached steady-state. Thus, COMSOL Multiphysics has calculated the stationary solution! If the solution process never gets past t = 0, see Solution 964 for more information. If none of the previous methods would help, try using them in combination with refining the mesh in regions where the source term is large. Õâ¸öÊÇ103µÄ |
4Â¥2014-10-16 06:14:44













»Ø¸´´ËÂ¥
tang6920