|
World Builder
1.1.0-pre
A geodynamic initial conditions generator
|
#include "visualization/main.h"#include "world_builder/assert.h"#include "world_builder/coordinate_system.h"#include "world_builder/nan.h"#include "world_builder/point.h"#include "world_builder/utilities.h"#include "world_builder/world.h"#include "world_builder/config.h"#include <algorithm>#include <limits>#include "vtu11/vtu11.hpp"#include <array>#include <cmath>#include <iostream>#include <iterator>#include <memory>#include <string>#include <thread>#include <vector>
Go to the source code of this file.
Classes | |
| class | ThreadPool |
Functions | |
| void | filter_vtu_mesh (int dim, const std::vector< bool > &include_tag, vtu11::Vtu11UnstructuredMesh &input_mesh, const std::vector< vtu11::DataSetData > &input_data, vtu11::Vtu11UnstructuredMesh &output_mesh, std::vector< vtu11::DataSetData > &output_data) |
| void | project_on_sphere (double radius, double &x_, double &y_, double &z_) |
| void | lay_points (double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3, double x4, double y4, double z4, std::vector< double > &x, std::vector< double > &y, std::vector< double > &z, std::vector< bool > &hull, size_t level) |
| std::vector< std::string > | get_command_line_options_vector (int argc, char **argv) |
| bool | find_command_line_option (char **begin, char **end, const std::string &option) |
| int | main (int argc, char **argv) |
| void filter_vtu_mesh | ( | int | dim, |
| const std::vector< bool > & | include_tag, | ||
| vtu11::Vtu11UnstructuredMesh & | input_mesh, | ||
| const std::vector< vtu11::DataSetData > & | input_data, | ||
| vtu11::Vtu11UnstructuredMesh & | output_mesh, | ||
| std::vector< vtu11::DataSetData > & | output_data | ||
| ) |
| bool find_command_line_option | ( | char ** | begin, |
| char ** | end, | ||
| const std::string & | option | ||
| ) |
| std::vector<std::string> get_command_line_options_vector | ( | int | argc, |
| char ** | argv | ||
| ) |
| void lay_points | ( | double | x1, |
| double | y1, | ||
| double | z1, | ||
| double | x2, | ||
| double | y2, | ||
| double | z2, | ||
| double | x3, | ||
| double | y3, | ||
| double | z3, | ||
| double | x4, | ||
| double | y4, | ||
| double | z4, | ||
| std::vector< double > & | x, | ||
| std::vector< double > & | y, | ||
| std::vector< double > & | z, | ||
| std::vector< bool > & | hull, | ||
| size_t | level | ||
| ) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
First parse the command line options
Try to start the world builder
start the thread pool
Read the data from the data files
All variables set by the user
All variables needed for the visualization
Begin making the grid
An annulus which is a 2d hollow sphere. TODO: make it so you can determine your own cross section.
block node layout
map blocks
merge blocks
build hollow sphere
Definition at line 291 of file main.cc.
