Fwd: More on VTK objects and mesh plotting with 3rd party packaages

2020-02-23 Thread A A
specializations of *vtkCell. *In Fipy *vtkLine*, *vtkPolygon* are specializations of *vtkConvexPointSet * I wonder whether this may be the root of the problem outlined in https://github.com/usnistgov/fipy/issues/312... -- Forwarded message - From: A A Date: Sun, Feb 23, 2020 at 2:43 PM

More on VTK objects and mesh plotting with 3rd party packaages

2020-02-23 Thread A A
Dear All, This question is loosely related to https://github.com/usnistgov/fipy/issues/312 but might perhaps not be exactly the same. I ran some tests in which I tried to plot a "broken" mesh by resetting the cell type of the underlying tvtk object the same way fipy's VTKCellDataSet method does:

Re: Some questions on the viewer

2020-01-23 Thread A A
TK_CONVEX_POINT_SET. I have a (stalled) development that does a better job > with mesh io, but higher priority tasks have gotten in the way. > > > On Jan 22, 2020, at 10:11 AM, A A wrote: > > > > > > This is somewhat related to my last comment about visualizin

Fwd: Some questions on the viewer

2020-01-22 Thread A A
ing fipy's choice of cell type 41. Is the choice of the cell type intentional or important here? If so it might be worth convincing those libraries to add cell type 41 plotting and i/o capabilities. -- Forwarded message - From: A A Date: Wed, Jan 22, 2020 at 12:22 PM Subject:

Re: Some questions on the viewer

2020-01-22 Thread A A
#x27;t know where. > > Is the discussion at > > https://www.ctcms.nist.gov/fipy/documentation/numerical/discret.html#higher-order-diffusion > helpful? > > > On Jan 21, 2020, at 1:25 AM, A A wrote: > > > > Hi Martin, > > > > Thanks for your response. That&

Re: Some questions on the viewer

2020-01-20 Thread A A
) is instantiated. For example: ``print('Ready')``. > > Best, > Martin > > On 20/01/2020 17:01, A A wrote: > > Dear All, > > I'm just getting back into using fipy after a few months hiatus. I'm > getting more familiar with how it works, but I ha

Fwd: Some questions on the viewer

2020-01-20 Thread A A
more mathematical rigour... Thanks! -- Forwarded message - From: A A Date: Mon, Jan 20, 2020 at 5:01 PM Subject: Some questions on the viewer To: Dear All, I'm just getting back into using fipy after a few months hiatus. I'm getting more familiar with how it works, but I h

Some questions on the viewer

2020-01-20 Thread A A
Dear All, I'm just getting back into using fipy after a few months hiatus. I'm getting more familiar with how it works, but I have a couple of questions about the viewer: - Is it possible to control linestyle (specifically dashes) of the cellVariable objects tied to each specific viewer? I

Re: Integrating field

2012-11-30 Thread A. A. Eftekhari
Dear all, I have a question not too unrelated to this one. Let's say I have a 2D numpy array and I want to assign its value to a cell variable defined over a 2D mesh of the same dimensions. Is there any simple way to do that. n = 5 mesh = Grid2D(nx = n, ny = n) k = rand(n,n) phi = CellVariable(me

Re: Flux=0 constrains on both sizes cause problems with simple 1D diffusion problem

2012-11-08 Thread A. A. Eftekhari
Hi Daniel, In your script, you are solving an steady state problem. Add a transient term, and preferably sweep to get the solution. Perhaps sth like this: equation = (TransientTerm() == diffusion_term + source_term) timestep = steps = 10 for step in range(steps) res = 1.e6 phi.u

Re: Buckley Leverett equation

2012-09-14 Thread A. A. Eftekhari
ition. It is sort of crazy, but an upwind convection term > with a zero velocity will not interact with the boundary (I think, I > didn't think it through carefully). It sort of isn't a boundary value > problem at that point. It's confusing. > > Also I used $\fr

Buckley Leverett equation

2012-09-13 Thread A. A. Eftekhari
Hello all, I'm using fipy to solve flow in porous media problems, and I must say with the new version (3.0) there is no problem in solving single phase multi-component convection diffusion equation coupled with Darcy's law. My difficulty is with solving two-phase flow and specially Buckley-Leveret