|
Basilisk CFD
Adaptive Cartesian mesh PDE framework
|
Go to the source code of this file.
Macros | |
| #define | boundary(...) boundary_internal ((scalar *)__VA_ARGS__, __FILE__, LINENO) |
Typedefs | |
| typedef int | bid |
Variables | |
| void(* | debug )(Point) |
| define | k |
| define | l |
| define double | _y = 0. |
| define double double | _z = 0. |
| define double double char | flags = 0 |
| define double double char Reduce | reductions |
| void(* | boundary_level )(scalar *, int l) |
| void(* | boundary_face )(vectorl) |
| BoundaryFunc | default_scalar_bc [] |
| BoundaryFunc | default_vector_bc [] |
| #define boundary | ( | ... | ) | boundary_internal ((scalar *)__VA_ARGS__, __FILE__, LINENO) |
Definition at line 512 of file cartesian-common.h.
Definition at line 1009 of file cartesian-common.h.
Definition at line 618 of file cartesian-common.h.
References s.
Referenced by cartesian_init_tensor(), cartesian_init_vector(), new_bid(), and viscosity().
Definition at line 517 of file cartesian-common.h.
References boundary_face, dimension, free(), list_append(), v, vectorl::x, and x.
There are two types of boundary conditions: "full" boundary conditions, done by boundary_internal() and "flux" boundary conditions (i.e.
normal components on faces only) done by boundary_face().
Definition at line 541 of file cartesian-common.h.
References boundary_face, boundary_level, cm, dimension, flux, free(), scalar::i, i, list, list_add(), list_add_depends(), s, s_centered, s_face, scalar_is_dirty(), vectorl::x, and x.
Referenced by boundary_stencil().
Definition at line 600 of file cartesian-common.h.
References boundary_level, dimension, free(), list_add_depends(), s, s_face, and x.
Referenced by cartesian_methods().
Definition at line 595 of file cartesian-common.h.
References boundary_iterate, l, level, and list.
Referenced by cartesian_methods(), and gpu_boundary_level().
Definition at line 831 of file cartesian-common.h.
References _attribute, allocated(), debug_plot(), dimension, fflush(), fp, free(), scalar::i, k, l, m(), output_cells(), replace_(), s, v, x, y, and z.
Referenced by cartesian_methods(), and multigrid_debug().
Definition at line 704 of file cartesian-common.h.
References cartesian_init_vector(), d, dimension, nboundary, v, and x.
Referenced by cartesian_methods(), multigrid_init_face_vector(), and tree_init_face_vector().
Definition at line 627 of file cartesian-common.h.
References b, boundary, boundary_stencil(), default_scalar_bc, dimension, free(), scalar::i, nboundary, s, strdup(), symmetry(), and x.
Referenced by cartesian_init_vector(), cartesian_init_vertex_scalar(), cartesian_methods(), and multigrid_init_scalar().
Definition at line 716 of file cartesian-common.h.
References antisymmetry(), assert, b, cartesian_init_vector(), default_scalar_bc, default_vector_bc, dimension, nboundary, symmetry(), t, x, y, and z.
Referenced by cartesian_methods(), and multigrid_init_tensor().
Definition at line 682 of file cartesian-common.h.
References antisymmetry(), cartesian_init_scalar(), d, default_vector_bc, dimension, nboundary, v, x, y, and z.
Referenced by cartesian_init_face_vector(), cartesian_init_tensor(), cartesian_methods(), and multigrid_init_vector().
Definition at line 666 of file cartesian-common.h.
References cartesian_init_scalar(), d, dimension, nboundary, s, and x.
Referenced by cartesian_methods(), and multigrid_init_vertex_scalar().
| void cartesian_methods | ( | ) |
Definition at line 918 of file cartesian-common.h.
References boundary_face, boundary_level, cartesian_boundary_face(), cartesian_boundary_level(), cartesian_debug(), cartesian_init_face_vector(), cartesian_init_scalar(), cartesian_init_tensor(), cartesian_init_vector(), cartesian_init_vertex_scalar(), cartesian_scalar_clone(), debug, init_face_vector, init_scalar, init_tensor, init_vector, init_vertex_scalar, and scalar_clone.
Referenced by cartesian1D_methods(), gpu_cartesian_methods(), and multigrid_methods().
Definition at line 379 of file cartesian-common.h.
References _attribute, assert, boundary, boundary_stencil(), free(), i, list_copy(), _Attributes::name, nboundary, and x.
Referenced by cartesian_methods().
|
static |
Definition at line 809 of file cartesian-common.h.
References cells(), dimension, fp, free(), replace_(), and x.
Referenced by cartesian_debug().
Definition at line 1083 of file cartesian-common.h.
References c, scalar::i, s, s_input, s_nowarning, s_output, v, and x.
| void free_solver | ( | ) |
Definition at line 464 of file cartesian-common.h.
References _attribute, _constant, _val_higher_dimension, a, all, array_free(), assert, baseblock, Events, f, free(), free_grid, free_solver_funcs, i, kh_destroy, _Event::last, Array::len, _Event::next, Array::p, qpclose_all(), and x.
Definition at line 346 of file cartesian-common.h.
References _constant, scalar::i, i, realloc(), s, val(), and x.
Referenced by init_const_vector(), and new_const_scalar().
Definition at line 364 of file cartesian-common.h.
References dimension, init_const_scalar(), v, val(), and x.
Referenced by new_const_vector().
Definition at line 931 of file cartesian-common.h.
References init_tensor, and t.
| trace double interpolate | ( | scalar | v, |
| double | xp = 0., |
||
| double | yp = 0., |
||
| double | zp = 0., |
||
| bool | linear = true |
||
| ) |
Definition at line 968 of file cartesian-common.h.
References interpolate_linear(), min, nodata, point, v, val(), and x.
Referenced by output_vtk(), and slave_interpolate().
|
static |
Definition at line 936 of file cartesian-common.h.
References i, j, k, sign(), v, x, y, and z.
Referenced by interp(), interpolate(), interpolate_array(), and segment_flux().
Definition at line 528 of file cartesian-common.h.
References d, scalar::i, list, list_add_depends(), list_append(), s, s_centered, t, and x.
Referenced by boundary_internal(), cartesian_boundary_face(), and list_add_depends().
Definition at line 400 of file cartesian-common.h.
References c, datasize, dimension, scalar::i, i, list, list_append(), s, scalar_clone, and x.
Referenced by event_pressure(), horizontal_diffusion(), mg_solve(), msolve(), run(), runge_kutta(), and update().
Referenced by alloc_children(), allocated(), alpha_refine(), box_matrix(), cartesian_debug(), centroids_curvature_fit(), face_fraction(), free_grid(), free_grid(), height_curvature_fit(), if(), init_grid(), kdt_heap_sort_cost(), line_center(), line_length_center(), log_base2(), lookup_tag(), matrix_free(), matrix_inverse(), matrix_inverse3(), matrix_new(), mem_allocated(), mem_allocated(), mem_assign(), mem_assign(), mem_destroy(), mem_free(), mem_new(), mempool_alloc(), mempool_alloc0(), mempool_destroy(), mempool_free(), mempool_new(), memrange_alloc(), memrange_free(), mpi_boundary_destroy(), mpi_boundary_level(), mpi_boundary_restriction(), mpi_boundary_update_buffers(), multigrid_debug(), mycs(), parabola_fit_add(), parabola_fit_init(), periodic_function(), quad_x(), quad_y(), rcv_pid_receive(), rcv_pid_row(), rcv_pid_send(), rcv_pid_sync(), rcv_pid_wait(), reconstruction(), redraw(), refine_cell(), refine_face_solenoidal(), segment_flux(), smatrix_inverse(), snd_rcv_destroy(), and snd_rcv_init().
| bid new_bid | ( | ) |
Definition at line 1011 of file cartesian-common.h.
References antisymmetry(), b, dimension, scalar::i, nboundary, realloc(), s, sizeof(), symmetry(), v, and x.
Definition at line 357 of file cartesian-common.h.
References i, init_const_scalar(), s, val(), and x.
Definition at line 370 of file cartesian-common.h.
References dimension, scalar::i, i, init_const_vector(), v, val(), vector::x, and x.
Definition at line 752 of file cartesian-common.h.
Referenced by balance(), cartesian_debug(), and check_two_one().
Definition at line 1061 of file cartesian-common.h.
References assert, bottom, c, dir, left, Period, periodic_boundary(), and x.
Definition at line 1035 of file cartesian-common.h.
References s.
Referenced by event_defaults(), and periodic_boundary().
Definition at line 1040 of file cartesian-common.h.
References d, default_scalar_bc, default_vector_bc, is_vertex_scalar(), periodic_bc(), s, v, and x.
Referenced by periodic().
Definition at line 798 of file cartesian-common.h.
References c, strdup(), and x.
Referenced by cartesian_debug(), and debug_plot().
Definition at line 613 of file cartesian-common.h.
References s.
Referenced by cartesian_init_scalar(), cartesian_init_tensor(), and new_bid().
This displays a (1D,2D,3D) stencil index.
Definition at line 1099 of file cartesian-common.h.
References d, dimension, index, and x.
Referenced by stencil_val(), and stencil_val_a().
Definition at line 13 of file cartesian-common.h.
Definition at line 13 of file cartesian-common.h.
Definition at line 510 of file cartesian-common.h.
Referenced by boundary_flux(), boundary_internal(), cartesian_methods(), and tree_methods().
Definition at line 509 of file cartesian-common.h.
Referenced by boundary_internal(), cartesian_boundary_face(), cartesian_methods(), distance(), gpu_cartesian_methods(), gpu_multigrid_methods(), inverse_wavelet(), mg_cycle(), msolve(), relax_viscosity(), solve(), tag(), terrain(), tree_methods(), and wavelet().
Definition at line 5 of file cartesian-common.h.
Referenced by cartesian_methods().
| BoundaryFunc default_scalar_bc[] |
Definition at line 623 of file cartesian-common.h.
Referenced by box_boundary_level(), cartesian_init_scalar(), cartesian_init_tensor(), and periodic_boundary().
| BoundaryFunc default_vector_bc[] |
Definition at line 676 of file cartesian-common.h.
Referenced by cartesian_init_tensor(), cartesian_init_vector(), and periodic_boundary().
Definition at line 14 of file cartesian-common.h.
Referenced by adapt_wavelet(), balance(), cache_append(), flag_border_cells(), for(), for(), foreach_coarse_level_stencil(), foreach_coarse_level_stencil(), foreach_face_stencil(), foreach_face_stencil(), foreach_level_or_leaf_stencil(), foreach_level_or_leaf_stencil(), foreach_level_stencil(), foreach_point_stencil(), foreach_point_stencil(), foreach_region_stencil(), foreach_region_stencil(), foreach_stencil(), foreach_vertex_stencil(), foreach_vertex_stencil(), foreach_visible_stencil(), input_gfs(), restore_mpi(), and update_cache_f().
| define k |
Definition at line 8 of file cartesian-common.h.
Referenced by apply_bc(), array_remove(), box_matrix(), bubbles_are_close(), cartesian_debug(), check_snd_rcv_matrix(), cool_warm(), curvature(), curvature_prolongation(), curvature_restriction(), display_add(), display_destroy(), display_display(), display_onclose(), display_remove(), display_update(), eigsrt(), evaluate_expression(), event_pressure(), fine(), for(), foreach_cell_post_root(), getvalue(), gray(), if(), if(), interpolate_linear(), lambda2(), mapped_position(), multigrid_debug(), no_coalescence(), ohmic_flux(), OMP_PARALLEL(), parabola_fit_add(), prolongation_vertex(), randomap(), rcv_pid_send(), refine_cell(), refine_embed_linear(), refine_face_solenoidal(), remap_c(), remap_central(), residual_nh(), right_value(), runge_kutta(), smatrix_inverse(), solve_hessenberg(), stencil_val(), stencil_val_a(), tag(), tracer_is_close(), and update().
| define l |
Definition at line 8 of file cartesian-common.h.
Referenced by _stencil_is_face_x(), _stencil_is_face_y(), _stencil_is_face_z(), adapt_wavelet(), advance_saint_venant(), apply_bc(), area(), balance(), box_boundary_level(), box_matrix(), cartesian_boundary_level(), cartesian_debug(), check_depth(), check_snd_rcv_matrix(), code(), coeffs1(), coeffs2(), constant_NNT(), correct_qz(), debug_mpi(), delete_distance(), distance(), event_defaults(), event_metric(), event_pressure(), event_viscous_term(), for(), foreach_cell_post_root(), foreach_coarse_level_stencil(), foreach_level_or_leaf_stencil(), foreach_slice_x(), foreach_slice_y(), geometric_beta(), gpu_boundary_level(), h_relax(), halo_face(), heights(), includes_point(), index(), intersection(), intersects_point(), inverse_wavelet(), kdt_includes(), kdt_intersects(), kdt_rect_write(), level(), list_copy(), list_lookup(), main(), matrix(), matrix1(), mg_cycle(), mpi_boundary_coarsen(), mpi_boundary_level(), mpi_boundary_restriction(), mpi_boundary_update_buffers(), msolve(), multigrid_debug(), multigrid_restriction(), no_coalescence(), parabola_fit_add(), quad_neighbor(), rcv_pid_receive(), rcv_pid_row(), rcv_pid_send(), rcv_pid_sync(), rcv_print(), refine_cell(), relative(), relax(), relax_diffusion(), relax_GN(), relax_nh(), relax_nh(), relax_nh1(), relax_psi(), relax_thermal(), relax_viscosity(), residual_nh(), residual_nh2(), residual_nh3(), segment_flux(), size(), smatrix_inverse(), solve(), solve_hessenberg(), subtree_size(), tag(), terrain(), tree_boundary_level(), union_bound(), update_conservation(), update_saint_venant(), vectors_copy(), vertical_diffusion(), vertical_fluxes(), vertical_viscosity(), wavelet(), and z_indexing().
Definition at line 14 of file cartesian-common.h.
Referenced by for(), for(), for(), foreach(), foreach_coarse_level_stencil(), foreach_coarse_level_stencil(), foreach_face_generic(), foreach_face_stencil(), foreach_face_stencil(), foreach_level_or_leaf_stencil(), foreach_level_or_leaf_stencil(), foreach_level_stencil(), foreach_point_stencil(), foreach_point_stencil(), foreach_region_stencil(), foreach_region_stencil(), foreach_segment(), foreach_stencil(), foreach_vertex_stencil(), foreach_vertex_stencil(), foreach_visible_stencil(), and is_refined_check().