*If(strcmp(MatProp(Material_Prototype),"CCSandwicKubina")==0 || strcmp(MatProp(Material_Prototype),"CCSandwicKubinaCombinedMaterial")==0)
*Set Var MaterialType=1
*If(strcmp(GenData(Calculation_Analysis),"SandwichStatic3D")==0)
*#
*If(strcmp(MatProp(Material_Prototype),"CCSandwicKubinaCombinedMaterial")==0)
*include ..\include.src.bas\WriteChild_CombineMaterial.bas
*EndIf
*#
*If(strcmp(MatProp(Static_Material_Prototype),"CC2DInterface")==0 || strcmp(MatProp(Static_Material_Prototype),"CC3DInterface")==0)
*include ..\include.src.bas\WriteInterfaceFunctions.bas
*EndIf

// Material definition of parameters. *Operation(MatNum)
MATERIAL ID *matvar 
  NAME "#*matvar *MatProp(0) for Sandwic problem"
  TYPE "*MatProp(Static_Material_Prototype)"
*#
*If(strcmp(MatProp(Static_Material_Prototype),"CC3DElastIsotropic")==0)
*include ..\include.src.bas\BasicMaterialParameters.bas

*ElseIf(strcmp(MatProp(Static_Material_Prototype),"CC2DInterface")==0 || strcmp(MatProp(Static_Material_Prototype),"CC3DInterface")==0)
*If(DebugControl==1)
// (strcmp(MatProp(Static_Material_Prototype),"CC2DInterface")==0 || strcmp(MatProp(Static_Material_Prototype),"CC3DInterface")==0)
*EndIf
*include ..\include.src.bas\CCInterfaceMaterialParameters.bas

*ElseIf(strcmp(MatProp(Static_Material_Prototype),"CC3DCementitious")==0)
*If(DebugControl==1)
// (strcmp(MatProp(Static_Material_Prototype),"CC3DCementitious")==0)
*EndIf
*include ..\include.src.bas\BasicMaterialParameters.bas
*include ..\include.src.bas\addCC3DCementitiousMaterialParameters.bas

*ElseIf(strcmp(MatProp(Static_Material_Prototype),"CC3DNonLinCementitious")==0 || strcmp(MatProp(Static_Material_Prototype),"CC3DNonLinCementitious2")==0 )
*If(DebugControl==1)
// (strcmp(MatProp(Static_Material_Prototype),"CC3DNonLinCementitious")==0 || strcmp(MatProp(Static_Material_Prototype),"CC3DNonLinCementitious2")==0 )
*EndIf
*include ..\include.src.bas\BasicMaterialParameters.bas
*include ..\include.src.bas\addCC3DCementitiousMaterialParameters.bas
*include ..\include.src.bas\addCC3DNonLinCementitiousMaterialParameters.bas
*#If(strcmp(MatProp(Static_Material_Prototype),"CC3DNonLinCementitious2")==0)
*include ..\include.src.bas\addCC3DNonLinCementitious2AdvanceMaterialParameters.bas
*#EndIf
*#
*include ..\include.src.bas\addRadialCracks_MaterialParameter.bas
*include ..\include.src.bas\ModelIdealisation.bas
*EndIf

*If(strcmp(MatProp(Static_Material_Prototype),"CCCombinedMaterial")==0)
*If(DebugControl==1)
// (strcmp(MatProp(Static_Material_Prototype),"CCCombinedMaterial")==0)
*EndIf
*include ..\include.src.bas\CCCombinedMaterialComponentParameters.bas
*#

*ElseIf(strcmp(MatProp(Static_Material_Prototype),"CC2DInterface")==0 || strcmp(MatProp(Static_Material_Prototype),"CC3DInterface")==0)
*If(DebugControl==1)
// (strcmp(MatProp(Static_Material_Prototype),"CC2DInterface")==0 || strcmp(MatProp(Static_Material_Prototype),"CC3DInterface")==0)
*EndIf
*#
*include ..\include.src.bas\WriteInterfaceFunctions.bas

*EndIf
*#
*Else
// Material definition of parameters. *Operation(matvar)
*If(strcmp(MatProp(Temperature_Material_Prototype),"CCModelBaXi94")==0)
*include ..\include.src.bas\WriteBaXiFunctions.bas
*EndIf

MATERIAL ID *matvar 
  NAME "#*matvar *MatProp(0) for Sandwic problem"
  TYPE "*MatProp(Temperature_Material_Prototype)"
*If(strcmp(MatProp(Temperature_Material_Prototype),"CCModelBaXi94")==0)
*include ..\include.src.bas\CCModelBaXi94MaterialParameters.bas

*EndIf
*# posledni EndIf je k podmince jestli jsme ve fazi statiky, nebo teploty u Kubiny
*EndIf
*#
*EndIf