Skip to content

arcaneframework/arcanefem

Repository files navigation

Welcome to the repository showcasing Finite Element Method (FEM) based solvers developed using the Arcane Framework. The FEM solvers/algorithms here are optimized for both CPU and GPU-based parallel computing environments.

Before diving into the samples provided, please ensure you have installed a recent version (3.7+) of the Arcane Framework.

How to test a solver

It is simple compile$\rightarrow$execute$\rightarrow$visualize

compile

To compile the sources, follow these steps:

# Set up paths
ARCANE_INSTALL_DIR=/path/to/arcane/installation
BUILD_DIR=/tmp/build
SOURCE_PATH=/path/to/sources

# Invoke CMake to configure the build
cmake -S ${SOURCE_PATH} -B ${BUILD_DIR} -DCMAKE_PREFIX_PATH=${ARCANE_INSTALL_DIR}

# Build the project
cmake --build ${BUILD_DIR}

Execute

Once compiled, execute an example from the elasticity solver. Navigate to the appropriate directory:

cd ${BUILD_DIR}/elasticity

Then run the executable with the desired input file:

./Elasticity Test.Elasticity.arc

Alternatively, you can provide command-line arguments to run the solver:

./Elasticity -A,CaseDatasetFileName=Test.Elasticity.arc

For additional commands to control Arcane, refer to Arcane Documentation.*

Visualize

After running the test case, visualize the results using ParaView:

paraview ${BUILD_DIR}/elastcity/output/depouillement/ensight.case