純脆方便自己管理四處回文的部落格

2009年1月5日 星期一

[COMSOL_Users] Digest Number 1525

Messages In This Digest (6 Messages)

Messages

1a.

Re: reaction term is large

Posted by: "bapaksegalaterer" bapaksegalaterer@yahoo.com   bapaksegalaterer

Sun Jan 4, 2009 9:52 pm (PST)

Dear Elisha,

I have the same problem. Have anyone responded?

--- In COMSOL_Users@yahoogroups.com, "elisha0524" <Elisha0524@...>
wrote:
>
> I have a problem, if the reaction term is large to cause the
> concentration minus. How to adjust the concentration equal zero?
>

2a.

Negative concentrations at high reaction rates

Posted by: "bapaksegalaterer" bapaksegalaterer@yahoo.com   bapaksegalaterer

Sun Jan 4, 2009 9:52 pm (PST)

Hi all,

Hope all in good shape.

I am wondering how am I to insert a logical equation that makes
concentration > 0 at all times.

I have a system with possibly high reaction rates, thus resulting in
concentration of specie A (for e.g.) dropping below zero. This is not
good because a by product production rate (specie B) is dependent to
A's reaction rate.
At first,

reaction rate = -VA*d

When VA*d gets really high, total concentration is -ve. So,

I have tried

reaction rate = -(VA*d).*flc1hs(cA-0.01,0.01)

Anyone have better ideas, as with the second reaction rate,
concentration starts to be closing to zero at t=68 hours, and
concentration profiles for t=70 and 72 hours are very similar to t=68
hours, although d always increases in time exponentially.

I was expecting at t=70 and t=72 hours, the profiles should be
steeper, as shown at previous times. However, it is not.

Any ideas please? Thanks in advance.
-Pak

2b.

Re: Negative concentrations at high reaction rates

Posted by: "Nicholas Stevens" Nicholas.Stevens@manchester.ac.uk   drnick333667

Mon Jan 5, 2009 5:49 am (PST)


Dear Pak,

Is it just that the value of cA you are choosing below which to drop the
rate to zero is too high? You have 0.01, but maybe you should try
lowering this. Without knowing the range of values cA takes at the times
you wish to run to, it is not possible to say what the best value is,
but just try flc1hs(cA-0.001,0.001), flc1hs(cA-0.0001,0.0001) and so on
and see if it works as you expect.

Best Wishes,

Nick.

bapaksegalaterer wrote:
>
>
> Hi all,
>
> Hope all in good shape.
>
> I am wondering how am I to insert a logical equation that makes
> concentration > 0 at all times.
>
> I have a system with possibly high reaction rates, thus resulting in
> concentration of specie A (for e.g.) dropping below zero. This is not
> good because a by product production rate (specie B) is dependent to
> A's reaction rate.
> At first,
>
> reaction rate = -VA*d
>
> When VA*d gets really high, total concentration is -ve. So,
>
> I have tried
>
> reaction rate = -(VA*d).*flc1hs(cA-0.01,0.01)
>
> Anyone have better ideas, as with the second reaction rate,
> concentration starts to be closing to zero at t=68 hours, and
> concentration profiles for t=70 and 72 hours are very similar to t=68
> hours, although d always increases in time exponentially.
>
> I was expecting at t=70 and t=72 hours, the profiles should be
> steeper, as shown at previous times. However, it is not.
>
> Any ideas please? Thanks in advance.
> -Pak
>

--

Dr Nicholas Stevens

Corrosion and Protection Centre
School of Materials
University of Manchester
Sackville Street
P.O. Box 88
Manchester
M60 1QD

Telephone: +44 (0) 161 306 3621
Fax: +44 (0) 161 306 4865

3.

Tutorial KdV

Posted by: "JC D" mail2jcdx@yahoo.de   mail2jcdx

Sun Jan 4, 2009 9:52 pm (PST)

Hi group,

First of all I wish you all a happy new year.

