Discussion:
[ff3d-users] ff3d/gmsh example?
b***@phy.ucsf.edu
2007-08-27 04:31:03 UTC
Permalink
Hello -

I'd like to use ff3d as a standard FEM solver, using gmesh as the mesh
generator. I'm having some difficulty understanding the documentation
for this. Would someone be nice enough to post a very simple working
example showing how this is done? A .ff (ff3d) file with the
corresponding .geo (gmesh geometry) file would be great. Ultimately,
I'd like to solve the Laplace equation using a dipole source within a
non-homogeneous medium, but I /think/ my computer doesn't have enough
memory to do this with the resolution I need if I use the pov/FDM
method.

Thank you,

-Ben


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Stephane Del Pino
2007-08-27 22:05:45 UTC
Permalink
Hello Ben.

Sorry, the documentation is really out of date about standard FEM ...
Here is a simple example:

-----------------------------------
// read the mesh (not the .geo but the .msh)
mesh M = read(gmsh,"cube.msh");

//solve the problem
solve(u) in M
{
pde(u)
-div(grad(u)) = 1;
u = 0 on 0; // applies Dirichlet on triangles of reference 0
}
-----------------------------------

I hope that helps,
Stéphane.

Loading...