Hi,
Am new to dolfinx, and am struggling to read 2D external mesh data file. I have following name tags from my gmsh file :
$PhysicalNames
3
1 2 “convection”
1 3 “coupling”
2 1 “domain”
Currently am using reading the xdmf mesh file using the commands:
with dolfinx.io.XDMFFile(MPI.COMM_WORLD, “mf.xdmf”, “r”) as xdmf:
mesh = xdmf.read_mesh(name=“Grid”)
ct = xdmf.read_meshtags(mesh, name=“Grid”)
mesh.topology.create_connectivity(mesh.topology.dim, mesh.topology.dim-1)
but after this, how can I access my boundary markers assigned? I mean how can use the name tags assigned.
Thanks for the reference document. Currently, I want to install the dolfinx_mpc library on ubuntu 20.04. I am running the following commands:
git clone GitHub - jorgensd/dolfinx_mpc: Extension for dolfinx to handle multi-point constraints. &&
cd dolfinx_mpc &&
git checkout 0.1.0 &&
cmake -G Ninja -DCMAKE_BUILD_TYPE=Developer -B build-dir cpp/ &&
ninja install -j12 -C build-dir &&
pip3 install python/. --upgrade
but I get the following error message :
ninja: build stopped: subcommand failed.
can I kindly get help to install the dolfinx_mpc library?.
Currently, I have Ubuntu 20.04 LTS, with WSL.
During the installation of dolfinx, when I execute the command: cmake -G Ninja cpp -B build-dir
I get the following error:
sadashivaiah@Guna:/mnt/f/dolfinx$ git checkout 0.1.0
HEAD is now at 95c6fcb896 Version c++ documentation (#1550)
sadashivaiah@Guna:/mnt/f/dolfinx$ cmake -G Ninja cpp -B build-dir
– Found Boost 1.71.0 at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0
– Requested configuration: QUIET REQUIRED COMPONENTS timer;filesystem
– Found boost_headers 1.71.0 at /usr/lib/x86_64-linux-gnu/cmake/boost_headers-1.71.0
– Found boost_timer 1.71.0 at /usr/lib/x86_64-linux-gnu/cmake/boost_timer-1.71.0
– [x] libboost_timer.so.1.71.0
– [ ] libboost_timer.a
– Adding boost_timer dependencies: chrono;headers
– Found boost_chrono 1.71.0 at /usr/lib/x86_64-linux-gnu/cmake/boost_chrono-1.71.0
– [x] libboost_chrono.so.1.71.0
– [ ] libboost_chrono.a
– Adding boost_chrono dependencies: headers
– Found boost_filesystem 1.71.0 at /usr/lib/x86_64-linux-gnu/cmake/boost_filesystem-1.71.0
– [x] libboost_filesystem.so.1.71.0
– [ ] libboost_filesystem.a
– Adding boost_filesystem dependencies: headers
CMake Error at CMakeLists.txt:156 (find_package):
By not providing “Findxtensor-blas.cmake” in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
“xtensor-blas”, but CMake did not find one.
Could not find a package configuration file provided by “xtensor-blas” with
any of the following names:
Add the installation prefix of “xtensor-blas” to CMAKE_PREFIX_PATH or set
“xtensor-blas_DIR” to a directory containing one of the above files. If
“xtensor-blas” provides a separate development package or SDK, be sure it
has been installed.
– Configuring incomplete, errors occurred!
See also “/mnt/f/dolfinx/build-dir/CMakeFiles/CMakeOutput.log”.