!***************************************************************************************************************!
! TITLE: CFVR2719 - Biaxial Bending + Axial force checking according to AS3600
! SUBTITLE: check a reinforced concrete beam subjected to Biaxial Bending + Axial force according to AS3600
!
! DESCRIPTION: A fixed beam which has a pipe reinforced concrete section is subjected to
! DESCRIPTION: an axial compression force of 70.82 Mp, a bending moment of 40 m*Mp on the Z axis direction,
! DESCRIPTION: and a bending moment of 30 m*Mp on the Y axis direction.
! DESCRIPTION:
! DESCRIPTION: The aim of the example is to obtain the check criterion according to AS3600.
! DESCRIPTION:
! DESCRIPTION: Variation of the example included in "Prontuario informático del H.A."
! DESCRIPTION: by Corres-León-Pérez-Arroyo-López, 1994, Page 146
! DESCRIPTION:
!
! ELEMENT TYPE: BEAM4
! MODULES:
! UNITS: User
! KEYWORD1: Beam
! KEYWORD2: Cross Section
! KEYWORD3: Code Checking/Design
! KEYWORD4: Reinforced Concrete
! KEYWORD5: AS3600
!
!***************************************************************************************************************!
   FINISH
  ~CFCLEAR,,1
   NomFile='CFVR2719'
 /TITLE,%NomFile%, Biaxial BENDING + AXIAL FORCE CHECKING AS3600

! -------------------------------------------------------------------------------------
! Initial data
! -------------------------------------------------------------------------------------
! CivilFEM SETUP
 ~UNITS,,LENG,M
 ~UNITS,,TIME,S
 ~UNITS,,FORC,MP
 ~CODESEL,EC3-92,AS3600,,,EC8-94

! Preprocessor
  /PREP7

! Material Definition
 ~CFMP,1,LIB,CONCRETE,ACI,fc_3500
 ~CFMP,2,LIB,REINF,ACI,fy_70000
! Element Type Definition
  ET,1,Beam4                            ! Element Type 1: 2D Beam

! Cross-section definition
 ~CSECDMS,1,PIPE,1,0.6,0.15

! Reinforcement definition
 ~RNFDEF,1,1,2,1,0,0.046,0.512E-2     ! Total Reinf.area=51.2cm^2
! Member Property
 ~MEMBPRO,1,AS3600,FI,0.90   ! FI=0.90
! Beam & Shell property
 ~BMSHPRO,1,BEAM,1,1,,,4,1,0,,Beam property

! Model
  N,1                                   ! Nodes input
  N,5,5
  FILL,1,5
  E,1,2                                 ! Elements input
  EGEN,4,1,1,1
  D,1, , , , , ,ALL                     ! Boundary conditions

/SOLU
  M1=40.00           ! 40.00 m*Mp bending moment
  M2=30.00           ! 30.00 m*Mp bending moment
  H=-70.82           ! 70.82 Mp axial force
  F,5,FX,H
  F,5,MZ,M1
  F,5,MY,M2
  SOLVE               ! Calculation

/POST1
! Postprocessor
  ~CFSET,,1,1       ! Read first load step
! Bending + Axial checking for pipe sections according to AS3600
  ~CHKCON,3DB

!--------------------------------------------------------------------------------------
! DATA CHECK
!--------------------------------------------------------------------------------------
! Data comparison number
  NComp = 2
  NComp_ch = 0

! Matrix dim.
  *DIM,LABEL,CHAR,Ncomp,1
  *DIM,LABEL_CH,CHAR,Ncomp_ch,1
  *DIM,VALUE,,Ncomp,3
  *DIM,VALUE_CH,CHAR,Ncomp_ch,3
  *DIM,TOLER,,Ncomp,2

! Labels
  LABEL(1,1) = 'CRTC2D_I'
  LABEL(2,1) = 'CRTC2D_J'

! Correct values
  VALUE(1,1)=0.907
  VALUE(2,1)=0.907

! Comparison
 ~PLLSCON,CRT_TOT
 *GET,VALUE(1,2),ELEM,4,ETAB,CFETAB_I
 ~PLLSCON,CRT_TOT
 *GET,VALUE(2,2),ELEM,4,ETAB,CFETAB_J

! Warning and error tolerances
  TOLER( 1, 1)= 5E-02 $ TOLER( 1, 2)= 5E-02
  TOLER( 2, 1)= 5E-02 $ TOLER( 2, 2)= 5E-02

!--------------------------------------------------------------------------------------
! Results comparison
!--------------------------------------------------------------------------------------
  COMPARA.MAC

