femlisp-user
[Top][All Lists]

## Re: [femlisp-user] femlisp examples

 From: Jason Sidabras Subject: Re: [femlisp-user] femlisp examples Date: Mon, 17 Sep 2007 13:28:46 -0500

Thanks Nicolas,

I can look at those files in more detail later tonight. Until then I would like to describe my situation in more detail.

I am working on a master's thesis in which I will be solving for eddy currents on an arbitrary conductive plate in a 2d domain with an applied H field perpendicular to the domain.From these solutions I could find the magnetic field associated with the eddy currents and use that solution to optimize the resulting H field to my desired distribution.

Once I have solved for a square conductive plate in the domain, I would then like to manipulate the shape of the initial square plate. In particular, cutting a multiple slots from one side to some distance into the conductive plate. I currently have a commercial 3d fem modeling program but my parameter space is huge and simulation times are 40+ minutes. By estimating the problem in 2d I hope to save time narrowing down the parameter space. I would also like to program more sophisticated optimization techniques in choosing the cut width, depth and placement.

I believe I will have to program my own domain class to accomplish this.

All this while learning lisp :)

Thanks,
Jason

On 17 Sep 2007 19:58:36 +0200, Nicolas Neuss <address@hidden> wrote:

> Hello,
>
> I've been working with femlisp for a week and using it as a learning
> tool for lisp. Over this period of time I have gotten used to working
> in the CLOS environment of lisp and a little bit of the lisp
> structure. I've come from a mainly python background which might have
> helped this transition.
>
> I am looking for some examples for femlisp to learn from, setting up
> domains and problems: Specifically I would like to build a simulation
> with two 2d domains. Domain_2 would be a subset of Domain_1 and have
> different properties.

Hello Jason,

you might look at the file
#p"femlisp:src;application;domains;inlay-domain.lisp" (especially the
functions n-cell-with-cubic-inlay and n-cube-with-ball-inlay) Maybe this
does already something similar to what you want. (Those domains are used in
the homogenization demos where effective properties are computed.)
Otherwise you should describe your situation more precisely.

> Also I have played around with triangle, but it seems the functions
> associated with femlisp;src;mesh;triangle.lisp aren't accessible from
> my command line under fl.mesh.

If you have irregular domains, then Triangle will probably be necessary.
Please check, that the program is installed correctly with 'make triangle'.
(Probably you will have to change the file
#p"femlisp:src;external;triangle/makefile" to compile without the -DLINUX switch.)

> I am using sbcl 1.0.5 on MacOSX, femlisp 0.9.9.
>
> Thank you,
> Jason

Yours, Nicolas