24小时热门版块排行榜    

查看: 1954  |  回复: 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/
我算出负的浓度
听说里面有一些技巧可以解决这类问题
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

小帆远航

木虫 (正式写手)

引用回帖:
6楼: Originally posted by tang6920 at 2015-03-20 22:06:42
请问楼主问题解决了吗?

请问您的问题解决了吗?我现在也遇到了相同的问题,想向您请教
吾心勿忘
7楼2015-07-08 20:10:53
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 8 个回答

gzq198765

银虫 (小有名气)

【答案】应助回帖

★ ★ ★ ★ ★ ★ ★ ★ ★ ★
markwu4: 金币+10, ★★★很有帮助 2014-10-15 18:51:46
可以使用max(k,eps)来表示,k是浓度,eps是默认极小值,这个函数的意思是取其中的大者,就可以避免出现浓度负值了。
2楼2014-10-14 09:48:38
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

markwu4

铜虫 (著名写手)

引用回帖:
2楼: Originally posted by gzq198765 at 2014-10-14 09:48:38
可以使用max(k,eps)来表示,k是浓度,eps是默认极小值,这个函数的意思是取其中的大者,就可以避免出现浓度负值了。

请问我要加在哪里? 我希望在计算过程中随时保持浓度为正值。谢谢。
3楼2014-10-14 16:05:33
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

albertwowwow

木虫 (小有名气)

【答案】应助回帖

★ ★ ★ ★ ★ ★ ★ ★ ★ ★
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
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[论文投稿] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +3 DpSrDtM079iu 2026-08-22 3/150 2026-08-23 15:33 by KM5EcsNQRBPn
[公派出国] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +3 2JOx3r2CYEgw 2026-08-21 6/300 2026-08-23 14:45 by KM5EcsNQRBPn
[教师之家] 跳槽后在研项目怎么办? +5 简单化xn 2026-08-22 10/500 2026-08-23 12:38 by 简单化xn
[考博] 售SCI一区T0P文章,我:8.O.55.1.O.54,科目齐全,可+急 +3 h4CP7TrQR8Lg 2026-08-22 5/250 2026-08-23 12:09 by LR9qGULyN2ew
[基金申请] 什么时候开奖? +9 CrisMessi 2026-08-18 10/500 2026-08-23 12:03 by 丶昵称占用
[考博] 售SCI一区T0P文章,我:8.O55.1.O.54,科目全,可十急 +3 2JOx3r2CYEgw 2026-08-21 10/500 2026-08-23 07:17 by OEbVnUOu01ol
[硕博家园] 售SCI一区文章,我:8O5.5.1.O5.4,科目全,可伽急 +3 2JOx3r2CYEgw 2026-08-22 7/350 2026-08-23 03:43 by OEbVnUOu01ol
[论文投稿] 售SCI一区T0P文章,我:8.O.55.1.O.5.4,科目全,可+急 +3 QTy3jDtz1uLt 2026-08-21 9/450 2026-08-23 03:04 by OEbVnUOu01ol
[硕博家园] 售SCI一区T0P文章,我:8O.55.1.O.54,科目全,可伽急 +4 QTy3jDtz1uLt 2026-08-21 11/550 2026-08-23 02:55 by OEbVnUOu01ol
[考博] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +3 DpSrDtM079iu 2026-08-22 3/150 2026-08-23 00:55 by OEbVnUOu01ol
[教师之家] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +4 2JOx3r2CYEgw 2026-08-21 4/200 2026-08-22 16:52 by sunzitan
[基金申请] 人气不行了 +8 fansofjerry 2026-08-21 8/400 2026-08-22 16:30 by zyqchem
[基金申请] 今天基金会出结果吗?20260819 +16 kkkl_v 2026-08-19 17/850 2026-08-22 16:12 by 阿布Abu
[基金申请] 时间戳今天,20号变了 +5 archvillain 2026-08-20 5/250 2026-08-22 06:12 by hui_daxiao
[基金申请] 放榜前的不淡定 40+4 snowwithsea 2026-08-19 14/700 2026-08-21 23:51 by cratir
[基金申请] 科研孤儿太难了 +17 我4大白菜 2026-08-20 18/900 2026-08-21 20:57 by zhangev
[基金申请] 看来今天不会放榜了? +8 chengyan1220 2026-08-21 11/550 2026-08-21 17:52 by dcqxinyang
[基金申请] 感觉是下周放榜了 +7 angus9576 2026-08-17 12/600 2026-08-21 13:38 by weiyin
[基金申请] 时间戳变了,能看出什么问题? +18 基诺咪客 2026-08-17 23/1150 2026-08-20 17:19 by Godzela
[基金申请] 今天维护系统维护 祝所有人 高中 +8 gjjjzhong 2026-08-18 9/450 2026-08-18 13:01 by 家与远方
信息提示
请填处理意见