Hi everyone,
We are very interested in using the "solid state mechanics " library for fenics, but unfortunately, we cannot make it working.
We tried on ubuntu 14.04.
fenics was installed as advised on the website (https://fenicsproject.org/download/ for ubuntu): it is version 1.6 of dolfin
we cloned this version (https://bitbucket.org/fenics-apps/fenics-solid-mechanics) in /usr/share/dolfin/
and run ./cmake.local to get the following error :
any idea ? or suggestion to try another configuration (we also tried on macOS without sucess)
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/share/dolfin/fenics-solid-mechanics/build
[ 22%] [ 22%] Building CXX object src/CMakeFiles/fenics-solid-mechanics.dir/ConstitutiveUpdate.cpp.o
Building CXX object src/CMakeFiles/fenics-solid-mechanics.dir/PlasticityProblem.cpp.o
/usr/share/dolfin/fenics-solid-mechanics/src/ConstitutiveUpdate.cpp: In constructor ‘fenicssolid::ConstitutiveUpdate::ConstitutiveUpdate(const dolfin::Function&, const dolfin::FiniteElement&, const dolfin::GenericDofMap&, const fenicssolid::PlasticityModel&)’:
/usr/share/dolfin/fenics-solid-mechanics/src/ConstitutiveUpdate.cpp:42:17: error: ‘const class dolfin::FiniteElement’ has no member named ‘tabulate_dof_coordinates’
sigma_element.tabulate_dof_coordinates(ip_coordinates, vertex_coordinates,
^
/usr/share/dolfin/fenics-solid-mechanics/src/PlasticityProblem.cpp: In constructor ‘fenicssolid::PlasticityProblem::PlasticityProblem(std::shared_ptr, std::shared_ptr, dolfin::Function&, fenicssolid::QuadratureFunction&, fenicssolid::QuadratureFunction&, std::vector<std::shared_ptr >, const fenicssolid::PlasticityModel&)’:
/usr/share/dolfin/fenics-solid-mechanics/src/PlasticityProblem.cpp:36:38: error: no match for ‘operator’ (operand type is ‘const dolfin::Mesh’)
: assembler(a, L, bcs), eps_p_data(a->mesh(), *sigma.element(), 6),
[.....message truncated...]
/usr/include/dolfin/fem/SystemAssembler.h:72:5: note: no known conversion for argument 1 from ‘std::shared_ptr’ to ‘const dolfin::Form&’
/usr/include/dolfin/fem/SystemAssembler.h:69:5: note: dolfin::SystemAssembler::SystemAssembler(const dolfin::Form&, const dolfin::Form&, const dolfin::DirichletBC&)
SystemAssembler(const Form& a, const Form& L, const DirichletBC& bc);
^
/usr/include/dolfin/fem/SystemAssembler.h:69:5: note: no known conversion for argument 1 from ‘std::shared_ptr’ to ‘const dolfin::Form&’
/usr/include/dolfin/fem/SystemAssembler.h:66:5: note: dolfin::SystemAssembler::SystemAssembler(const dolfin::Form&, const dolfin::Form&)
SystemAssembler(const Form& a, const Form& L);
^
/usr/include/dolfin/fem/SystemAssembler.h:66:5: note: candidate expects 2 arguments, 3 provided
/usr/include/dolfin/fem/SystemAssembler.h:61:9: note: dolfin::SystemAssembler::SystemAssembler(const dolfin::SystemAssembler&)
class SystemAssembler : public AssemblerBase
^
/usr/include/dolfin/fem/SystemAssembler.h:61:9: note: candidate expects 1 argument, 3 provided
/usr/include/dolfin/fem/SystemAssembler.h:61:9: note: dolfin::SystemAssembler::SystemAssembler(dolfin::SystemAssembler&&)
/usr/include/dolfin/fem/SystemAssembler.h:61:9: note: candidate expects 1 argument, 3 provided
make[2]: *** [src/CMakeFiles/fenics-solid-mechanics.dir/PlasticityProblem.cpp.o] Erreur 1
make[2]: *** Attente des tâches non terminées....
make[2]: *** [src/CMakeFiles/fenics-solid-mechanics.dir/ConstitutiveUpdate.cpp.o] Erreur 1
make[1]: *** [src/CMakeFiles/fenics-solid-mechanics.dir/all] Erreur 2
make: *** [all] Erreur 2