Re: FiPy 3.0 install on ubuntu 11.10 64 bit.

2012-08-22 Thread Daniel Wheeler
installation > and it stopped working altogether. > What stopped working? The matplotlib installation or fipy? -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: FiPy 3.0 install on ubuntu 11.10 64 bit.

2012-08-22 Thread Daniel Wheeler
ng for ubuntu :-( > > Thanks for the info. > ___ > fipy mailing list > fipy@nist.gov > http://www.ctcms.nist.gov/fipy > [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ] > -- Daniel Wheeler _

Re: TypeError: array cannot be safely cast to required type

2012-08-21 Thread Daniel Wheeler
ilures=33) > > !!! > Skipped 83 doctest examples because the `tvtk` package cannot be imported > > !!!!!!! > > Any idea? Thanks in advance. > > Fausto

Re: restrictions on nonlinear differential terms

2012-08-16 Thread Daniel Wheeler
ext. I'd be very interested to learn why, and in the process, gain a > greater understanding of how FiPy works. > I think the method of lines is a hybrid non-linear, linear solver. It is probably best to separate the two, choosing a non-linear method (Picard or Newton) and a linear

Re: restrictions on nonlinear differential terms

2012-08-16 Thread Daniel Wheeler
licit. The way I wrote the equation above only includes one derivative that is explicit (in the second to last term). This should be more stable than just evaluating the last term completely explicitly (which you could always do with getGrad()).That is basically what you would do with FD, so you ca

Re: Fundamental question on boundary conditions at infinity

2012-08-08 Thread Daniel Wheeler
domains maybe using an analytical estimate as a baseline. -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: Including a term with integration over a dummy variable

2012-07-31 Thread Daniel Wheeler
On Tue, Jul 31, 2012 at 11:16 AM, Daniel Wheeler wrote: > On Mon, Jul 30, 2012 at 10:58 PM, Daniel Farrell wrote: > >> >> > Just use what you have written. Should work as is. Actually, it should be > > numpy.exp( -scipy.quad( lambda x: phi([[x]]), 0, x)[0] ) > &g

Re: Including a term with integration over a dummy variable

2012-07-31 Thread Daniel Wheeler
is the interpolated value of the cell variable at the given positions. -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: coupled equations - large timesteps in fipy-2.1.3 and fipy-trunk

2012-07-31 Thread Daniel Wheeler
will "copy-n-paste" from the trunkfolder > work? or do i have to pay attention here on something? > Not sure. What exactly are you going to copy and paste? Either use virtualenv or set the python path to point at the base fipy directory after you chec

Re: Conservation of normalized function

2012-07-16 Thread Daniel Wheeler
the memory leak that could well be. For some reason, I rarely use the Pysparse GMRES solver because it has given me problems in the past. Try using Trilinos's GMRES solver if you can and see if it helps. Cheers -- Daniel Wheeler ___ fipy mailing

Re: fipy Grid2D vs. Grid3D

2012-07-16 Thread Daniel Wheeler
=phi.getGrad()[1] > Traceback (most recent call last): > File "", line 1, in > File > "/home/x_ferta/PYTHON_MODULES/lib/python2.7/site-packages/FiPy-2.1.3-py2.7.egg/fipy/variables/variable.py", > line 1335, in __getitem__ > -- Daniel Wheeler

Re: Changing Boundary Conditions

2012-07-09 Thread Daniel Wheeler
__ == '__main__': > temp_viewer.plot() > > > I just can't seem to figure out how to implement that within my solver. > Can anyone suggest a way to do this? > > Thank you in advance :) > Kendall > > > ___

Re: Conservation of normalized function

2012-07-06 Thread Daniel Wheeler
very slowly. This could be due round off in the solver. The np.trapz seems to be very different from the cell average. Is that calculation taking into account that the values are cell centered so the end points may not be weighted correctly? -- Daniel Wheeler

Re: ConvectionTerm & ImplicitSourceTerm variable assignment in coupled equations

2012-07-06 Thread Daniel Wheeler
other is preferable, but it would seem to be better for the term to share the implicit variable with the equation that nominally solves that variable. I have never tested this issue so I don't really know or have any good mathematical reasoning, just a hunch. -- Daniel Wheeler ___

Re: Solve Eikonal Equation

2012-07-05 Thread Daniel Wheeler
t examples. I will be doing some comparisons in the next few weeks and will keep you posted on my findings. -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: ConvectionTerm & ImplicitSourceTerm variable assignment in coupled equations

