Messages In This Digest (4 Messages)
- 1a.
- Re: Avoiding Negative Concentrations From: Bruce Finlayson
- 2a.
- Re: Thermal Electromagnetic Coupling From: bertilnistad
- 3.
- Matrix data extraction From: Farshid
- 4.
- Memory Indication From: andreaskohlhepp
Messages
- 1a.
-
Re: Avoiding Negative Concentrations
Posted by: "Bruce Finlayson" finlayso@u.washington.edu bruce_galerkin
Sun Nov 30, 2008 2:20 pm (PST)
Back 30 years ago when I was programming such problems in FORTRAN, I
tried many things like this - including the one of setting any
concentration to zero that went negative. None of them helped
appreciably. Getting the mesh right for the problem was the only
thing that made a big difference. The problem is that the
concentration is a continuous function, and setting it to zero seemed
to affect the solution where it was positive, too.
On Nov 27, 2008, at 3:10 AM, Nicholas Stevens wrote:
>
> Dear Srinivas,
>
> If you had a concentration c could define c_shadow as
>
> flc1hs(c-0.1,0.1).*c
>
> This function shadows c while c is positive, but goes to zero as c
> goes
> negative. Note that the region over which the function deviates from c
> is controlled by the second argument to the flc1hs function. I've
> attached a picture of the function to this email. Note that '.*' is
> needed not '*' as this means pointwise multiplucation, not matrix
> multiplucation.
>
> The point about using these variables in models is that if you have a
> chemical reaction in some subdomain
>
> A + B -> C
>
> and the rate is equal to constant*A*B, then if A and B go negative at
> the same time, the rate ends up positive and A and B will spiral
> helplessly away to very negative values. If you define the rate as
> constant*A_shadow*B_shadow (defined as above) then if A or B go
> negative
> during the convergence process, the rate ends up at zero, and so they
> don't get trapped at negative values.
>
> Best Wishes,
>
> Nick.
>
> merugu_s wrote:
> > Hey Nick,
> > I was reading your post about negative concentration. You
> > said we can use shadow variable instead of actual concentration to
> > make solution converge. Can you elaborate on that.... I don't know
> > much about COMSOl so your advise will help me a lot.
> >
> > thanks,
> > Srinivas
> >
>
> --
>
> 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
> <shadow_c.png>
Bruce A. Finlayson
Professor Emeritus of Chemical Engineering
Department of Chemical Engineering, Box 351750
University of Washington
Seattle, WA 98195-1750
finlayson@cheme.washington. edu
http://faculty.washington. edu/finlayso/
- 2a.
-
Re: Thermal Electromagnetic Coupling
Posted by: "bertilnistad" bertil.nistad@gmail.com bertilnistad
Sun Nov 30, 2008 2:20 pm (PST)
Plotting the transient Temperature T at a phase angle does not give any meaning at all. I
agree that it should have been impossible to plot the phase angle of a time dependent
quantity, but since the phase angle is related to a time harmonic quantity and is chosen on
the general pane of Postprocessing parameter i can see why it is like this.
In Comsol the phase angle is a post processing parameter to evaluate time-harmonic
quantities. This is done by taking the real part of a quantity multiplied by a exp(-i*alpha),
or the conjugate( I don't remeber which).
So when you are evaluating other quantities than time harmonic ones (i.e those who can
be written like X*exp(-i*omega*t) you will get a wrong result if you set the phase angle to
anything else than zero.
Best regards
Bertil
--- In COMSOL_Users@yahoogroups. , "g95r5276" <g95r5276@..com .> wrote:
>
>
> If you load in the thermal electromagnetic interactive Comsol model
> example on induction heating (which is an axisymmetric transient
> model) and change the angle to 90 degrees at 1200sec you will see
> (slightly strange) behaviour in the temperature field. Does anyone
> have any comments about this ? Clearly it has to do with the way
> Comsol has coupled the thermal equation to electromagentic equation.
>
> I am considering a 2D (x,y) AC quasi-steady state model of a square
> cross-sectional conductor placed in a high frequency Hz field. In
> this scenario eddy currents with components in Jx and Jy are induced
> on the conductor which tend to exclude flux from the interior of the
> metal. The frequency is reasonably high so the eddy currents are
> confined to a thin skin.
>
> When I produce a stationary solution, coupling the problem to the
> thermal model and implementing a temperature dependent expression for
> the electrical conductivity the temperature seems to become a complex
> field. At angle zero the results look believable but at angle 90 the
> plot of temperature looks very strange - a bit like the model
> example....
>
- 3.
-
Matrix data extraction
Posted by: "Farshid" bahrami_farshid@yahoo.com bahrami_farshid
Sun Nov 30, 2008 2:21 pm (PST)
I was wondering to know how can I extract solution data in form of
matrix in Comsol with Matlab environment.
- 4.
-
Memory Indication
Posted by: "andreaskohlhepp" andreaskohlhepp@yahoo.com andreaskohlhepp
Sun Nov 30, 2008 2:21 pm (PST)
Hello everyone,
can someone of you tell me what the memory indication in the lower
right corner of the comsol main window shows?
It consists of two Numers, i think the first one could show the actual
size of memory use, but i don't have a clue what the second one could be.
Does anybody know about it? I Didn't find anything in about it in the
comsol documentation, and due to the fact that calculations run out of
memory from time to time i think this could be a hint for me..
Thanks a lot!
Andi
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
沒有留言:
張貼留言