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

2009年1月17日 星期六

[COMSOL_Users] Digest Number 1537

COMSOL_Users

Messages In This Digest (7 Messages)

Messages

1.

Integrating temperature in transient problem

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

Fri Jan 16, 2009 1:57 pm (PST)

I have 3D transient heat conduction problem. I would like to compute
the integral of the expression 0.5^(316.15-T) with respect to time.
Ideally, I'd like some of the material properties for the heat
conduction problem (e.g. specific heat) to be a function of this
integral.

I tried adding the above equation to the heat conduction model by
using the PDE coefficient mode (set f =0.5^(316.15-T) and d = 1, all
other terms are 0). After the first couple of seconds, I get extremely
large values for the integral. Anybody have any insight as to how I
can solve this problem?

2a.

Re: convergence problem

Posted by: "zimmerman_wbj" w.zimmerman@shef.ac.uk   zimmerman_wbj

Fri Jan 16, 2009 1:57 pm (PST)

hi dibyadeep,

Was your system a rectangular domain? Presuming I have the picture
correct, then my guess is that you have a resolution problem near
the boundary with the difference of exponentials (electrochemical
problem, electrode?)

I would suggest using the tools in the mesh menu to refine your mesh
around boundary 4. The number one reason for "my model does not
converge" is insufficient mesh resolution. Depending on your
parameters, your variation could be steep near this boundary, and
the boundary layer unresolved. Hence the need for more mesh.

The electrostatic equation you wrote has an analogue to steady heat
conduction which is a pretty well behaved system numerically if it is
fully resolved. You have not fallen into any major traps like the
Hadamard ill-posed problem. Given that you have a well defined set of
three Dirichlet conditions pining down your potential, your problem is
not singular. So it must be resolution.

good luck,
will

--- In COMSOL_Users@yahoogroups.com, "dibyadeep" <dibyadeep@...> wrote:
>
> Hii all,
>
> I am trying to solve a linear pde equation, with exponential boundary
> conditions. The equations are essentially a highly simplified version
> of my actual set.
>
> pde: del^2(phi)=0
> bc1:V=0
> bc2:V=0
> bc3:V=5
> bc4:-k*d(phi)/d(n)=i0*(exp(a1*V)-exp(-a2*V))
>
> It is the fourth boundary condition which is causing the problem. When
> I solve the equation with the default number of Newton steps it never
> converges. I was able to solve the problem accurately, but had to
> increase the number of steps to 500.
>
> Is there anyother way to solve such problems? The actual set is much
> more involved and complicated, so I am a bit concerned that if such a
> simple equation takes so long to solve, how long a more complicated
> set of equations might take.
>
> I have dealt with COMSOL for quite a bit, but I never dealt with
> non-linear problems and problems with such complicated couplings. It
> would be great if some of you could atleast advice me on what path to
> take, otherwise I fear I might have to ditch COMSOL and go for the
> hard way of directly coding and using some numerical scheme to solve
> the equations.
>
> Sincerely
>
> Dibyadeep
>

3a.

Re: Comsol to Matlab

Posted by: "zimmerman_wbj" w.zimmerman@shef.ac.uk   zimmerman_wbj

Fri Jan 16, 2009 1:58 pm (PST)

Dear Emmanuel,

Should your library have a copy (stop groaning regulars!), then
Ch. 5 of Multiphysics Modeling with FEM by that Zimmerman guy
has an example of calculating the eigenvalues and eigenvectors of
the Rayleigh-Benard convection problem in Matlab using an exported
fem structure, and doing a parametric sweep of Rayleigh number
using a Matlab for-loop.

The key to linking Comsol with Matlab is the paths. If it is a linux
box, you use the command
comsol matlab path
which loads matlab with comsol subroutines/functions/libraries in the
path, if your sys admin set it up with that functionality.
In Windows, it is usually in the start menu folder as Comsol
Multiphysics with Matlab. Comsol script, if you have a license, is a
cut down version of matlab, basically without the toolbox add-on
capability.

I am running two background matlab jobs at the moment that use the
load command to access fem structures that were exported by Comsol to
Matlab/Comsol Script and then saved to file. There are a few niggles
to doing this in 3.5 that differ from earlier versions.

Here's a snippet of the code:
for k=1:length(params)

load steadypipe.mat fem
Re=params(k);
pamp=7.;

% Constants
fem.const = {'pamp',pamp,'Re',Re};
% Multiphysics
fem=multiphysics(fem);

% Extend mesh
fem.xmesh=meshextend(fem,'report', 'off');

% Mapping current solution to extended mesh
%init = asseminit(fem,'init',fem0.sol,'xmesh',fem0.xmesh);

