Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: gradients in Comsol
Date: Mon, 28 Jul 2008 15:57:05 +0000 (UTC)
Organization: Helbling Technik Bern AG
Lines: 30
Message-ID: <g6kq8h$nqp$1@fred.mathworks.com>
References: <g6kntd$lso$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1217260625 24409 172.30.248.37 (28 Jul 2008 15:57:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 28 Jul 2008 15:57:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1271984
Xref: news.mathworks.com comp.soft-sys.matlab:482245



"selim selim" <fthsel@example.com> wrote in message
<g6kntd$lso$1@fred.mathworks.com>...
> Hallo,
> Is it possible to get gradients of velocity (u,v) in an 
> incompressible Navier stokes simulation in comsol?
> 
> Thanks a lot,
> --Selim

First, this is not something that you should ask here, as it
is more a Comsol question than a Matlab question, even if
you are using Matlab for the postprocessing. The Comsol
support can help you with this

Then, yes, basically if you can think of it, you can do it ;)

Could you tell more precisely what you are looking for? Do
you want to get simply the repartition of the fluid velocity
along a cross-section in your model? For this you should do:

data=posteval(fem,'u', [...])

instead of the [...], you'll have to put the geometric
element in which you want your speed.

data will then be a structure, containing, among others, the
coordinates of the nodes at which the speed is calculated,
and the values. There is a pretty comprehensive explanation
of posteval in the Comsol help. Just hit F1, go in the HTML
help for Comsol Multiphysics, and search posteval!