|
Basilisk CFD
Adaptive Cartesian mesh PDE framework
|
Go to the source code of this file.
Data Structures | |
| struct | Cartesian |
| struct | _Point |
Macros | |
| #define | GRIDNAME "Cartesian" |
| #define | dimension 2 |
| #define | GHOSTS 1 |
| #define | _I (point.i - 1) |
| #define | _J (point.j - 1) |
| #define | _DELTA (1./(real)N) |
| #define | cartesian ((Cartesian *)grid) |
| #define | foreach_edge() for (int _i = 0; _i < _N; _i++) /* foreach_face */ |
Typedefs | |
| typedef double | real |
Variables | |
| static Point | last_point |
| def is_boundary() | _jg [] = {0,0,1,-1} |
| double(* | default_scalar_bc [])(Point, Point, scalar, bool *) |
| define VT _attribute[s.i] v y scalar * | list |
| define VT _attribute[s.i] v y scalar int | l |
Definition at line 17 of file cartesian.h.
Definition at line 15 of file cartesian.h.
Definition at line 16 of file cartesian.h.
Definition at line 36 of file cartesian.h.
| #define dimension 2 |
Definition at line 12 of file cartesian.h.
Definition at line 77 of file cartesian.h.
| #define GHOSTS 1 |
Definition at line 13 of file cartesian.h.
| #define GRIDNAME "Cartesian" |
Definition at line 10 of file cartesian.h.
Definition at line 6 of file cartesian.h.
Definition at line 216 of file cartesian.h.
References _ig, _jg, _k, b, box_boundary_level_normal(), box_boundary_level_tangent(), cartesian, d, free(), scalar::i, Point::i, l, left, list_add(), neighbor(), normal, OMP_PARALLEL(), periodic_bc(), point, right, s, top, val(), and x.
Referenced by init_grid().
Definition at line 154 of file cartesian.h.
References _ig, _jg, _k, b, cartesian, d, GHOSTS, Point::i, left, neighbor(), OMP_PARALLEL(), point, right, s, top, val(), and x.
Referenced by box_boundary_level().
Definition at line 181 of file cartesian.h.
References _ig, _jg, _k, b, cartesian, d, GHOSTS, Point::i, left, neighbor(), OMP_PARALLEL(), point, right, s, top, val(), and x.
Referenced by box_boundary_level().
| macro2 for | ( | ) |
Definition at line 208 of file cartesian.h.
References b, default_scalar_bc, depth, foreach_boundary_dir(), is_boundary, periodic_bc(), and point.
| for | ( | ) | && |
Definition at line 279 of file cartesian.h.
Definition at line 44 of file cartesian.h.
References _k, cartesian, Point::i, OMP_PARALLEL(), point, reductions, and x.
| macro2 foreach_face_generic | ( | char | flags = 0, |
| Reduce | reductions = None, |
||
| const char * | order = "xyz" |
||
| ) |
Definition at line 60 of file cartesian.h.
References _k, cartesian, Point::i, OMP_PARALLEL(), point, reductions, and x.
| free | ( | list1 | ) |
Referenced by adapt_wavelet(), add_cexpr(), advection(), apply_bc(), array_free(), array_remove(), array_shrink(), boundary_flux(), boundary_internal(), boundary_stencil(), box_boundary_level(), box_boundary_level(), buffer_unref(), bview_destroy(), cartesian_boundary_face(), cartesian_debug(), cartesian_init_scalar(), cartesian_scalar_clone(), check_snd_rcv_matrix(), check_stencil(), coarsen_distance(), compdir(), compile_expression(), createShaderFromString(), debug_plot(), delete(), delete_distance(), delete_terrain(), destroy_layer(), display(), display_command(), display_control_internal(), display_control_update(), display_destroy(), display_init(), display_onopen(), display_send(), display_update(), distance(), dopen(), event_acceleration(), event_cleanup(), event_metric(), event_pressure(), event_tracer_diffusion(), event_vof(), exiting(), fclone(), free_boundaries(), free_cexpr(), free_display_defaults(), free_exts(), free_grid(), free_grid(), free_solver(), gpu_boundary_level(), gpu_errors(), gpu_errorsfree(), gpu_free_solver(), horizontal_diffusion(), incfree(), inclex(), include(), includes(), input_gfs(), input_pgm(), kdt_destroy(), loadNormalShader(), main(), matrix_free(), mem_destroy(), mempool_destroy(), memrange_free(), merge(), mg_solve(), mpi_boundary_destroy(), mpi_boundary_refine(), mpi_boundary_update_buffers(), msolve(), multigrid_restriction(), no_coalescence(), open_ext(), open_image_cleanup(), periodic_boundary_level_x(), postfree(), psort(), rcv_destroy(), rcv_free_buf(), rcv_pid_destroy(), rcv_pid_sync(), read_file_into_buffer(), receive_tree(), restore_mpi(), RPE(), run(), runge_kutta(), terrain(), tree_boundary_level(), update(), update_conservation(), update_distance(), and ws_send_array().
Definition at line 313 of file cartesian.h.
References cartesian, free(), free_boundaries(), grid, and x.
Referenced by init_grid().
| if | ( | ! | list1 | ) |
Definition at line 323 of file cartesian.h.
References add_boundary(), all, b, box(), box_boundary_level(), cartesian, d, datasize, dimension, free_grid(), grid, _Boundary::level, Grid::n, N, n, nboundary, p, periodic_boundary_level_x(), qcalloc, qmalloc, reset, sq(), Grid::tn, and x.
Definition at line 358 of file cartesian.h.
References cartesian, Point::i, L0, Point::level, point, x, X0, and Y0.
Definition at line 146 of file cartesian.h.
References Point::i, Point::level, o, p, and point.
Referenced by box_boundary_level(), box_boundary_level(), box_boundary_level_normal(), box_boundary_level_normal(), box_boundary_level_tangent(), for(), for(), halo_face(), if(), is_local_prolongation(), prolongation_vertex(), refine_face_x_axi(), refine_face_x_lonlat(), refine_face_x_spherisym(), refine_face_y_axi(), refine_face_y_lonlat(), tag(), tree_boundary_level(), update_cache_f(), and update_saint_venant().
| OMP_PARALLEL | ( | ) |
Definition at line 292 of file cartesian.h.
References cartesian, GHOSTS, i, j, point, s, and x.
Referenced by box_boundary_level(), box_boundary_level_normal(), box_boundary_level_tangent(), foreach(), foreach_boundary_dir(), foreach_face_generic(), and is_refined_check().
| def is_boundary() point | ( | point.i< 1||point.i > | = point.n + 1 || point.j < 1 || point.j >= point.n + 1 | ) |
| undef val define val | ( | a | , |
| k | , | ||
| l | , | ||
| m | |||
| ) | -> d)[(point.i + k + _index(a,m)*(size_t)(point.n + 2))*(point.n + 2) + point.j + l]) @define allocated(...) true macro POINT_VARIABLES (Point point = point) |
Definition at line 39 of file cartesian.h.
References VARIABLES().
Referenced by box_boundary_level(), box_boundary_level_normal(), box_boundary_level_tangent(), and reset().
| def is_boundary() _jg[] = {0,0,1,-1} |
Definition at line 152 of file cartesian.h.
Referenced by box_boundary_level(), box_boundary_level_normal(), box_boundary_level_tangent(), and VARIABLES().
|
extern |
Referenced by for().
Definition at line 276 of file cartesian.h.
|
static |
Definition at line 34 of file cartesian.h.
Referenced by catch_fpe(), and gdb().
Definition at line 276 of file cartesian.h.
Referenced by adapt_wavelet(), boundary_internal(), box_boundary_level_normal(), cartesian_boundary_level(), coarsen_cell_recursive(), delete(), event_acceleration(), foreach_tree(), gpu_boundary_level(), horizontal_diffusion(), input_gfs(), list_add(), list_add_depend(), list_add_depends(), list_append(), list_clone(), list_copy(), list_len(), list_prepend(), main(), mpi_boundary_level(), mpi_boundary_refine(), mpi_boundary_restriction(), mpi_boundary_update(), output_gauges(), process_line(), rcv_pid_receive(), rcv_pid_send(), refine_cell(), relax_GN(), reset(), residual_GN(), restore_mpi(), tensors_append(), tensors_from_vectors(), tensors_len(), tree_boundary_level(), tree_restriction(), update_green_naghdi(), vectors_add(), vectors_append(), vectors_copy(), vectors_from_scalars(), and vectors_len().