World Builder  1.1.0-pre
A geodynamic initial conditions generator
main.cc File Reference
#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>
Include dependency graph for main.cc:

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)
 

Function Documentation

◆ filter_vtu_mesh()

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 
)

Filter the cells of a VTU mesh based on a given tag. All tags with smaller value than first_tag will be removed

Definition at line 82 of file main.cc.

Here is the caller graph for this function:

◆ find_command_line_option()

bool find_command_line_option ( char **  begin,
char **  end,
const std::string &  option 
)

Definition at line 286 of file main.cc.

◆ get_command_line_options_vector()

std::vector<std::string> get_command_line_options_vector ( int  argc,
char **  argv 
)

Definition at line 277 of file main.cc.

Here is the caller graph for this function:

◆ lay_points()

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 
)

Definition at line 233 of file main.cc.

Here is the caller graph for this function:

◆ main()

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.

Here is the call graph for this function:

◆ project_on_sphere()

void project_on_sphere ( double  radius,
double &  x_,
double &  y_,
double &  z_ 
)

Definition at line 216 of file main.cc.

Here is the call graph for this function:
Here is the caller graph for this function: