YetAnotherCoupler 3.2.0_a
Loading...
Searching...
No Matches
Functions
grid2vtk.c File Reference
#include <stdio.h>
#include <string.h>
#include <float.h>
#include "grid2vtk.h"
#include "vtk_output.h"
#include "geometry.h"
#include "ensure_array_size.h"
#include "utils_common.h"
Include dependency graph for grid2vtk.c:

Go to the source code of this file.

Functions

static void get_bounding_circle_point_data (struct bounding_circle bnd_circle, size_t num_points, double *points)
 
static void get_equator_point_data (size_t num_points, double *points)
 
void yac_write_basic_grid_data_to_file (struct yac_basic_grid_data *grid, char const *name)
 
static void get_edge_points (double *a, double *b, enum yac_edge_type edge_type, double(**points)[3], size_t *points_array_size, size_t *num_points, size_t num_points_per_edge)
 
void yac_write_grid_cells_to_file (struct yac_grid_cell *cells, size_t num_cells, char *name, size_t num_points_per_edge)
 
void yac_write_basic_grid_to_file (struct yac_basic_grid *grid, char const *name)
 

Function Documentation

◆ get_bounding_circle_point_data()

static void get_bounding_circle_point_data ( struct bounding_circle  bnd_circle,
size_t  num_points,
double *  points 
)
static

Definition at line 16 of file grid2vtk.c.

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

◆ get_edge_points()

static void get_edge_points ( double *  a,
double *  b,
enum yac_edge_type  edge_type,
double(**)  points[3],
size_t *  points_array_size,
size_t *  num_points,
size_t  num_points_per_edge 
)
static

Definition at line 159 of file grid2vtk.c.

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

◆ get_equator_point_data()

static void get_equator_point_data ( size_t  num_points,
double *  points 
)
static

Definition at line 40 of file grid2vtk.c.

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

◆ yac_write_basic_grid_data_to_file()

void yac_write_basic_grid_data_to_file ( struct yac_basic_grid_data grid,
char const *  name 
)

writes a basic grid data to file

Parameters
[in]gridbasic grid data
[in]namefile name (".vtk" will be added to this)
Remarks
as a reference, the equator will be included in the file
Examples
test_generate_cubed_sphere.c, test_grid2vtk.c, test_read_cube_csv.c, test_read_fesom.c, test_read_icon.c, and test_read_mpiom.c.

Definition at line 54 of file grid2vtk.c.

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

◆ yac_write_basic_grid_to_file()

void yac_write_basic_grid_to_file ( struct yac_basic_grid grid,
char const *  name 
)

writes a basic grid to file

Parameters
[in]gridbasic grid
[in]namefile name (".vtk" will be added to this)
Remarks
as a reference, the equator will be included in the file
Examples
test_read_scrip.c.

Definition at line 283 of file grid2vtk.c.

Here is the call graph for this function:

◆ yac_write_grid_cells_to_file()

void yac_write_grid_cells_to_file ( struct yac_grid_cell cells,
size_t  num_cells,
char *  name,
size_t  num_points_per_edge 
)

writes a list of cells into a vtk file, which can be visualised by paraview

Parameters
[in]cellslist of cells
[in]num_cellsnumber of entries in cells
[in]namefile name (".vtk" will be added to this)
[in]num_points_per_edgeeach cell edge will be approximated by N straight lines in 3D space, where N is (num_points_per_edge - 1)
Remarks
the edge type will be taken into account
Examples
test_grid2vtk.c.

Definition at line 210 of file grid2vtk.c.

Here is the call graph for this function: