OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
inigrav_mod.F
Go to the documentation of this file.
1Copyright> OpenRadioss
2Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3Copyright>
4Copyright> This program is free software: you can redistribute it and/or modify
5Copyright> it under the terms of the GNU Affero General Public License as published by
6Copyright> the Free Software Foundation, either version 3 of the License, or
7Copyright> (at your option) any later version.
8Copyright>
9Copyright> This program is distributed in the hope that it will be useful,
10Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12Copyright> GNU Affero General Public License for more details.
13Copyright>
14Copyright> You should have received a copy of the GNU Affero General Public License
15Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16Copyright>
17Copyright>
18Copyright> Commercial Alternative: Altair Radioss Software
19Copyright>
20Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21Copyright> software under a commercial license. Contact Altair to discuss further if the
22Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23!||====================================================================
24!|| inigrav ../starter/share/modules1/inigrav_mod.F
25!||--- called by ------------------------------------------------------
26!|| hm_read_inigrav ../starter/source/initial_conditions/inigrav/hm_read_inigrav.F
27!|| iniebcs_dp ../starter/source/boundary_conditions/ebcs/iniebcs_dp.F
28!|| iniebcs_nrf_tcar ../starter/source/boundary_conditions/ebcs/iniebcs_nrf_tcar.F
29!|| iniebcsp0 ../starter/source/boundary_conditions/ebcs/iniebcsp0.F
30!|| inigrav_load ../starter/source/initial_conditions/inigrav/inigrav_load.F
31!|| inigrav_part_list ../starter/source/initial_conditions/inigrav/inigrav_part_list.F
32!|| lectur ../starter/source/starter/lectur.F
33!|| st_qaprint_initial_conditions ../starter/source/output/qaprint/st_qaprint_initial_conditions.F
34!||====================================================================
35 MODULE inigrav
36#include "my_real.inc"
37
38 INTEGER , DIMENSION(:,:), ALLOCATABLE :: inigrv
39 my_real , DIMENSION(:,:), ALLOCATABLE :: linigrav
40
42 logical :: is_allocated = .false.
43 integer,dimension(:),allocatable :: tagpart ! 1:part is targeted with INIGRAV, 0:otherwise ; SIZE=1:NPART
44 my_real,dimension(:,:),allocatable :: ng ! gravity orientation
45 my_real,dimension(:),allocatable :: grav0 ! gravity value
46
47 contains
48 procedure :: destroy => inigrav_part_list_destroy
49
50 end type t_inigrav_parts
51
53
54 CONTAINS
55
56!||====================================================================
57!|| inigrav_part_list_destroy ../starter/share/modules1/inigrav_mod.F
58!||====================================================================
60 implicit none
61 class(t_inigrav_parts), intent(inout) :: this
62 if(allocated(this%TAGPART)) deallocate(this%TAGPART)
63 if(allocated(this%NG)) deallocate(this%NG)
64 if(allocated(this%GRAV0)) deallocate(this%GRAV0)
65 end subroutine inigrav_part_list_destroy
66
67 END MODULE
#define my_real
Definition cppsort.cpp:32
subroutine inigrav_part_list_destroy(this)
Definition inigrav_mod.F:60
integer, dimension(:,:), allocatable inigrv
Definition inigrav_mod.F:38
type(t_inigrav_parts) inigrav_parts
Definition inigrav_mod.F:52