2012-07-02 Thread Daniel Wheeler
ely sure. Try it and see. I would say that the former is probably better. > > Can't say it enough, but thank you again for all your kind and generous > help. > No problem. Cheers -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: transient conduction and convection in 2-D cylinder

2012-06-26 Thread Daniel Wheeler
to share my approach that seems to work OK. If there > are suggestions for improvements I certainly don't mind hearing them. > Douwe, The script looks good to me. Good luck with your work. Cheers -- Daniel Wheeler ___ fipy mailing list fi

Re: Re: FiPy query

2012-06-22 Thread Daniel Wheeler
allows me to understand what I'm doing a little better. Anyway, good luck with your work. > The FiPy works in mysterious ways! > :-) -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: Re: FiPy query

2012-06-22 Thread Daniel Wheeler
atamin=-1.5, datamax=1.5) for i in range(5): res = eqn.sweep() vi.plot() print res raw_input('stopped') On Mon, Jun 18, 2012 at 11:27 AM, Allawala, Altan wrote: > Thanks for your response, Daniel. > > On Mon, Jun 18, 2012 at 10:18 AM, Daniel Wheeler < > dani

Re: Re: FiPy query

2012-06-22 Thread Daniel Wheeler
Altan, I'm stumped by this right now. I might look into again in the future. Cheers. On Mon, Jun 18, 2012 at 11:27 AM, Allawala, Altan wrote: > Thanks for your response, Daniel. > > On Mon, Jun 18, 2012 at 10:18 AM, Daniel Wheeler < > daniel.wheel...@gmail.com> wrote: &g

Re: Re: FiPy query

2012-06-18 Thread Daniel Wheeler
he code that you > provided and it made no qualitative. > I see a slight difference. The curve for psi does not have multiple changes in gradient. How does the fipy solution differ from the mathematica solution? The residual is tiny and the boundary conditions se

Re: scikit-fmm: a new extension module for signed distance functions and the Eikonal equation

2012-06-14 Thread Daniel Wheeler
2.04532893 2.75243571] Do you have any idea about what is going on? Thanks. On Mon, Jun 4, 2012 at 10:35 AM, Daniel Wheeler wrote: > On Sun, Jun 3, 2012 at 8:30 PM, Jason Furtney wrote: >> Daniel, >> >> Thanks for your email on this. I guess I never tested this on a

Re: Re: FiPy query

2012-06-14 Thread Daniel Wheeler
to set the value of $\psi$ at x=0. But since x=0 > is now no longer at the boundary of the mesh, it appears that one would > somehow need to set a value of Psi right in the middle of the mesh - a > "non-boundary condition". Can FiPy do this? You can do this with

Re: Re: FiPy query

2012-06-13 Thread Daniel Wheeler
On Wed, Jun 13, 2012 at 11:31 AM, Daniel Wheeler wrote: > I have reposted the question to the mailing list. In the mean time, I > will have a look at the code that you created. The equation that I am > trying to solve for is: > > 0=\frac{\partial\phi}{\partial x}+i*\frac{\

Fwd: Re: FiPy query

2012-06-13 Thread Daniel Wheeler
-- Forwarded message -- From: Daniel Wheeler Date: Wed, Jun 13, 2012 at 11:31 AM Subject: Fwd: Re: FiPy query To: Daniel Wheeler Original Message Subject:        Re: FiPy query Date:   Wed, 13 Jun 2012 10:52:04 -0400 From:   Allawala, Altan To:     Wheeler

Fwd: Re: FiPy query

2012-06-13 Thread Daniel Wheeler
-- Forwarded message -- From: Daniel Wheeler Date: Wed, Jun 13, 2012 at 11:30 AM Subject: Fwd: Re: FiPy query To: Daniel Wheeler Original Message Subject: Re: FiPy query Date: Wed, 13 Jun 2012 10:20:48 -0400 From: Daniel Wheeler To: Allawala, Altan On

Re: Beer-Lambert law with FaceValue boundary conditions

2012-06-08 Thread Daniel Wheeler
x / 2)) < right_anchor = 1e+10 * (x > (D - dx / 2)) < I_right.faceGrad.constrain(0, m.facesRight) < I_left.faceGrad.constrain(0, m.facesLeft) --- > left_anchor = 1e+10 * (x < dx) > right_anchor = 1e+10 * (x > D - dx) Cheers -- Daniel Wheeler __

