# ==============================================
# Files required for splitter template
#
#ATM Topology List = S2_splitterBase,S2_MP1by12,S2_LEB2SplitterCircle,S2_Pass1S1x4,S2_Pass2S1x8,S2_LEB3SplitterCircle,S2_Pass3S1x4,S2_Pass4S1x4,S2_Pass1TEDoubleHerringbone, S2_Pass2TEDoubleHerringbone,S2_Pass3TEDoubleHerringbone  

#S2_splitterBase.atf(tgt) 
#S2_MP1by12.atf(tgt)               SingleBlock1by12.atf
#S2_LEB2SplitterCircle.atf(tgt)    S_LESplitterCircleS4P8.atf
#S2_LEB3SplitterCircle.atf(tgt)    S_LESplitterCircleS4P4.atf
#                                  SingleBlock1by4.atf
#                                  SingleBlock1by8.atf
#                                  SingleBlock1by12.atf 
#S2_Pass1S1x4.atf(tgt)
#S2_Pass2S1x8.atf(tgt)
#S2_Pass3S1x4.atf(tgt)
#S2_Pass4S1x4.atf(tgt)
#                                   S_doubleHerringbone.atf
#                                   S_doubleHerringboneProximity.atf
#

#S2_Pass1TEDoubleHerringbone.atf(tgt)
#S2_Pass2TEDoubleHerringbone.atf(tgt)
#S2_Pass3TEDoubleHerringbone.atf(tgt)
# Files required for splitter template
# ==============================================



include: S2_LERoundedSymmetric.atf
Attribute: Edge Refinements=45, InletProximity
Attribute: Edge Refinements=1,  InletProximity
# Specify boundary layer on low side of  current blade
Attribute: Edge Distribution Model=Boundary Layer, 46, 17, 1

# Creates some basic geometry attributes for a main blade with splitter.

# =======================
# set the upstream and downstream extents of the domain
# =======================
Attribute: Domain Connection=Local Upstream, in ext
Attribute: Domain Connection=Local Downstream, te focal

# =======================
# set the inlet and outlet domain connections
# =======================
Attribute: Domain Connection=Global Inlet, in ext
Attribute: Domain Connection=Global Outlet, out ext
#
include: S_MainCutOffBlade.atf,     bladeNumber = 1
include: S_SplitterCutOffBlade.atf, bladeNumber = 2
include: S_SplitterCutOffBlade.atf, bladeNumber = 3

include: MainBladeRoundBladeEndGeometry.atf, bladeNumber = 1, opening=in, openingU=IN, bladeEnd=le, bladeEndU=LE, position=leading
include: MainBladeFocalGeometry.atf, bladeNumber = 1, opening=in, bladeEnd=le, position=leading

#  =======================================
#  Passage parametrization, main passage & things out of that
# ========================================
Attribute: Geometry=PassageParameterization.ccl, main passage, NE Point= teb1 p, SE Point=te2b1, NW Point= le focal high, SW Point= le focal low, S Curve = high full b1, N Curve = low full b1 p, W Curve = le focal, E Curve = te focal
Attribute: Geometry=PassageCurve.ccl, le passage focal, Passage Curve Type = LE Pinning Line, \
                    Passage Parameterization Source = main passage, Pinning Line Model = Rounded
Attribute: Geometry=PointOnCurve.ccl, le passage low,  Curve Object = le passage focal, Location Method = Beginning
Attribute: Geometry=PointOnCurve.ccl, le passage high,  Curve Object = le passage focal, Location Method = End

                    
#
# splitter blade leading edge  and passage geometries
include: S_splitterLEGeometry.atf, bladeNumber=2, bladeNumberBelow = 1, bladeNumberAbove = 1, periodic = p, passageSource = main passage
include: S_splitterLEGeometry.atf, bladeNumber=3, bladeNumberBelow = 2, bladeNumberAbove = 1, periodic = p, passageSource = main passage
#
# -- Passage Parameterization
#
Attribute: Geometry=PassageParameterization.ccl, passage above b1, SW Point=lowpassWS b2, NW Point=lowpassWN b2, SE Point=te2b1, NE Point=teb2, \ 
                                                                    W Curve=constLEb2, E Curve=te focal pass1, S Curve=high b1, N Curve=low b2 

Attribute: Geometry=PassageParameterization.ccl, passage above b2, SW Point=lowpassWS b3, NW Point=lowpassWN b3, SE Point=te2b2, NE Point=teb3, \ 
                                                                    W Curve=constLEb3, E Curve=te focal pass2, S Curve=high b2, N Curve=low b3 

Attribute: Geometry=PassageParameterization.ccl, passage above b3, SW Point=highpassWS b3, NW Point=highpassWN b3, SE Point=te2b3, NE Point=teb1 p, \ 
                                                                    W Curve=constLEb3, E Curve=te focal pass3, S Curve=high b3, N Curve=low b1 p 
 
# =======================
include: S_splitterCutOffPassageCurve.atf, passageNumber=1, passageSource = passage above b1
include: S_splitterCutOffPassageCurve.atf, passageNumber=2, passageSource = passage above b2
include: S_splitterCutOffPassageCurve.atf, passageNumber=3, passageSource = passage above b3
 

# =============
# -  Outlet
# =============
Attribute: Geometry=CreatePoint.ccl, out constant theta, Reference Theta Source=teb1, Point Type = Object and Curve Key, Geometry Object = /GEOMETRY/OUTLET, Geometry Key = constant theta extended, Set Theta To Reference Theta = on, Create Alternate Geometry = yes
Attribute: Geometry=CreateCurve.ccl, out ext, Create Pitch Offset Geometry=off, Source Point=out constant theta, Curve Type = Rotation, Geometry Object = /GEOMETRY/OUTLET, Geometry Key = extended full, Create Alternate Geometry = yes

# ==================================
#  Focal Outlet Geometry 
# Three between blades, one overall
# ===================================
#  Additional Points
# ----------
Attribute: Geometry=TranslatedPoint.ccl, te2b3 mp, Source Point=te2b3, Pitch Multiple=-1
Attribute: Geometry=CurveFromPoints.ccl, te focal, Point List =te2b3 mp$ teb1$ te2b1$ teb2$ te2b2$ teb3$ te2b3$ teb1 p, Create Alternate Geometry = true
#
Attribute: Geometry=CurveFromPoints.ccl, te focal minus,    Point List = te2b3 mp$ teb1$, Create Alternate Geometry = true
Attribute: Geometry=CurveFromPoints.ccl, te focal pass1, Point List = te2b1$  teb2$,      Create Alternate Geometry = true
Attribute: Geometry=CurveFromPoints.ccl, te focal pass2, Point List = te2b2$  teb3$,       Create Alternate Geometry = true
Attribute: Geometry=CurveFromPoints.ccl, te focal pass3, Point List = te2b3$  teb1 p$,     Create Alternate Geometry = true
# =================================================
# Projection objects map here do for blade centric
# =================================================
Attribute: Projection Object Map= Blade Centric,te_focal_pass3_crv,te_focal_minus_crv
#

Attribute: Domain Connection=TE, 1, teb1, te2b1, te focal minus, te focal pass1, trailing edgeb1
Attribute: Domain Connection=TE, 2, teb2, te2b2, te focal pass1, te focal pass2, trailing edgeb2
Attribute: Domain Connection=TE, 3, teb3, te2b3, te focal pass2, te focal pass3, trailing edgeb3
