1!
2!     CalculiX - A 3-dimensional finite element program
3!     Copyright (C) 1998-2021 Guido Dhondt
4!
5!     This program is free software; you can redistribute it and/or
6!     modify it under the terms of the GNU General Public License as
7!     published by the Free Software Foundation(version 2);
8!
9!
10!     This program is distributed in the hope that it will be useful,
11!     but WITHOUT ANY WARRANTY; without even the implied warranty of
12!     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13!     GNU General Public License for more details.
14!
15!     You should have received a copy of the GNU General Public License
16!     along with this program; if not, write to the Free Software
17!     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18!
19!     cd compresibble for class 3 orifices where l/d>0 and r/d>0
20!
21!     author: Yannick Muller
22!
23      subroutine pk_cdc_cl3(lqd,rqd,reynolds,p2p1,beta,kappa,cdc_cl3)
24!
25      implicit none
26!
27      real*8  lqd,rqd,reynolds,p2p1,beta,kappa,cdc_cl3a,cdc_cl3b,
28     &     cdc_cl3d,cdc_cl3
29!
30      cdc_cl3a=0.d0
31      cdc_cl3b=0.d0
32      cdc_cl3d=0.d0
33!
34      if(lqd.le.0.28d0) then
35         call pk_cdc_cl3a(lqd,rqd,reynolds,p2p1,beta,kappa,cdc_cl3a)
36         cdc_cl3=cdc_cl3a
37      elseif(lqd.le.0.5d0) then
38         call pk_cdc_cl3b(lqd,rqd,reynolds,p2p1,beta,kappa,cdc_cl3b)
39         cdc_cl3=cdc_cl3b
40      else
41         call pk_cdc_cl3d(lqd,rqd,reynolds,p2p1,beta,cdc_cl3d)
42         cdc_cl3=cdc_cl3d
43!
44      endif
45!
46      return
47!
48      end
49