21.12.2012 Views

WellCAD Basics - Advanced Logic Technology

WellCAD Basics - Advanced Logic Technology

WellCAD Basics - Advanced Logic Technology

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

BOOK 1 - WELLCAD BASICS - 125<br />

Constants<br />

A constant is any fixed number, e.g. 1, 3.1415 or –18.5238.<br />

Operators<br />

Legal operators, in the order of precedence, are:<br />

^ exponent e.g. 2 ^ 3 = 8<br />

/ divide e.g. 2 / 3 = 0.666667<br />

* times e.g. 2 * 3 = 6<br />

- minus e.g. 2 – 3 = -1<br />

+ plus e.g. 2 + 3 = 5<br />

The operator precedence order may be modified using parenthesis.<br />

Logs<br />

Well Log or Formula Log data can be referred to into a formula by enclosing their<br />

log title exactly as it appears in the log handle in brackets. E.g. {GR} – {Grmin}<br />

subtracts data from the log Grmin from the log GR.<br />

The Formula Parser provides a special built-in data column referred to by<br />

{DEPTH}, which returns the current depth.<br />

When a formula is applied to a log the log’s depth sampling rate is used to retrieve<br />

the data values and output the result in a Formula Log. If more than one log with<br />

different sampling rates are involved, the minimum sample interval will be taken.<br />

Functions<br />

A list of all functions available is given in Appendix D.<br />

While composing a formula a short explanation about syntax and use of the formula<br />

is given in the Formula Parser dialog box.<br />

The use of the Formula Parser is best explained looking at the simplified example of<br />

computing the density-based porosity in a shaly limestone context given by<br />

�<br />

RHOB<br />

�<br />

�<br />

RHO<br />

�<br />

�<br />

� RHO<br />

ma<br />

ma<br />

� RHOB � �<br />

� � �V<br />

� RHO � �<br />

f � �<br />

sh<br />

�<br />

�<br />

RHO<br />

�<br />

�<br />

� RHO<br />

ma<br />

ma<br />

� RHO<br />

� RHO<br />

sh<br />

f<br />

��<br />

��<br />

��<br />

��

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!