uikit0 / mfem Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/mfem
License: GNU Lesser General Public License v2.1
Automatically exported from code.google.com/p/mfem
License: GNU Lesser General Public License v2.1
Finite Element Discretization Library version 3.0 __ _ __ ___ / _| ___ _ __ ___ | '_ ` _ \ | |_ / _ \| '_ ` _ \ | | | | | || _|| __/| | | | | | |_| |_| |_||_| \___||_| |_| |_| http://mfem.googlecode.com MFEM is a modular parallel C++ library for finite element methods. Its goal is to enable the research and development of scalable finite element discretization and solver algorithms through general finite element abstractions, accurate and flexible visualization, and tight integration with the hypre library. For building instructions, see the file INSTALL, or type "make help". Copyright information and licensing restrictions can be found in the file COPYRIGHT. The best starting point for new users interested in MFEM's features is the interactive documentation in examples/README.html. Conceptually, MFEM can be viewed as a finite element toolbox that provides the building blocks for developing finite element algorithms in a manner similar to that of MATLAB for linear algebra methods. In particular, MFEM provides support for arbitrary high-order H1-conforming, discontinuous (L2), H(div)-conforming, H(curl)-conforming and NURBS finite element spaces in 2D and 3D, as well as many bilinear, linear and nonlinear forms defined on them. It enables the quick prototyping of various finite element discretizations, including Galerkin methods, mixed finite elements, Discontinuous Galerkin (DG), isogeometric analysis and Discontinuous Petrov-Galerkin (DPG) approaches. MFEM includes classes for dealing with a wide range of mesh types: triangular, quadrilateral, tetrahedral and hexahedral, as well as surface and topologically periodical meshes. It has general support for mesh refinement, including local conforming and non-conforming (AMR) adaptive refinement. Arbitrary element transformations, allowing for high-order mesh elements with curved boundaries, are also supported. MFEM is commonly used as a "finite element to linear algebra translator", since it can take a problem described in terms of finite element-type objects, and produce the corresponding linear algebra vectors and sparse matrices. In order to facilitate this, MFEM uses compressed sparse row (CSR) sparse matrix storage and includes simple smoothers and Krylov solvers, such as PCG, MINRES and GMRES, as well as support for sequential sparse direct solvers from the SuiteSparse library. Nonlinear solvers (the Newton method), and several explicit and implicit Runge-Kutta time integrators are also available. MFEM supports MPI-based parallelism throughout the library, and can readily be used as a scalable unstructured finite element problem generator. MFEM-based applications require minimal changes to transition from a serial to a high-performing parallel version of the code, where they can take advantage of the integrated scalable linear solvers from the hypre library. An experimental support for OpenMP acceleration is also included. For examples of using MFEM, see the examples/ directory, as well as the OpenGL visualization tool GLVis which is available at http://glvis.googlecode.com.
Dear all,
Can I use the MFEM in windows 7 64bit + VS2010/VS2012? How to build it?
Thanks,
Tang Laoya
Original issue reported on code.google.com by [email protected]
on 22 Dec 2013 at 11:43
Test
Original issue reported on code.google.com by tzanio
on 2 Oct 2013 at 8:52
I am new to MFEM. In example ex2.cpp I would like to compute gradient of
displacement field u and then stress sigma(u), strain eps(u), strain energy U
and elementwise strain energy Ue. The functional form of these quantities as a
function of u is given by
eps(u) = (grad(u) + grad(u)^T)/2
sigma(u) = 2*mu*eps + lambda*trace(eps) I
U = lmbda/2.0*(trace(eps))^2 + mu*trace(eps^2)
Ue= \int_(Omega)(U/vol *v dOmega) , where vol is cell volume and v are trial
functions
Can you provide an example or illustration for this?
Also, how is it possible to apply a point load at specific location on free end
of the cantilever beam (ex2.cpp)?
Original issue reported on code.google.com by [email protected]
on 17 Mar 2014 at 10:36
How do you generate .mesh file (e.g. beam-tet.mesh) in the data directory of
the MFEM code? Thanks.
Original issue reported on code.google.com by [email protected]
on 13 May 2013 at 9:27
I see that NETGEN with OCC can generate mesh which could be exported in
different file formats. Can you kindly tell me which file format would be
useful or do I need to add any extra line like MFEM mesh v1.0.... etc?
Original issue reported on code.google.com by [email protected]
on 29 Jul 2013 at 6:04
Shouldn't HYPRE_DIR be set before MPICC ?
# Parallel compiler
MPICC = mpicxx
MPIOPTS = $(CCOPTS) -I$(HYPRE_DIR)/include
MPIDEBUG = $(DEBUG_OPTS) -I$(HYPRE_DIR)/include
# The HYPRE library (needed to build the parallel version)
HYPRE_DIR = ../../hypre-2.8.0b/src/hypre
Regards,
Jian
Original issue reported on code.google.com by [email protected]
on 16 Feb 2012 at 8:14
For EX1, actually it is Delta u = const which is Poisson solver and not Laplace
solver as in head comment. Now suppose, if I consider that I have a solid rod
and I want to set outer boundary temperature is say 1000.0 degrees. I want to
see distribution radially.
To do this, shall I change:
ConstantCoefficient Temp(1000.0);
and change b->AddDomainIntegrator in LinearForm and a->AddDomainIntegrator in
Bilinear to incorporate Temp instead of one?
Thanks and regs
Original issue reported on code.google.com by [email protected]
on 30 Jul 2013 at 11:37
In OpenSuse 12.3, I tried to run this dev series while I got following error
which may help you to fix the development issues.
Best,
Abhijit
make
cd lib; g++ -O3 -I/usr/X11R6/include -DGLVIS_USE_LIBPNG -DGLVIS_USE_FREETYPE
-I/usr/X11R6/include/freetype2 -I/usr/include/freetype2 -DGLVIS_MULTISAMPLE=4
-DGLVIS_MS_LINEWIDTH=1.4 -I../../mfem -c aux_gl.cpp
cd lib; g++ -O3 -I/usr/X11R6/include -DGLVIS_USE_LIBPNG -DGLVIS_USE_FREETYPE
-I/usr/X11R6/include/freetype2 -I/usr/include/freetype2 -DGLVIS_MULTISAMPLE=4
-DGLVIS_MS_LINEWIDTH=1.4 -I../../mfem -c aux_vis.cpp
cd lib; gcc -O3 -I/usr/X11R6/include -I../../mfem -c gl2ps.c
cd lib; g++ -O3 -I/usr/X11R6/include -DGLVIS_USE_LIBPNG -DGLVIS_USE_FREETYPE
-I/usr/X11R6/include/freetype2 -I/usr/include/freetype2 -DGLVIS_MULTISAMPLE=4
-DGLVIS_MS_LINEWIDTH=1.4 -I../../mfem -c material.cpp
cd lib; g++ -O3 -I/usr/X11R6/include -DGLVIS_USE_LIBPNG -DGLVIS_USE_FREETYPE
-I/usr/X11R6/include/freetype2 -I/usr/include/freetype2 -DGLVIS_MULTISAMPLE=4
-DGLVIS_MS_LINEWIDTH=1.4 -I../../mfem -c openglvis.cpp
cd lib; g++ -O3 -I/usr/X11R6/include -DGLVIS_USE_LIBPNG -DGLVIS_USE_FREETYPE
-I/usr/X11R6/include/freetype2 -I/usr/include/freetype2 -DGLVIS_MULTISAMPLE=4
-DGLVIS_MS_LINEWIDTH=1.4 -I../../mfem -c threads.cpp
threads.cpp: In static member function ‘static void*
communication_thread::execute(void*)’:
threads.cpp:560:73: error: invalid user-defined conversion from
‘std::basic_istream<char>’ to ‘int’ [-fpermissive]
In file included from /usr/include/c++/4.7/ios:45:0,
from /usr/include/c++/4.7/ostream:40,
from /usr/include/c++/4.7/iostream:40,
from ../../mfem/fem/../general/array.hpp:15,
from ../../mfem/fem/fem.hpp:15,
from ../../mfem/mfem.hpp:13,
from vsdata.hpp:16,
from visual.hpp:20,
from threads.cpp:16:
/usr/include/c++/4.7/bits/basic_ios.h:113:7: note: candidate is:
std::basic_ios<_CharT, _Traits>::operator void*() const [with _CharT = char;
_Traits = std::char_traits<char>] <near match>
/usr/include/c++/4.7/bits/basic_ios.h:113:7: note: no known conversion for
implicit ‘this’ parameter from ‘void*’ to ‘int’
threads.cpp:580:72: error: invalid user-defined conversion from ‘std::istream
{aka std::basic_istream<char>}’ to ‘int’ [-fpermissive]
In file included from /usr/include/c++/4.7/ios:45:0,
from /usr/include/c++/4.7/ostream:40,
from /usr/include/c++/4.7/iostream:40,
from ../../mfem/fem/../general/array.hpp:15,
from ../../mfem/fem/fem.hpp:15,
from ../../mfem/mfem.hpp:13,
from vsdata.hpp:16,
from visual.hpp:20,
from threads.cpp:16:
/usr/include/c++/4.7/bits/basic_ios.h:113:7: note: candidate is:
std::basic_ios<_CharT, _Traits>::operator void*() const [with _CharT = char;
_Traits = std::char_traits<char>] <near match>
/usr/include/c++/4.7/bits/basic_ios.h:113:7: note: no known conversion for
implicit ‘this’ parameter from ‘void*’ to ‘int’
make: *** [lib/threads.o] Error 1
Original issue reported on code.google.com by [email protected]
on 24 Jul 2013 at 4:22
Hi,
I need to use methods for DenseMatrix Class, then I have to build (serial)
library by compiling with LAPACK.
I defined the variable USE_LAPACK = YES in the makefile, but this setting
was ignored by the compiler, indeed I see the following compilation line when I
run make:
cd linalg; g++ -O3 -DMFEM_USE_MEMALLOC -c densemat.cpp
Finally, my code using DenseMatrixEigensystem doesn't work, and the following
message is obtained:
DenseMatrixEigensystem::Eval(): Compiled without LAPACK
Could you help me?
Thanks a lot, Pasqua D'Ambra
Original issue reported on code.google.com by [email protected]
on 27 Jan 2014 at 9:55
Attachments:
Adding a wrapper to the hypre eigensolver and a corresponding modification of
ex3/ex3p, please?
Andrew Knyazev
Original issue reported on code.google.com by [email protected]
on 9 Aug 2012 at 9:56
Dear all,
I am trying to use mfem for my problem. I focus on the electromagnetic
calculation and use ex3.cpp for my test. For debugging and learning the code of
mfem, I disabled the refinement from the example:
...
// 2. Refine the mesh to increase the resolution. In this example we do
// 'ref_levels' of uniform refinement. We choose 'ref_levels' to be the
// largest number that gives a final mesh with no more than 50,000
// elements.
if(0){ /// disable refinement for test
int ref_levels =
(int)floor(log(50000./mesh->GetNE())/log(2.)/mesh->Dimension());
for (int l = 0; l < ref_levels; l++)
mesh->UniformRefinement();
}
mesh->ReorientTetMesh();
...
The program crashed. Furthermore, the program still crash even I set a smaller
number refinement number:
int ref_levels =
(int)floor(log(30000./mesh->GetNE())/log(2.)/mesh->Dimension());
Could anyone help me to take a look at it?
Thanks,
Tang Laoya
Original issue reported on code.google.com by [email protected]
on 8 Dec 2014 at 2:18
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.