% Solve problem
fem.sol=femtime(fem, ...

Turning off the report (and in the femsolver) is key to
running in the background on a linux box so as to squealch java
interactions.

Good luck. Sounds like a proper study. I published my last
eigenvalue / eigenvector sweep of a stability problem using
Matlab/Comsol MP in

WB Zimmerman, JM Rees, "Rollover instability due to double diffusion
in a stably stratified cylindrical tank" Physics of Fluids 19:
123604, 2007.

not that I am begging for a citation when you publish, but if it is
appropriate ... My boss had the gaul to insinuate my H-index of
citations was too low at the annual review this year. So I have
addressed this problem in the obvious way -- not at all. Filed a
patent instead!

Best regards,
Will

--- In COMSOL_Users@yahoogroups.com, emmanuel akowuah <mekoahh@...> wrote:
>
> Hello everyone,
>
> I am trying to connect comsol to matlab to enable me solve a problem
which requires several iteration. I am currently developing the code.
The problem I have is that I do not have a way to access
postprocessing data. For example, I am dealing with an eigen value
problems and I want a way to store the solution at each stage in a
variable in matlab.
>
> Could any one please help?
>
> Thanks
>
>
> Find cheap products online!!
>

4.

Moving Mesh with Incompressible Navier-Stokes

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

Fri Jan 16, 2009 1:58 pm (PST)

Hello,

I am trying to simulate the motion of a liquid droplet sucked into/out
from a capillary tube using COMSOL's Moving Mesh and Incompressible
Navier-Stokes functions.

I could somehow model the droplet going into a tube. However, I do not
know how to model the one coming out. Inside the tube, the boundary
condition is slip, but once a part of the droplet boundary comes out
of the tube, the condition is not slip anymore; constant normal stress
should be exerted on the boudnary.

Therefore, boundary condition should depend on the location of the
boundary in the space, which also depend on time because the droplet
is moving. Does anybody know how to change the boundary condition with
respect to the location?

Thanks,

YS

5a.

Re: script:how to use previous solution in equation coefficients for

Posted by: "said ndt" saidndt@yahoo.fr   saidndt

Fri Jan 16, 2009 1:58 pm (PST)



g79la <giacomopo@yahoo.it> wrote: Hi everybody,

I'm new to CMP and I'm trying to solve the following problem. For simplicity let's say that the
governing equation is:

div(c*grad(u))=f

with some BC on u.

I have no problem in setting up the BVP with a script (I use Matlab btw) but now what I would
like to do is iterate the solution changing fem.f as a function of the previous solution. Is this
possible?

Thanks in advance for your help,

Giacomo





B.Saïd

6a.

Re: scale the geometry

Posted by: "Alex MN" alemns@hotmail.com   alemns00

Sat Jan 17, 2009 8:50 am (PST)


Just a follow up question...How to deal with huge aspect ratio geometries then?Like, for example, few "cm" in the x,y-directions, and few "nm" in the z-direction? My simulated geometries are always like that and I can only create a mesh when I use the "Mesh scaling" option. Sometimes I got strange results, but I guess they shouldn't change that much. Ah...and...to create a mesh, when the computer doesn't run out of memory or crashes...it sometimes takes days...not very productive!TksTo: COMSOL_Users@yahoogroups.comFrom: vedenev@yahoo.comDate: Fri, 16 Jan 2009 02:43:06 -0800Subject: [COMSOL_Users] Re:scale the geometry

Comsol has speciall button "scale" for geometry scaling on the left panel. Select all geomtry and push this button. Mesh scaling not scale geometry it is just different mehses on the same geometry------------------------------------Maxim Vedenev, Matlab+Comsol freelancerhttp://simulations.narod.ru/comsol










__________________________________________________________
Show them the way! Add maps and directions to your party invites.
http://www.microsoft.com/windows/windowslive/events.aspx
7.

Error in UMFPACK back substitution.

Posted by: "gavin" liugx_2@yahoo.com.cn   liugx_2

Sat Jan 17, 2009 8:50 am (PST)

Hi Guys,

I was told a error infomation as belows when I run a two phase flow of porous media. I do not know where is wrong and how to fix it. I appreciate any suggestions on it.

Error: 7033
Error in UMFPACK back substitution.

Gavin

__________________________________________________________
好玩贺卡等你å',邮箱贺卡全新上线!
http://card.mail.cn.yahoo.com/
Recent Activity
Visit Your Group
Yahoo! Finance

It's Now Personal

Guides, news,

advice & more.

Sitebuilder

Build a web site

quickly & easily

with Sitebuilder.

New web site?

Drive traffic now.

Get your business

on Yahoo! search.

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

沒有留言: