# 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

# =======================
#  main blade leading edge geometry
# ======================
include: roundBladeEndGeometry.atf, opening=in, openingU=IN, \
                                    bladeEnd=le, bladeEndU=LE, \
                                    position=leading, positionT=Leading, \
                                    paramSource=main passage

# splitter blade leading edge  and passage geometries
include: S1_splitterLEGeometry.atf

include: S1_splitterPassageGeometry.atf, bladeNumber=1, passageLabel=low, northBladeNumber=2, \
                                         northPOFlag=false, passageSuffix=L

include: S1_splitterPassageGeometry.atf, bladeNumber=2, passageLabel=high, northBladeNumber=1, \
                                         northPOFlag=true, passageSuffix=H

Attribute: Geometry=Expose.ccl, high b1,           Geometry Source = b1, Geometry Reference Name = High 
Attribute: Geometry=Expose.ccl, low b1,            Geometry Source = b1, Geometry Reference Name = Low 
#

# =============
# -  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 
# Two between blades, one overall
# ===================================
#  Additional Points
# ----------
Attribute: Geometry=TranslatedPoint.ccl, teb1tra, Source Point=teb1, Pitch Multiple=1
Attribute: Geometry=TranslatedPoint.ccl, te2b2Mtra, Source Point=te2b2, Pitch Multiple=-1
Attribute: Geometry=CurveFromPoints.ccl, te focal, Point List =te2b2Mtra$ teb1$ te2b1$  teb2$ te2b2$ teb1tra, Create Alternate Geometry = true
Attribute: Geometry=CurveFromPoints.ccl, te focal low,  Point List = te2b1$  teb2$, Create Alternate Geometry = true
Attribute: Geometry=CurveFromPoints.ccl, te focal high, Point List = te2b2$ teb1tra , Create Alternate Geometry = true
Attribute: Geometry=CurveFromPoints.ccl, te focal minus,  Point List = te2b2Mtra$ teb1$, Create Alternate Geometry = true
#

#  =======================================
#  Passage parametrization, main passage & things out of that
# ========================================
Attribute: Geometry=PassageParameterization.ccl, main passage, NE Point= teb1, Use Pitch Offset NE Point= true, SE Point=te2b1, NW Point= le focal high, SW Point= le focal low, S Curve = high fullb1, N Curve = low fullb1, Use Pitch Offset N Curve = true, W Curve = le focal, E Curve = te focal

# =================================================
# Projection objects map here do for blade centric
# =================================================
Attribute: Projection Object Map= Blade Centric,te_focal_high_crv,te_focal_minus_crv

Attribute: Domain Connection=TE, 1, teb1, te2b1, te focal minus, te focal low, trailing edgeb1
Attribute: Domain Connection=TE, 2, teb2, te2b2, te focal low, te focal high, trailing edgeb2
Attribute: Domain Connection=Global Outlet, out ext
