dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #15845
Re: [HG DOLFIN] Add hyperelasticity demo.
On Wed, Sep 30, 2009 at 09:04:02AM +0100, Garth N. Wells wrote:
>
>
> DOLFIN wrote:
> > One or more new changesets pushed to the primary dolfin repository.
> > A short summary of the last three changesets is included below.
> >
> > changeset: 7178:48ab450ae374
> > tag: tip
> > user: "Garth N. Wells <gnw20@xxxxxxxxx>"
> > date: Wed Sep 30 09:00:06 2009 +0100
> > files: demo/pde/hyperelasticity/cpp/HyperElasticity.h demo/pde/hyperelasticity/cpp/HyperElasticity.ufl demo/pde/hyperelasticity/cpp/SConstruct demo/pde/hyperelasticity/cpp/main.cpp demo/pde/hyperelasticity/python/README
> > description:
> > Add hyperelasticity demo.
> >
>
> I forgot to add to the commit message that this is contributed by Harish.
This is a really nice demo of the capabilities of UFL!
I also notice this:
# Re-define correct gradient
def Grad(v):
return grad(v).T
We do the following in our NS solvers:
# Fix for transposed grad in UFL
from ufl import grad as ufl_grad
def grad(v):
if v.rank() == 1:
return ufl_grad(v).T
else:
return ufl_grad(v)
Perhaps we should take up the discussion again about the definition of
grad... :-)
--
Anders
> Garth
>
> >
> > changeset: 7177:eb36f1d33866
> > user: Anders Logg <logg@xxxxxxxxx>
> > date: Tue Sep 29 22:11:32 2009 +0200
> > files: dolfin/function/CoefficientAssigner.cpp dolfin/function/CoefficientAssigner.h
> > description:
> > Add missing files
> >
> >
> > changeset: 7176:6572fe2cde36
> > parent: 7175:1cbf255997db
> > parent: 7173:fd4071fe9460
> > user: Anders Logg <logg@xxxxxxxxx>
> > date: Tue Sep 29 21:45:40 2009 +0200
> > files: demo/mesh/built-in/cpp/README dolfin/fem/SystemAssembler.cpp
> > description:
> > merge
> >
> > ----------------------------------------------------------------------
> > For more details, visit http://www.fenics.org/hg/dolfin
> > _______________________________________________
> > DOLFIN-dev mailing list
> > DOLFIN-dev@xxxxxxxxxx
> > http://www.fenics.org/mailman/listinfo/dolfin-dev
>
>
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
Attachment:
signature.asc
Description: Digital signature
References