Fwd: dynamic boundary condition

2012-06-06 Thread Daniel Wheeler
-- Forwarded message -- From: Daniel Wheeler Date: Tue, Jun 5, 2012 at 9:51 AM Subject: Re: dynamic boundary condition To: wang yunbo On Mon, Jun 4, 2012 at 4:05 PM, wang yunbo wrote: > > In the example, the boundary condition is written like > this: metalEq

Re: Solving a convection diffusion reaction equation

2012-06-06 Thread Daniel Wheeler
source terms to set the value of \varphi to zero in these end cells using a really large implicit source term just for the end cells. This will avoid all the boundary issues. Try that and see if it helps. Good luck. -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: 3D Transient Conduction - Cylindrical Coordinates

2012-06-06 Thread Daniel Wheeler
le with gmsh directly, independent from fipy or python. Load a geo file into gmsh with $ gmsh file.geo at the command line. It'll throw up the GUI so you can inspect the geometry. Commenting out sections from the file and loading into gmsh demonstrated that "Line Loop(23)" has a

Re: 3D Transient Conduction - Cylindrical Coordinates

2012-06-05 Thread Daniel Wheeler
rance for recombination. Try rescaling the problem so the edge lengths are close to 1. Also cut and paste the gmsh commands into a geo file and run that against gmsh rather than using fipy making it easier to debug. -- Daniel Wheeler ___ fipy mailing

Re: scikit-fmm: a new extension module for signed distance functions and the Eikonal equation

2012-06-04 Thread Daniel Wheeler
.  The extension velocity example is here: > https://github.com/scikit-fmm/scikit-fmm/blob/master/examples/extension_velocities_example.py Great. I'll look into that. -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fi

Re: scikit-fmm: a new extension module for signed distance functions and the Eikonal equation

2012-05-31 Thread Daniel Wheeler
4 #1 SMP Sat May 5 01:12:59 UTC 2012 x86_64 GNU/Linux and debian version 6.0.5 -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: scikit-fmm: a new extension module for signed distance functions and the Eikonal equation

2012-05-31 Thread Daniel Wheeler
I should let you know that I'm presenting a poster at the scipy conference on my experiences with lsmlib/scikit-fmm and modeling electrochemical deposition problems. -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy

Re: scikit-fmm: a new extension module for signed distance functions and the Eikonal equation

2012-05-31 Thread Daniel Wheeler
gt; http://www.ctcms.nist.gov/fipy >  [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ] -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: 2-D convection to fixed point

2012-05-30 Thread Daniel Wheeler
ot sure what you mean. Do you mean that the flow should all be going to a point location? You could certainly construct a velocity that points to a single point. Can you write what you want mathematically? -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: PCG Solver

2012-05-21 Thread Daniel Wheeler
PCG solver work in this case?  Thank you. > > > Best, > > Yunbo > > > ___ > fipy mailing list > fipy@nist.gov > http://www.ctcms.nist.gov/fipy >  [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ] --

Re: RE-visiting advection-diffusion equations in 2D

2012-05-02 Thread Daniel Wheeler
ical outputs, although the > numerical solutions remain the same. Is there then an optimal way to > illustrate the results? Doesn't seem to do that for me. This could be caused by your matplotlib setup. If you plot twice after the solve step do you get the correct image? > Thank you all

Re: NLSE coupled equations error message TypeError: __init__() got an unexpected keyword argument 'var'

2012-04-17 Thread Daniel Wheeler
__version__" Also do the tests all pass? -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: LD_LIBRARY_PATH

2012-04-17 Thread Daniel Wheeler
l the libraries > fipy requires? > Where do you set the LD_LIBRARY_PATH currently? > Can I force fipy to use python RPATH? > Never heard of RPATH. -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: Complex Coefficients & Curl Operator

2012-04-11 Thread Daniel Wheeler
y/browser/branches/riemann/examples/riemann/rotation.py > for some help. > Would you be interested in bug reports if it's something that's ready > to be experimented with? > Sure. Give me your thoughts on the design as well. It needs cython right now

Re: Numerical error for computeDistanceFunction2d

2012-04-11 Thread Daniel Wheeler
a comment in the ticket or any of your thoughts in general. Don't hesitate looking under the hood of LSMLIB if you feel that you might be able to debug these sorts of issues. I am in contact with the LSMLIB author and I also now have commit privileges to the r

