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

2009年1月24日 星期六

[COMSOL_Users] Digest Number 1544

Messages In This Digest (7 Messages)

1a.
Re: Plot a quantity along a curve From: Steven Conrad
2.
compressible (supersonic) flow From: bruce.failor@l-3com.com
3a.
Re: Time averaging in COMSOL From: Bruce Finlayson
3b.
Re: Time averaging in COMSOL From: Omar Al-Abbasi
4.
SYMMETRY PLOT From: qureshimeq
5.
how to set a vacuum condition ? From: Vlad Fig
6.
integrarion over a symmetric boundary From: thakkar_rahul7

Messages

1a.

Re: Plot a quantity along a curve

Posted by: "Steven Conrad" sconrad@lsuhsc.edu   saconrad01

Fri Jan 23, 2009 2:08 pm (PST)


Great suggestions, Dan. Your suggestions seem to depend on being able to
define the path as a mathematical function of the geometry. If there is
a complex path that can be drawn but not easily parameterized (e.g.
imported from another solid modeling program) , it seems embedding that
object is the only way to go. Correct me if I'm in error.

Steve

--- In COMSOL_Users@yahoogroups.com, "Daniel Smith" <smithie.uk@...>
wrote:
>
> Hi Pat, this is actually pretty easy to do. For example, suppose you
have a
> square of width 2 centered at (0,0). The coordinates are x=-1:1 and
y=-1:1.
> To plot the temperature on a circle of radius 0.5, you have 3 options:
>
> 1. Export the fem structure to the workspace and use the postinterp
function
> to query the data along a curve, then use the following:
> r=0.5;
> theta=linspace(0,2*pi,100);
> x=r*sin(theta);
> y=r*cos(theta);
> T=postinterp(fem,'T',[x;y]);
> plot3(x,y,T); grid on
>
> 2. To do this in the GUI, you can define two expressions,
r=sqrt(x^2+y^2)
> and theta=atan2(y,x). Then you can go to streamline plot and use:
> x: r*sin(theta)
> y: -r*cos(theta)
> In start coordinates, use x=0.5 and y=0. Set the linecolor to be
anything
> you want (e.g. temperature). This only allows you to visualize the
> expression as a color.
>
> 3. The most elegent way is, as usual, to use a coupling variable. In
this
> case, you define a subdomain extrusion coupling variable name T_extr
and
> expression: T. The source is the subdomain, with source transformation
x:x
> and y:y. The destination is the line x=0,y=-1:1 and the destination
> transformation is x: 0.5*sin(phi), y: -0.5*cos(phi), where
phi=2*pi*(1+y)/2.
> Now update the model and go to domain plot parameters. Plot T_extr on
the
> edge from x=0,y=-1:1. Using the extrusion coupling variable allows you
to do
> what you indicated below, i.e. plot any variables along curves of an
> arbitrary shape defined by any mathematical function you can think of.
>
> - Dan
>
>
>
> On 10/21/07, pkelecy pat@... wrote:
> >
> > Thanks Steven for the suggestion. That would certainly work,
although
> > it requires you to think ahead about what plots you want. I often
> > choose where to plot based on other results (isosurface or contour
> > results). So it would be nice to have a more flexible tool for doing
> > this.
> >
> > As a side comment, I'm often surprised at some of the limitations I
> > find in COMSOL. I tend to think of it as being a fairly mature and
> > sophisticated product, and in terms of it's modelling capabilities
it
> > actually is. But then something basic like this comes up, which has
> > me scratching my head. At the very least, you should be able define
a
> > series of connected line segments to plot along. Better yet would be
> > the ability to define paramentric curves (e.g. t=0:0.1:pi, x=cos(t),
> > y=sin(t) to plot along an arc). Doesn't seem like that would be too
> > hard to implement, and would be very flexible. I hope someone from
> > COMSOL is listening.
> >
> > Thanks again, -Pat
> >
> > --- In COMSOL_Users@yahoogroups.com
<COMSOL_Users%40yahoogroups.com>,
> > "Steven Conrad" sconrad@ wrote:
> > >
> > >
> > > For a 2D geometry, you can draw a line or curve inside the plane
that
> > > can serve as an internal boundary that you can use for Domain
Plot. In
> > > 3D, you can also embed a line or other object, but you may have
less
> > > flexibility.
> > >
> > >
> > > --- In COMSOL_Users@yahoogroups.com
<COMSOL_Users%40yahoogroups.com>,
> > "pkelecy" <pat@> wrote:
> > > >
> > > > I would like to generate a cross-section plot of a quantity
> > > > (temperature in this case) based on a curved path, rather than
> > > > straight line, within the model geometry. The line/extrusion
> > > > cross-section plot parameters tool appears to be set up for only
> > > > plotting along lines. Is there a way to generate this plot based
on a
> > > > curved path?
> > > >
> > > > On a related note, the User Guide makes it sound like you should
be
> > > > able to generate a quick line cross-section plot by clicking the
> > > > appropriate toolbar button (Draw Line for Cross-Section Line
Plot) and
> > > > selecting the endpoints with the mouse. For some reason when I
try
> > > > that I can only select one endpoint; COMSOL generates the other
> > > > endpoint by extruding the selected point perpendicular to my
view.
> > > > This is for a 3D model.
> > > >
> > > > It this how it's suppose to work?
> > > >
> > > > Thanks for any feedback on these. -Pat
> > > >
> > >
> >
> >
> >
>

