PCALC

PCALC, Oper, LabR, Lab1, Lab2, FACT1, FACT2, CONST
Forms additional labeled path items by operating on existing path items.

Compatible Products: – | Pro | Premium | Enterprise | Ent PP | Ent Solver | DYNA

Oper

Type of operation to be performed. See "Notes" below for specific descriptions of each operation:

ADD

 — 

Adds two existing path items.

MULT

 — 

Multiplies two existing path items.

DIV

 — 

Divides two existing path items (a divide by zero results in a value of zero).

EXP

 — 

Exponentiates and adds existing path items.

DERI

 — 

Finds a derivative.

INTG

 — 

Finds an integral.

SIN

 — 

Sine.

COS

 — 

Cosine.

ASIN

 — 

Arcsine.

ACOS

 — 

Arccosine.

LOG

 — 

Natural log.

LabR

Label assigned to the resulting path item.

Lab1

First labeled path item in operation.

Lab2

Second labeled path item in operation. Lab2 must not be blank for the MULT, DIV, DERI, and INTG operations.

FACT1

Factor applied to Lab1. A (blank) or '0' entry defaults to 1.0.

FACT2

Factor applied to Lab2. A (blank) or '0' entry defaults to 1.0.

CONST

Constant value (defaults to 0.0).

Notes

If Oper = ADD, the command format is:

PCALC,ADD,LabR,Lab1,Lab2,FACT1,FACT2,CONST

This operation adds two existing path items according to the operation:

LabR = (FACT1 x Lab1) + (FACT2 x Lab2) + CONST

It may be used to scale the results for a single path item.

If Oper = MULT, the command format is:

PCALC,MULT,LabR,Lab1,Lab2,FACT1

Lab2 must not be blank. This operation multiplies two existing path items according to the operation:

LabR = Lab1 x Lab2 x FACT1

If Oper = DIV, the command format is:

PCALC,DIV,LabR,Lab1,Lab2,FACT1

Lab2 must not be blank. This operation divides two existing path items according to the operation:

LabR = (Lab1/Lab2) x FACT1

If Oper = EXP, the command format is:

PCALC,EXP,LabR,Lab1,Lab2,FACT1,FACT2

This operation exponentiates and adds existing path items according to the operation:

LabR = (|Lab1|FACT1) + (|Lab2|FACT2|)

If Oper = DERI, the command format is:

PCALC,DERI,LabR,Lab1,Lab2,FACT1

Lab2 must not be blank. This operation finds a derivative according to the operation:

LabR = FACT1 x d(Lab1)/d(Lab2)

If Oper = INTG, the command format is:

PCALC,INTG,LabR,Lab1,Lab2,FACT1

Lab2 must not be blank. This operation finds an integral according to the operation:

Use S for Lab2 to integrate Lab1 with respect to the path length. S, the distance along the path, is automatically calculated by the program when a path item is created with the PDEF command.

If Oper = SIN, COS, ASIN, ACOS, or LOG, the command format is:

PCALC,Oper,LabR,Lab1,,FACT1,CONST

where the function (SIN, COS, ASIN, ACOS or LOG) is substituted for Oper and Lab2 is blank.

The operation finds the resulting path item according to one of the following formulas:

LabR = FACT2 x sin(FACT1 x Lab1) + CONST

LabR = FACT2 x cos(FACT1 x Lab1) + CONST

LabR = FACT2 x sin-1(FACT1 x Lab1) + CONST

LabR = FACT2 x cos-1(FACT1 x Lab1) + CONST

LabR = FACT2 x log(FACT1 x Lab1) + CONST

Menu Paths

Main Menu>General Postproc>Path Operations>Add
Main Menu>General Postproc>Path Operations>ArcCosine
Main Menu>General Postproc>Path Operations>ArcSine
Main Menu>General Postproc>Path Operations>Cosine
Main Menu>General Postproc>Path Operations>Differentiate
Main Menu>General Postproc>Path Operations>Divide
Main Menu>General Postproc>Path Operations>Exponentiate
Main Menu>General Postproc>Path Operations>Integrate
Main Menu>General Postproc>Path Operations>Multiply
Main Menu>General Postproc>Path Operations>Natural Log
Main Menu>General Postproc>Path Operations>Sine

Release 18.2 - © ANSYS, Inc. All rights reserved.