Re: Complex Coefficients & Curl Operator

2012-04-10 Thread Daniel Wheeler
haps based on existing > gradient functionality? I suppose that there are workarounds using > the existing API, but if they're part of an equation I suspect that > might get more complex than desirable. > You'll have to wait for vector equations to do this correc

Re: 2 basic questions (negative mesh domain & moving wave)

2012-04-10 Thread Daniel Wheeler
m, > a original Gaussian function is not preserved over time when given only a > convection term and no diffusion term. > No scheme will perfectly preserve these features, but higher order schemes + limiters will do a good enough job for most applications. Cheers. -- Daniel Wheeler ___

Re: 2 basic questions (negative mesh domain & moving wave)

2012-04-06 Thread Daniel Wheeler
tral Methods in MATLAB" or "Finite Volume Methods for Hyperbolic Problems" for a better understanding. Cheers -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: Specifying different boundary conditions for two-component (coupled simultaneous) problems

2012-04-03 Thread Daniel Wheeler
l this be possible with the next release? I think so. Shouldn't be a problem. > I cannot find and way to > specify which CellVariable the boundary conditions corresponds to in > the fipy/boundaryConditions classes. > That's cos it's not there. Constraints belong to va

Re: Discontinuity of solution at region boundaries in 3D gmsh mesh

2012-04-02 Thread Daniel Wheeler
r: array cannot be safely cast to required type Don't I also need the msh file? I swapped 'twin_ap_3D_X4.msh' for 'twin_ap_3D_X4.geo' in the script and it gave the error above. Cheers -- Daniel Wheeler ___ fipy mailing list

Re: 2 basic questions (negative mesh domain & moving wave)

2012-04-02 Thread Daniel Wheeler
oeff = (-40.,) ##eq = TransientTerm() == PowerLawConvectionTerm(coeff=convCoeff) eq = TransientTerm() == VanLeerConvectionTerm(coeff=convCoeff) # temporal config #timeStepDuration = 0.1 * dx ** 2 / (2 * 30) *3 dt = 0.9 * dx / abs(convCoeff[0]) steps = 500 # solve for transient solution for steps in range(steps):

Re: Discontinuity of solution at region boundaries in 3D gmsh mesh

2012-03-29 Thread Daniel Wheeler
ou send the script that you are running and the geo file that generated the mesh. Cheers. -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: How to obtain the index of a cell (variable) at a particular position?

2012-03-29 Thread Daniel Wheeler
llVariable(mesh=m, value=m.getCellCenters()[0]) >>> a = fipy.numerix.array([[2.5]]) >>> a.shape (1, 1) >>> v(a) array([ 2.5]) Cheers -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: Example 5.1 revisited

2012-03-26 Thread Daniel Wheeler
On Mon, Mar 26, 2012 at 12:12 PM, Daniel Wheeler wrote: > On Mon, Mar 26, 2012 at 10:42 AM, Fausto Arinos de A. Barbuto < > fausto_barb...@yahoo.ca> wrote > >> I didn't know that there were a wiki where I might publish my findings. >> That's (good) news >

Re: Example 5.1 revisited

2012-03-26 Thread Daniel Wheeler
transient > and 2D problems, once again following V&M's tracks. > It's cool. All feedback is welcome. > I didn't know that there were a wiki where I might publish my findings. > That's (good) news > to me. > I just not

Re: Problems with 3D Gmsh-meshes and Mayavi

2012-03-26 Thread Daniel Wheeler
-- > Andreas Hasenkopf > Phone: +49 151 11728439 > Homepage: http://www.hasenkopf2000.net > GPG Pub Key: http://goo.gl/4mOsM > > > ___ > fipy mailing list > fipy@nist.gov > http://www.ctcms.nist.gov/fipy > [ NIST internal

Re: Example 5.1 revisited

2012-03-26 Thread Daniel Wheeler
_ > fipy mailing list > fipy@nist.gov > http://www.ctcms.nist.gov/fipy > [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ] > > > > ___ > fipy mailing list > fipy@nist.gov > http://www.ctcms.nist.gov/fipy > [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ] > > -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: Matrix display

2012-03-23 Thread Daniel Wheeler
p://www.ctcms.nist.gov/fipy/documentation/FAQ.html#envvar-FIPY_DISPLAY_MATRIX > > > ___ > fipy mailing list > fipy@nist.gov > http://www.ctcms.nist.gov/fipy > [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ] >

Re: directory-dependent viewer import

2012-03-23 Thread Daniel Wheeler
"." in it then it might work, but maybe just rename the pylab.py file to something else assuming it is a file that you created that happens to have a name clash. Cheers -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.ni

Re: ValueError

2012-03-13 Thread Daniel Wheeler
s 4420. V is a tuple of len 1 and it is multiplied by an integer. This just makes the tuple longer, which I'm sure is not what you want. -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: Problems with 3D Gmsh-meshes and Mayavi

2012-03-13 Thread Daniel Wheeler
t process fipy results with gmsh. -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: instability in simple 3D diffusion

2012-03-07 Thread Daniel Wheeler
On Wed, Mar 7, 2012 at 2:36 PM, Justin Lazear wrote: > ** > Switching to DiffusionTermNoCorrection fixed it. Thanks! > Excellent! -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ON

Re: instability in simple 3D diffusion

2012-03-07 Thread Daniel Wheeler
t; 2.1.2 > > [~]$ uname -r > 2.6.34.9-69.fc13.x86_64 > > [~]$ gmsh --version > 2.5.0 > > Thanks, > Justin > > ___________ > fipy mailing list > fipy@nist.gov > http://www.ctcms.nist.gov/fipy > [ NIST internal ONLY: htt

Fwd: Diffusion model on level set

2012-03-06 Thread Daniel Wheeler
-- Forwarded message -- From: Daniel Wheeler Date: Mon, Mar 5, 2012 at 12:49 PM Subject: Re: Diffusion model on level set To: wang yunbo On Sun, Mar 4, 2012 at 10:00 PM, wang yunbo wrote: > Hi Dr. Wheeler, > > For a classic diffusion model, I would need to calc

Re: scikit-fmm: a new extension module for signed distance functions and the Eikonal equation

2012-03-01 Thread Daniel Wheeler
alternative is fantastic. I think fipy should have a single interface to both libraries and that's probably what I'll do after evaluating scikit-fmm. > Hopefully this module is of interest to the FiPy community. I would > like to add to th

Re: numpy import: from automatic to manual

2012-02-27 Thread Daniel Wheeler
do it. Try puting "from fipy.tools.numerix import *" at the top of your scripts and they should work. Cheers -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: Curvature calculation revised

2012-02-24 Thread Daniel Wheeler
is the best way to update distance variable in this situation? > That doesn't make much sense to me. -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: Curvature calculation revised

2012-02-23 Thread Daniel Wheeler
to build the manual by python setup.py build_docs --pdf and also > using --html. But I am getting errors from sphinx, so I was wondering if > there is a manual you could provide me. > > > Best, > > Yunbo > > On Feb 20, 2012, at 4:43 PM, Daniel Wheeler wrote: > > &

Re: 3D Poisson with fipy

2012-02-21 Thread Daniel Wheeler
ary > > u=0 > > Then i would like to plot the energie norm of the error, > > Any hint? > > FKM > > > > > ___ > fipy mailing list > fipy@nist.gov > http://www.ctcms.nist.gov/

Re: Curvature calculation revised

2012-02-20 Thread Daniel Wheeler
x, y = m.getCellCenters() instead of m.x and m.y and it should work. The changes to get it ti work with 2.1.3 are trivial so I wouldn't update your version of fipy, -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.

Re: Curvature calculation revised

2012-02-17 Thread Daniel Wheeler
ine 7, in >m = Grid2D(nx=N, ny=N, Lx=L, Ly=L) > TypeError: Grid2D() got an unexpected keyword argument 'Lx' > > When we replace them with the standard dx and dy, then circle.py fails > further down in the script. Which fipy version are you using? > > Thanks.

Re: Curvature calculation revised

2012-02-17 Thread Daniel Wheeler
'include_dirs' : np.get_include() > TypeError: install() got an unexpected keyword argument 'setup_args' > > > It seems the wrappers don't work here, how can I make it work? Is your > version of lsmlib modified? > Thanks. > > Best, > > Yunbo

Re: Question about the fipy's finite difference scheme

2012-02-15 Thread Daniel Wheeler
ll n+1? > The upwind convection term does that. Hope that helps. -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: Semilinear wave equation in FiPy?

2012-02-15 Thread Daniel Wheeler
f(u(x, t), x) I > need to know u, the unknown! > You're quite right! What I said doesn't make any sense. As you say, the right way is to split it an integrate in time, which seems reasonable. It remains local that way. -- Daniel Wheeler

Re: Semilinear wave equation in FiPy?

2012-02-14 Thread Daniel Wheeler
dead atm - even browsing to it through the repo > brings me to an error page. The others work though. I'll try the Riemann > branch. > There is something wrong with the trac site. If you hit reload a few times it will show. It is really getting annoying. Good luck! -- Dani

Re: Semilinear wave equation in FiPy?

2012-02-13 Thread Daniel Wheeler
l not quite in the standard form for FiPy. I'm guessing I'd > have to write the uxx term as a source term? Is FiPy suited to this > kind of problem - and if not can you recommend another (preferably open > source) tool? I'd appreciate any advice. > You could also

Re: Curvature calculation revised

2012-02-10 Thread Daniel Wheeler
rds, > > Yunbo > On Feb 10, 2012, at 11:18 AM, Daniel Wheeler wrote: > > On Thu, Feb 9, 2012 at 4:56 PM, wang yunbo wrote: > >> Hi, >> >> 1. when I look at the 'data' file and checked some point which suppose >> to be at the surface e.g (50

Re: Curvature calculation revised

2012-02-10 Thread Daniel Wheeler
if you wish. In short I recommend that you give lsmlib a shot and then use the my cython wrappers to integrate with python. Cheers. -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: fipy installation problems on ubuntu

2012-02-09 Thread Daniel Wheeler
eLoader" Try running the build only again to double check the output $ python setup.py build in the fipy directory and then $ sudo python setup.py install Does it build okay? The funny thing is that it seems to have installed fipy and then barfed dur

Re: fipy installation problems on ubuntu

2012-02-08 Thread Daniel Wheeler
d/release/17> -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: fipy installation problems on ubuntu

2012-02-08 Thread Daniel Wheeler
out why the "python setup.py install" of fipy is not working. To be clear, when you try to install fipy you get $ sudo python setup.py install ... line 11, in import numpy.core.numeric as NX AttributeError: 'module' object has no attribute 'core' Wh

Re: fipy installation problems on ubuntu

2012-02-07 Thread Daniel Wheeler
1, in > File "fipy/__init__.py", line 41, in >from solvers import * > File "fipy/solvers/__init__.py", line 68, in >raise ImportError, "Could not import any solver package. If you > are using Trilinos, make sure you have all of the necessary Trilinos >

Re: Curvature calculation

2012-02-07 Thread Daniel Wheeler
he best way to calculate the curvature? > var.getFaceGrad().getDivergence() should be second order accurate. -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Fwd: [Pysparse-users] Requesting help with PySparse installation

2012-02-03 Thread Daniel Wheeler
-- Forwarded message -- From: Daniel Wheeler Date: Fri, Feb 3, 2012 at 10:04 AM Subject: Re: [Pysparse-users] Requesting help with PySparse installation To: Leland M Barnard Cc: pysparse-us...@lists.sourceforge.net I am not sure what the issue is, but it might be better to

Re: fipy: Could not import any solver package

2012-01-30 Thread Daniel Wheeler
od luck with your research! -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: fipy: Could not import any solver package

2012-01-30 Thread Daniel Wheeler
t; mentioned. > I used python-2.7.2.msi with pysparse-1.1.1.win32-py2.7.exe. > > Any suggestion? > Can you import pysparse at the python command line? Try >>> from pysparse import itsolvers Does that work? -- Daniel Wheeler _

Re: Lax algorithm

2012-01-25 Thread Daniel Wheeler
be able to implement one by using a staggered grid system in 1D just to test it. Actually, for 1D explicit, it would be easy to do just with numpy alone. No need for FiPy. -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.go

Re: 2.1.3

2012-01-25 Thread Daniel Wheeler
ownloader > > What should one then do? > > F. > > > > ___ > fipy mailing list > fipy@nist.gov > http://www.ctcms.nist.gov/fipy > [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ] > > -- Daniel W

Re: Understanding the terms.

2012-01-23 Thread Daniel Wheeler
ucting an operator variable that is used as a convection coefficient. Unfortunately, the FiPy web page doesn't have enough highlighted convection examples. They seem to be hidden away in the examples directory. -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: Curvature calculation

2012-01-20 Thread Daniel Wheeler
rgence [ 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4.] Cheers. -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: transient solutions of nth order diffusion example

2012-01-19 Thread Daniel Wheeler
with the boundary conditions provided. It could also be the choice of solver. That particular example needs to be diagnosed and fixed (we just don't have time), but the fourth order term itself is fine for most of the examples. Cheers -- Daniel Wheeler ___

Re: Building Trilinos

2012-01-18 Thread Daniel Wheeler
On Wed, Jan 18, 2012 at 2:43 PM, Raymundo Arroyave wrote: > Do you have a procedure to build fipy+trillinos under ubuntu? > It's packaged (python-pytrilinos) for Ubuntu and Debian now. -- Daniel Wheeler ___ fipy mailing list fipy@ni

Re: Building Trilinos

2012-01-18 Thread Daniel Wheeler
On Wed, Jan 18, 2012 at 2:59 PM, Daniel Wheeler wrote: > On Wed, Jan 18, 2012 at 2:43 PM, Raymundo Arroyave > wrote: > >> Do you have a procedure to build fipy+trillinos under ubuntu? >> > For FiPy try using the deb at <http://matforge.org/fipy/downloader/downlo

Re: cahnhiliard parallel

2012-01-13 Thread Daniel Wheeler
On Fri, Jan 13, 2012 at 11:40 AM, Daniel Wheeler wrote: > On Sat, Jul 7, 2012 at 11:36 AM, Ferenc Tasnadi wrote: > > > >> However, if I run the examples/cahnHilliard/mesh2D.py parallel; the >> script runs, but phi with using >> phi.getGlobalValue() >> does n

Re: cahnhiliard parallel

2012-01-13 Thread Daniel Wheeler
I think there is a problem with the default solver when running this example. Try switching the solver to LinearLUSolver. Does it evolve now? Does it also work in parallel after the switch? $ mpirun -np 2 python examples/cahnHilliard/mesh2D.py --trilinos Cheers -- Daniel Wheeler ___

Re: pytrilinos solver

2012-01-05 Thread Daniel Wheeler
sient diffusion. Press to proceed... > True > True > Implicit steady-state diffusion. Press to proceed... > Time-dependent boundary condition. Press to proceed... > True > True > True > True > [matter1: diffusion]$ > > > Best wishes, > Ferenc > > > >

Re: Handling of stochastic differential equations

2012-01-05 Thread Daniel Wheeler
;> >> A look at the exponential equation supports the condition of mean != 0. >> So does this mean the default mean for ExponentialNoiseVariable is poorly >> set and requires manual configuration for all future operations? >> >> Thanks! >> >> >> &g

Re: pytrilinos solver

2012-01-04 Thread Daniel Wheeler
running: $ mpirun -np 2 python setup test --trilinos -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: pytrilinos solver

2012-01-04 Thread Daniel Wheeler
On Wed, Jan 4, 2012 at 12:08 PM, Daniel Wheeler wrote: > On Wed, Jan 4, 2012 at 11:56 AM, Ferenc Tasnadi wrote: > >> Dear Daniel, >> >> >> Thank you for your response. >> >> In my script I do not use any viewer. >> > > In your first em

Re: pytrilinos solver

2012-01-04 Thread Daniel Wheeler
ements. True True True ... Implicit steady-state diffusion. Press to proceed... Is that what you get? Thanks -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Re: pytrilinos solver

2012-01-04 Thread Daniel Wheeler
t in > installing trilinos. I use python2.7 and trilinos-10.8.3. > As Jon suggested. It is probably the viewer's inability to plot meshes with 0 cell meshes. -- Daniel Wheeler ___ fipy mailing list fipy@nist.gov http://www.ctcms

Re: Handling of stochastic differential equations

2012-01-04 Thread Daniel Wheeler
gt; mesh.getCellCenters()[0]. Any insight? > Would this do for a uniform mesh (for non-uniform meshes you can use the the noise variables included above)? from fipy import Grid1D, CellVariable, numerix, Viewer m = Grid1D(nx=100) v = CellVariable(mesh=m) v[:] = numerix.random.exponential(size

Re: Estimating Electric Current in 3D Model

2012-01-04 Thread Daniel Wheeler
ich we are trying to make variable objects work with all the meshing routines. However, at the current time we are not using units very much because of the difficulties we had making them work pervasively throughout fipy including terms and equations. I'm sure we'll give it another sta

<    1   2   3   4   5   6   7   8   9   10   >