2.

compressible (supersonic) flow

Posted by: "bruce.failor@l-3com.com" bruce.failor@l-3com.com   bhfailor

Fri Jan 23, 2009 3:07 pm (PST)



http://www.aerospaceweb.org/question/aerodynamics/q0074.shtml

I am new to COMSOL. Can it be used to find the gas density in the wake
(i.e. directly behind) a projectile moving at Mach 1 to Mach 3 in air?
The link above should show an example of the situation. Any suggestions
on how to set up the problem or pointers to examples of similar problems
that have already been solved would be great. - Bruce

3a.

Re: Time averaging in COMSOL

Posted by: "Bruce Finlayson" finlayso@u.washington.edu   bruce_galerkin

Fri Jan 23, 2009 3:10 pm (PST)

Under options, choose Integration Coupling Variable, Subdomain. Give
the quantity a name, and then put in the expression for what you want
to integrate. Then when the calculation proceeds in time, that
quantity will be calculated, too. It can be plotted by choosing the
Global Variables Plot, type the name into Expression choose it, and
say OK.

On Jan 23, 2009, at 8:10 AM, Omar Al-Abbasi wrote:

> Hi everyone,
>
> I am solving a transient fluid flow problem in a closed channel. I
> want to get the averaged velocity field of the domain over the
> entire time.
> Is there away to do it using the GUI.
>
> Appreciating any suggestions.
>
> Omar
>
>

Bruce A. Finlayson
Professor Emeritus of Chemical Engineering
Department of Chemical Engineering, Box 351750
University of Washington
Seattle, WA 98195-1750
206-685-1634; FAX 206-685-3451
http://faculty.washington.edu/finlayso/

3b.

Re: Time averaging in COMSOL

Posted by: "Omar Al-Abbasi" omabbasi@gmail.com   omabbasi911

Sat Jan 24, 2009 12:34 pm (PST)

Many thanks prof. Finlayson. I tried that by saying avg_vel then the
expression to be sqrt(u^2+v^2) for the velocity field. What I got was a
figure with the same reading all over the domain. In my model I will have
some vortex shedding where I want to add all stored velocities over time and
divide them by number of stored steps.

Did I do something wrong?

Omar

On Fri, Jan 23, 2009 at 6:07 PM, Bruce Finlayson
<finlayso@u.washington.edu>wrote:

> Under options, choose Integration Coupling Variable, Subdomain. Give
> the quantity a name, and then put in the expression for what you want to
> integrate. Then when the calculation proceeds in time, that quantity will
> be calculated, too. It can be plotted by choosing the Global Variables
> Plot, type the name into Expression choose it, and say OK.
>
> On Jan 23, 2009, at 8:10 AM, Omar Al-Abbasi wrote:
>
> Hi everyone,
>
> I am solving a transient fluid flow problem in a closed channel. I want to
> get the averaged velocity field of the domain over the entire time.
> Is there away to do it using the GUI.
>
> Appreciating any suggestions.
>
> Omar
>
>
> Bruce A. Finlayson
> Professor Emeritus of Chemical Engineering
> Department of Chemical Engineering, Box 351750
> University of Washington
> Seattle, WA 98195-1750
> 206-685-1634; FAX 206-685-3451
> http://faculty.washington.edu/finlayso/
>
>
4.

SYMMETRY PLOT

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

Sat Jan 24, 2009 12:34 pm (PST)

Dear Comsol Users,

In other FEM based softwares (specially in ANSYS), i have an
opportunity to solve the problem by using the symmetry (if exist) and
plot the solution for full model including the symmetry (EXPAND PLOT in
ANSYS). Is it possible in COMSOL.

Regards

Dr. Qureshi

5.

how to set a vacuum condition ?

Posted by: "Vlad Fig" vlad_fig@yahoo.com   vlad_fig

Sat Jan 24, 2009 12:34 pm (PST)

Hello all,

I have to analyze a heating device working under a vacuum bag.
The device, just an electric plate, is increasing in temperature depending on the amps applied.

Can someone recommend how to set a condition for working under vacuum?

Thank you,
Vlad

6.

integrarion over a symmetric boundary

Posted by: "thakkar_rahul7" thakkar.rahul7@gmail.com   thakkar_rahul7

Sat Jan 24, 2009 12:34 pm (PST)

Dear Comsol users,

I am simulating concentration at an electrode in 2 D axial mode where
it changes with time. In this mode, I would like to integrate the
concentration over the symmetric boundary rather than half of it that
is seen on the screen. The initial concentrations is 1 mm.

I do this by defining a variable, int_conc = K*2pi*r*conc in
integration coupling variables, K being constant. I also multiply by
2pi*r to take into account the circumference but the answer comes to
be of the magnitude 10-6 after integration and even lower after
multiplying with 2*pi*r since r is in the micron range.

Without integration it gives me a reasonable answer(graph) varying
from 0 to 1 mM over time. I don't understand why this is so. Am I
missing something ?

I appreciate any help.

Thanks,
Rahul
Graduate student - stuck in time !!

Recent Activity
Visit Your Group
Yahoo! Finance

It's Now Personal

Guides, news,

advice & more.

New business?

Get new customers.

List your web site

in Yahoo! Search.

Drive Traffic

Sponsored Search

can help increase

your site traffic.

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

沒有留言: