def getCNormalForce_3(odb,masterName,slaveName):
    values = valueExtractor.ContactValueExtractor(odb,masterName,slaveName)
    values.setField('CNORMF')
    values.setComponent('CNF3')
    vector = values.getEvolution()
    resForce = [sum([a for a in vecValue if a>0 ]) for vecValue in vector]
    return resForce
def getCShearStress2(odb,masterName,slaveName):
    values = valueExtractor.ContactValueExtractor(odb,masterName,slaveName)
    values.setField('CSHEAR2')
    return values.getEvolution()
def getFinalCOpening(odb,masterName,slaveName):
    values = valueExtractor.ContactValueExtractor(odb,masterName,slaveName)
    return values.getFinalValue()
def getFinalCShearStress1(odb,masterName,slaveName):
    values = valueExtractor.ContactValueExtractor(odb,masterName,slaveName)
    values.setField('CSHEAR1')
    return values.getFinalValue()
def getCNormalForce(odb,masterName,slaveName):
    values = valueExtractor.ContactValueExtractor(odb,masterName,slaveName)
    values.setField('CNORMF')
    vector = values.getEvolution()
    return vector.norm()
def getCPressure(odb,masterName,slaveName):
    values = valueExtractor.ContactValueExtractor(odb,masterName,slaveName)
    values.setField('CPRESS')
    return values.getEvolution()
def getCSlip2(odb,masterName,slaveName):
    values = valueExtractor.ContactValueExtractor(odb,masterName,slaveName)
    values.setField('CSLIP2')
    return values.getEvolution()
def getCOpening(odb,masterName,slaveName):
    values = valueExtractor.ContactValueExtractor(odb,masterName,slaveName)
    return values.getEvolution()
def getFinalCSlip1(odb,masterName,slaveName):
    values = valueExtractor.ContactValueExtractor(odb,masterName,slaveName)
    values.setField('CSLIP1')
    return values.getFinalValue()