Log equation transform

 

This function allows you to compute a log curve from one or more logs by specifying a generalized equation transform.  After the equation is written, you assign equation variables to database variables. Equation variables may be logs, zone data items (including fm tops), numeric constants, or curve depths.

To open the log equation transform tool:
Main module: Compute>From Logs>Equation Expression…

The Log equation dialog box contains two tabs:

·Equation tab —  used to enter, save and load the equation

·Options tab — limits the calculation to a set depth or to a subset of wells in the project

Equation tab

In the Equation tab, you can enter an equation using variables and mathematical operators. The variable on the left side of the equal sign is the result variable.

Variables

Variables are defined with text and can be specific (“GAMMARAY” or “FORMATION_TEMPERATURE”) or general (“A” or “B”).

Operators

Petra recognizes a wide variety of mathematical operators when creating equations:

OPERATOR

DEFINITION

OPERATOR

DEFINITION

OPERATOR

DEFINITION

+

Addition

ATAN(x)

Arctangent of x ( in radians)

MIN (x,y)

Minimum of x and y

-

Subtraction

COS(x)

Cosine of x in radians

ROUND (x)

Rounded value of x

*

Multiplication

COSH(x)

Hyperbolic cosine of x (radians)

SIN (x)

Sine of x in radians

/

Division

EXP(x)

e to power of x

SQRT (x)

Square root of x

**

Exponent

INT(x)

Truncated value of x

SQR (x)

x squared

ABS(x)

Absolute value of x

LOG(x), LN(x)

Natural Log of x

SINH (x)

Hyperbolic sine of x (radians)

ACOS(x)

Arccosine of x (in radians)

LOG10(x)

Log based 10 of x

TAN (x)

Tangent of x in radians

ASIN(x)

Arcsine of x (in radians)

MAX(x,y)

Maximum of x and y

TANH (x)

Hyperbolic tangent of x (radians)

Operator precedence

The order of operations when writing an equation are:

1.Exponent

2.Multiplication and division

3.Addition and subtraction

Note: Use of parentheses can change the order of precedence if needed.

Example Equations

Listed below are sample equations:

·GRN = GR - MEAN_GR + MEAN

·LOGNRM = LONORM + (LOG - PICKLO) * (HINORM - LONORM) / (PICKHI - PICKLO)

·LOGNRM = LOG + LOGPICK - GOODPICK

·SW = (RW / (RT * (PHI**M))) ** (1/N)

·R = ((A + B) * (C - 1.0)) / 100

·R = X*SIN(A) + Y*COS(B)

·R = LOG10(X)

·R = X*X or R = SQR(X)

·R = X**Y (x raised to the y power)

Options tab

The Options tab allows the user to set limits for depth or to a subset of wells in the project.

Restrict Depths

You can restrict the operation to be performed only on a certain depth range based on tops or on depths.

Null Results if Unable to Evaluate

This option will tell Petra to overwrite an existing log with null values if it is unable to evaluate the equation.

Apply Log Transform To

This simply chooses whether the log calculation will be performed for all selected wells in the main module, or only for the currently selected well in the main module.

Once the Equation and Options tabs are filled out, click the “Next” button at the bottom of the dialogue box.  This causes Petra to parse the equation, and bring up the Log Equation Variable Assignments tab.