MFIX
2016-1
Main Page
Modules
Data Types List
Files
File List
File Members
eval_usr_fct.f
Go to the documentation of this file.
1
!vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvC
2
! C
3
! Module name: EVAL_USR_FCT C
4
! Purpose: Evaluates a user-defined function f_usr(x1,x2,x3) C
5
! where (x1,x2,x3) are the Cartesian coordinates of any C
6
! point in the computational domain C
7
! Regions where f_usr < 0 are part of the computational domain. C
8
! Regions where f_usr > 0 are excluded from the computational domain. C
9
! The integer Q is used to assign a boundary condition to the cut cell C
10
! C
11
! Author: Jeff Dietiker Date: 21-Feb-08 C
12
! Reviewer: Date: C
13
! C
14
! Revision Number # Date: ##-###-## C
15
! Author: # C
16
! Purpose: # C
17
! C
18
!^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^C
19
SUBROUTINE
eval_usr_fct
(x1,x2,x3,Q,f_usr,CLIP_FLAG)
20
21
USE
param
22
USE
param1
23
USE
parallel
24
USE
constant
25
USE
run
26
USE
toleranc
27
USE
geometry
28
USE
indices
29
USE
compar
30
USE
sendrecv
31
USE
fldvar
32
USE
quadric
33
USE
cutcell
34
35
IMPLICIT NONE
36
37
38
!-----------------------------------------------
39
!
40
! Include files defining common blocks here
41
!
42
!
43
! Define local variables here
44
DOUBLE PRECISION
:: x1,x2,x3
45
DOUBLE PRECISION
:: f_usr
46
INTEGER
:: Q
47
LOGICAL
:: CLIP_FLAG
48
!
49
!
50
! Include files defining statement functions here
51
!
52
IF
(
n_usr_def
< 1)
RETURN
53
!
54
! Insert user-defined code here
55
! The code must define a value for f_usr and Q
56
!
57
58
clip_flag = .true.
59
RETURN
60
61
62
END SUBROUTINE
eval_usr_fct
63
sendrecv
Definition:
sendrecv_mod.f:10
toleranc
Definition:
toleranc_mod.f:10
param1
Definition:
param1_mod.f:2
constant
Definition:
constant_mod.f:20
compar
Definition:
compar_mod.f:12
quadric
Definition:
quadric_mod.f:1
indices
Definition:
indices_mod.f:9
parallel
Definition:
parallel_mod.f:3
eval_usr_fct
subroutine eval_usr_fct(x1, x2, x3, Q, f_usr, CLIP_FLAG)
Definition:
eval_usr_fct.f:20
fldvar
Definition:
fldvar_mod.f:11
cutcell::n_usr_def
integer n_usr_def
Definition:
cutcell_mod.f:424
cutcell
Definition:
cutcell_mod.f:1
run
Definition:
run_mod.f:13
param
Definition:
param_mod.f:2
geometry
Definition:
geometry_mod.f:11
cartesian_grid
eval_usr_fct.f
Generated by
1.8.11