I am a very beginner and I focused a strange problem in the tutorial model of the KdV problem (equation beased model).
When I enter the periodic boundary conditions the I should write u1 in the first field and the variable pconstr1 appears for the boundary 1. Now when I enter the boundary for 2 then u2 and pconstr2 should appear. But when I go back to boundary 1 to check if everthing is ok, then there is u1 and pconstr2. This is not right and when solving the problem an error occur because of a singularity. Also the result does not look as it should. What is going on there, where is my mistake?

Regards, JC D 

4a.

Re: Java issue: Comsol v3.4 / Matlab r2008a. Ubuntu 8.04. 64 bit.

Posted by: "ByoungHo Park" limitrev@yahoo.com   limitrev

Sun Jan 4, 2009 9:53 pm (PST)

Hi dude,

I met the same error you got on my window XP64.

Modifying the java class path may fix your problem.

Open 'classpath.txt' on $matlabroot/toolbox/local/classpath.txt

and add the path where 'vecmath.jar' is.

In my case it was

'C:\Program Files\COMSOL34\java\win64\jre\lib\ext\vecmath.jar'

I hope it will be helpful...

--- In COMSOL_Users@yahoogroups.com, "tc_metcalfe" <tc_metcalfe@...>
wrote:
>
> Hello,
>
> I am running Comsol v3.4 and Matlab r2008a on Ubuntu 8.04, 64 bit.
> When using postcrossplot (or in general, any command involving a
> figure) I get the error pasted below.
>
> Note that "Diff_atpb_face_scale_flux.m" is the function file, and line
> 426 is where I am calling postcrossplot for the fem structure 'femD'.
>
> Does anybody know how to solve this java issue?
>
> Sincerely,
> Craig.
>
> ??? Error using ==> figure
> Error using ==> figure
> Java exception occurred:
> java.lang.NoClassDefFoundError: javax/vecmath/Point3d
> at java.lang.Class.getDeclaredMethods0(Native Method)
> at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
> at java.lang.Class.privateGetPublicMethods(Unknown Source)
> at java.lang.Class.getMethods(Unknown Source)
> at
>
com.mathworks.jmi.OpaqueJavaInterface.doesMethodExist(OpaqueJavaInterface.java:407)
>
> Error in ==> gcf at 33
> h = figure;
>
> Error in ==> gca at 18
> fig = gcf;
>
> Error in ==> postnewplot>l_newplot at 31
> currax = gca;
>
> Error in ==> postnewplot at 16
> hAx = l_newplot(vers);
>
> Error in ==> postcrossplot at 349
> ax = postnewplot;
>
> Error in ==> Diff_atpb_face_scale_flux at 426
> pd_area = postcrossplot(femD,2,fem_dom,'surfdata','1', ...
>

5a.

Re: Calculate the magnetic force between magnet and steel rod

Posted by: "Peter Lesniewski" peter.lesniewski@unisa.edu.au

Sun Jan 4, 2009 9:53 pm (PST)

Chances are that you used 2-D simulation and got the force per meter depth.
P.

-----Original Message-----
From: COMSOL_Users@yahoogroups.com [mailto:COMSOL_Users@yahoogroups.com] On Behalf Of Jerry
Sent: Friday, 2 January 2009 7:58 AM
To: COMSOL_Users@yahoogroups.com
Subject: [COMSOL_Users] Calculate the magnetic force between magnet and steel rod

I use COMSOL to calculate the the magnetic force between magnet and
steel rod through Magnetostatics, no current applicatin mode. I found
the result from COMSOL is half to the measured value. Any advice?

Thanks!

Jerry

------------------------------------

Yahoo! Groups Links

Recent Activity
Visit Your Group
Yahoo! Finance

It's Now Personal

Guides, news,

advice & more.

Group Charity

Be the Change

A citizen movement

to change the world

All-Bran

10 Day Challenge

Join the club and

feel the benefits.

Need to Reply?

Click one of the "Reply" links to respond to a specific message in the Daily Digest.

Create New Topic | Visit Your Group on the Web

沒有留言: