Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Geotechnical problems have been traditionally tackled as an extension of continuum mechanics theories. Such an approach, although appropriate for systems undergoing small displacements, cannot examine important problems such as landslides, rockfalls, and rainfall-induced landslides. Our implementation is a first step toward analyzing these complex behavior, and, as a starting point, studies systems constituted of geomaterials assumed as particles in a two-dimensional space. With this implementation, we plan to bring to the geotechnical community, academic and practitioners in general, a computational tool that will allow solving challenges involving multiphysics and large displacements effectively and accurately.

![Simulation](https://raw.githubusercontent.com/eafit-apolo/2DPartInt/master/simulacion.gif)

## Usage

Compile the project using make.
Expand Down Expand Up @@ -39,7 +41,7 @@ Compile defining the `PROFILING` flag.
$ make PROFILING=true
```

Run definig where to store the profiler output.
Run defining where to store the profiler output.

```
$ CPUPROFILE=profiler_out.prof ./bin/2DPartInt simulation_config.txt out/
Expand Down
2 changes: 1 addition & 1 deletion include/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Represents the parsed config file.
*/
typedef struct {
int simulation_time;
double simulation_time;
double dt;
int x_limit;
int y_limit;
Expand Down
Binary file added simulacion.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/cpp/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void parse_config(const char *filename, Config *config) {
if (std::getline(is_line, key, '=')) {
if (std::getline(is_line, value)) {
if (key == "time") {
config->simulation_time = std::stoi(value);
config->simulation_time = std::stod(value);
} else if (key == "dt") {
config->dt = std::stod(value);
} else if (key == "y_limit") {
Expand Down