Tutorials
- Discovering examples
- Building compact discrete domains
- Introduction to input file
- Plugins and input files
- Initialize project (You are here)
- Initialize your first custom plugin
- Implement your first custom plugin
- Run your first project
- granoo-viewer usage
- Inputs/Outputs with GranOO
- Building a very simple tensile test
- Using numerical sensor
This page describes how to start a new granoo project
Now, you are ready to build your own first simulation from scratch. This new tutorial section
will describe how to do this task. GranOO embeds a tool named granoo3-project
that help users
to start and manage their projects. In the granoo terminology a project corresponds to a
family of simulation.
The main steps for building a simulation
Generally, building a new simulation consists in :
- writing some plugins to add your specific treatments,
- compiling these plugins (C++ only) to build an executable file,
- editing the input file to describe the simulation (loadings, boundaries conditions, etc.) and
- launching the simulation.
The following sections will show how to start, compile and run a new blank project.
Building the project template
The following terminal commands show how to create a new blank project thanks to the granoo3-project
utility. To start a new blank project named my-project
simply type (in a new empty folder).
The given answers create a new directory named my-project
in the current directory.
Where :
CMakeLists.txt
is a file used by the cmake program to manage the compilation process,Main.cpp
is a C++ source file that simply contains the standard C++main()
function required to execute a binary file,my-project.inp
is the input file that manages and describes the simulation.
The given answers create a new directory named my-project
in the current directory.
Where :
Main.py
is a Python source file that simply contains the standardmain()
function,my-project.inp
is the input file that manages and describes the simulation.
Compiling your project
As for examples, the compilation process is managed by cmake. To compile your project, simply type.
Running your project
Now, to run your project, type
At this stage, your simulation fails ! It’s normal, please follow up the tutorial to fix and overcome your granoo project.