FiPy doesn't apply units explicitly (well, it can, but they don't propagate into the solver matrix and nobody uses them but me AFAICT).
In 1D you can view cell volume as dx x 1 m x 1 m (m**3) face area as 1 m x 1 m (m**2) or cell volume as just dx (m) face area as dimensionless Similarly, in 2D you can view cell volume as dx x dy x 1 m (m**3) face area as w x 1 m (m**2) or cell volume as just dx x dy (m**2) face area as w (m) Everything is dimensionally consistent, either way. .faceGrad and .divergence both have units of m**-1 regardless of the dimensionality of the mesh. > On May 3, 2017, at 4:52 AM, Anders Ericsson <[email protected]> > wrote: > > Hi all, > > I am mainly working with 1D and 2D phase-field simulations using FiPy. In the > documentation there is the discretization section describing how the PDE > equations are discretized in FiPy in 3D > (http://www.ctcms.nist.gov/fipy/documentation/numerical/discret.html#). > > Maybe this is a stupid question, but I am wondering what the units are for > the spatial parameters in the discretization when you are running 1D and 2D? > That is, the CV volume V_p, the area of the face A_f, the distance d_ap. > > Thanks and best regards, > Anders > _______________________________________________ > fipy mailing list > [email protected] > http://www.ctcms.nist.gov/fipy > [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ] _______________________________________________ fipy mailing list [email protected] http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]
