#include <stdio.h>
#include <stdlib.h>
#include "../../util/source/useful.h"
#include "../../util/source/logfile.h"
#include "../../gas_models/source/gas.h"
#include "../../flux_calc/source/flux_calc.h"
#include "../../mb_cns/source/cns_case_id.h"
#include "../../mb_cns/source/cns_work_vector.h"
#include "../../mb_cns/source/cns_debug_level.h"
#include "../../mb_cns/source/cns_cell.h"
#include "../../mb_cns/source/cns_echo.h"
#include "../../mb_cns/source/cns_bc_defs.h"
#include "./e_kernel.h"
#include "./e_block.h"
Go to the source code of this file.
Defines | |
| #define | VTK_FORMAT 0 |
| #define | TECPLOT_FORMAT 1 |
| #define | PROFILE_FORMAT 2 |
| #define | E_IO_HEADER_ALREADY_INCLUDED |
Functions | |
| int | initialize_mesh (int alwaysReadFromFile) |
| Generates or reads mesh then fills in rest of geometry data. | |
| int | initialize_flow_data (int readFromFile, int readFromProfile, int count) |
| Generates or reads flow data for all blocks. | |
| int | initialize_average_flow_data (int readFromAvFile) |
| Generates or reads flow data for all blocks. | |
| int | write_flow_data (int count) |
| Writes flow data for all blocks. | |
| int | write_average_flow_data (void) |
| Writes averaged flow data for all blocks. | |
| int | read_block_mesh (struct block_data_3D *bp, int which_format) |
| Read a mesh from either a VTK or Tecplot format file. | |
| int | write_block_mesh (struct block_data_3D *bp, int which_format) |
| Write a mesh to a VTK or Tecplot file. | |
| int | read_flow_data_for_block (struct block_data_3D *bp, int which_format, int file_number) |
| Read a flow solution from a VTK or Tecplot file. | |
| int | write_flow_data_for_block (struct block_data_3D *bp, int which_format, int count) |
| Write a flow solution to a VTK or Tecplot file. | |
| int | write_average_flow_data_for_block (struct block_data_3D *bp, int which_format) |
| Write average flow data to a VTK or Tecplot file. | |
| int | read_average_flow_data_for_block (struct block_data_3D *bp) |
| Read a average flow solution from a VTK or Tecplot file. | |
| int | generate_vtk_turbulent_stats (char *base_name, int end, int file_number) |
| int | write_vtk_stats (struct block_data_3D *bp, char *base_name, int file_number) |
| int | get_start_stop_indices (struct block_data_3D *bdp, int *ifirst, int *ilast, int *jfirst, int *jlast, int *kfirst, int *klast) |
| Helper function for write_VTK_unstructured_file_3D(). | |
| cell_center * | get_cell_pointer_and_xy_location (struct block_data_3D *bdp, int i, int j, int k, struct point_3D *pos) |
| Second helper function to ensure that we don't pick data from corner ghost cells. | |
| int | write_VTK_unstructured_file_3D (char *base_name, int count) |
| Write the data (for plotting) in VTK unstructured_grid format. | |
| int | write_VTK_unstructured_average_file_3D (char *base_name) |
| int | open_history_data_files (void) |
| Opens files for sampled data for all blocks. | |
| int | write_history_data (void) |
| Writes sampled data for all blocks. | |
| int | close_history_data_files (void) |
| Closes files for sampled data for all blocks. | |
| int | write_history_data_for_block (struct block_data_3D *bp) |
| Writes sampled data for a single block to its history file. | |
| int | read_profile (struct block_data_3D *bp, struct flow_state profile_data[]) |
|
||||||||||||||||||||||||||||||||
|
Helper function for write_VTK_unstructured_file_3D(). If a neighbour block exists and its identity index is larger than that of the current block, extend the current block into the inter-block gap. |
|
|
Read a average flow solution from a VTK or Tecplot file.
|
|
||||||||||||
|
Read a mesh from either a VTK or Tecplot format file. Returns 0 if no faults were detected, negative integer on failure. The file name is contained within the block_data_3D structure. |
|
||||||||||||||||
|
Read a flow solution from a VTK or Tecplot file.
|
|
||||||||||||
|
Write average flow data to a VTK or Tecplot file.
|
|
||||||||||||
|
Write a mesh to a VTK or Tecplot file.
|
|
|
Writes flow data for all blocks. toS0File == 1 to write an initial flow data file count is used to build a unique filename for this solution time. |
|
||||||||||||||||
|
Write a flow solution to a VTK or Tecplot file.
|
|
|
Writes sampled data for a single block to its history file. Returns 0 on success, -1 otherwise. |
|
||||||||||||
|
Write the data (for plotting) in VTK unstructured_grid format. The geometry data for all blocks is assembled as a set of nodes and elements consisting of set of hexahedral cells. Boundaries of blocks that are not adjacent to other blocks are written to a geometry file. Indices are offset from 0.
|
1.4.4