GeoBalance: An Excel VBA program for mass balance calculation in geosciences

Research output: Contribution to journalArticleResearchpeer review

Authors

Research Organisations

External Research Organisations

  • Northwest University China
View graph of relations

Details

Original languageEnglish
Article number125629
JournalChemie der Erde
Volume80
Issue number2
Early online date1 May 2020
Publication statusPublished - May 2020

Abstract

Mass balance calculation is a fundamental approach in geosciences. In petrology and geochemistry, it is widely used for quantitative characterization of phase transition and mass transfer. In a routine petrological practice, this method is commonly used to calculate proportions of the minerals formed from initial or parental bulk composition, or to quantify the reaction coefficients for minerals involved in a chemical reaction that achieves equilibria. In this paper, we present a new mass balance calculation program, GeoBalance, which is written with Visual Basic for Applications (VBA) and built in a macro-enabled Excel™ worksheet. The working algorithm is based on solving the least square problem using pseudo-inverse of matrix and singular value decomposition (SVD) of matrix. Both unconstrained and constrained solution methods are implemented in the program and can be chosen by the user. In addition, input data (e.g. compositions of the minerals) can be different data types, such as cations, oxides, moles of oxides, or moles of mineral endmembers. As a result of calculation, phase proportions are presented as percentages on 100%-normalized basis with residuals (for each chemical component), and a sum of squared estimate of errors (SSE). Monte Carlo simulation of error propagation for evaluating calculation uncertainty is also implemented as an optional function. An additional advantage of our program is that it enables users to perform mass balance calculations for complicated systems with a flexible number of phases and/or chemical components.

Keywords

    Excel VBA program, GeoBalance, Mass balance, Monte Carlo simulation, Singular value decomposition

ASJC Scopus subject areas

Cite this

GeoBalance: An Excel VBA program for mass balance calculation in geosciences. / Li, Xiaoyan; Zhang, Chao; Almeev, Renat R. et al.
In: Chemie der Erde, Vol. 80, No. 2, 125629, 05.2020.

Research output: Contribution to journalArticleResearchpeer review

Li X, Zhang C, Almeev RR, Holtz F. GeoBalance: An Excel VBA program for mass balance calculation in geosciences. Chemie der Erde. 2020 May;80(2):125629. Epub 2020 May 1. doi: 10.1016/j.chemer.2020.125629
Download
@article{1a40f7f48015499d98c737bf116b470b,
title = "GeoBalance: An Excel VBA program for mass balance calculation in geosciences",
abstract = "Mass balance calculation is a fundamental approach in geosciences. In petrology and geochemistry, it is widely used for quantitative characterization of phase transition and mass transfer. In a routine petrological practice, this method is commonly used to calculate proportions of the minerals formed from initial or parental bulk composition, or to quantify the reaction coefficients for minerals involved in a chemical reaction that achieves equilibria. In this paper, we present a new mass balance calculation program, GeoBalance, which is written with Visual Basic for Applications (VBA) and built in a macro-enabled Excel{\texttrademark} worksheet. The working algorithm is based on solving the least square problem using pseudo-inverse of matrix and singular value decomposition (SVD) of matrix. Both unconstrained and constrained solution methods are implemented in the program and can be chosen by the user. In addition, input data (e.g. compositions of the minerals) can be different data types, such as cations, oxides, moles of oxides, or moles of mineral endmembers. As a result of calculation, phase proportions are presented as percentages on 100%-normalized basis with residuals (for each chemical component), and a sum of squared estimate of errors (SSE). Monte Carlo simulation of error propagation for evaluating calculation uncertainty is also implemented as an optional function. An additional advantage of our program is that it enables users to perform mass balance calculations for complicated systems with a flexible number of phases and/or chemical components.",
keywords = "Excel VBA program, GeoBalance, Mass balance, Monte Carlo simulation, Singular value decomposition",
author = "Xiaoyan Li and Chao Zhang and Almeev, {Renat R.} and Francois Holtz",
note = "Funding Information: This work was supported by the National Natural Science Foundation of China (NSFC) Projects ( 41902052 , 41972055 ) and German Research Foundation (DFG) Project AL 1189/8-1 . We thank the comments of Ralf Milke and an anonymous reviewer that have helped to improve this paper. The macro-enabled Excel worksheet of GeoBalance program is provided as a supplementary file online. ",
year = "2020",
month = may,
doi = "10.1016/j.chemer.2020.125629",
language = "English",
volume = "80",
journal = "Chemie der Erde",
issn = "0009-2819",
publisher = "Elsevier GmbH",
number = "2",

}

Download

TY - JOUR

T1 - GeoBalance

T2 - An Excel VBA program for mass balance calculation in geosciences

AU - Li, Xiaoyan

AU - Zhang, Chao

AU - Almeev, Renat R.

AU - Holtz, Francois

N1 - Funding Information: This work was supported by the National Natural Science Foundation of China (NSFC) Projects ( 41902052 , 41972055 ) and German Research Foundation (DFG) Project AL 1189/8-1 . We thank the comments of Ralf Milke and an anonymous reviewer that have helped to improve this paper. The macro-enabled Excel worksheet of GeoBalance program is provided as a supplementary file online.

PY - 2020/5

Y1 - 2020/5

N2 - Mass balance calculation is a fundamental approach in geosciences. In petrology and geochemistry, it is widely used for quantitative characterization of phase transition and mass transfer. In a routine petrological practice, this method is commonly used to calculate proportions of the minerals formed from initial or parental bulk composition, or to quantify the reaction coefficients for minerals involved in a chemical reaction that achieves equilibria. In this paper, we present a new mass balance calculation program, GeoBalance, which is written with Visual Basic for Applications (VBA) and built in a macro-enabled Excel™ worksheet. The working algorithm is based on solving the least square problem using pseudo-inverse of matrix and singular value decomposition (SVD) of matrix. Both unconstrained and constrained solution methods are implemented in the program and can be chosen by the user. In addition, input data (e.g. compositions of the minerals) can be different data types, such as cations, oxides, moles of oxides, or moles of mineral endmembers. As a result of calculation, phase proportions are presented as percentages on 100%-normalized basis with residuals (for each chemical component), and a sum of squared estimate of errors (SSE). Monte Carlo simulation of error propagation for evaluating calculation uncertainty is also implemented as an optional function. An additional advantage of our program is that it enables users to perform mass balance calculations for complicated systems with a flexible number of phases and/or chemical components.

AB - Mass balance calculation is a fundamental approach in geosciences. In petrology and geochemistry, it is widely used for quantitative characterization of phase transition and mass transfer. In a routine petrological practice, this method is commonly used to calculate proportions of the minerals formed from initial or parental bulk composition, or to quantify the reaction coefficients for minerals involved in a chemical reaction that achieves equilibria. In this paper, we present a new mass balance calculation program, GeoBalance, which is written with Visual Basic for Applications (VBA) and built in a macro-enabled Excel™ worksheet. The working algorithm is based on solving the least square problem using pseudo-inverse of matrix and singular value decomposition (SVD) of matrix. Both unconstrained and constrained solution methods are implemented in the program and can be chosen by the user. In addition, input data (e.g. compositions of the minerals) can be different data types, such as cations, oxides, moles of oxides, or moles of mineral endmembers. As a result of calculation, phase proportions are presented as percentages on 100%-normalized basis with residuals (for each chemical component), and a sum of squared estimate of errors (SSE). Monte Carlo simulation of error propagation for evaluating calculation uncertainty is also implemented as an optional function. An additional advantage of our program is that it enables users to perform mass balance calculations for complicated systems with a flexible number of phases and/or chemical components.

KW - Excel VBA program

KW - GeoBalance

KW - Mass balance

KW - Monte Carlo simulation

KW - Singular value decomposition

UR - http://www.scopus.com/inward/record.url?scp=85085768575&partnerID=8YFLogxK

U2 - 10.1016/j.chemer.2020.125629

DO - 10.1016/j.chemer.2020.125629

M3 - Article

AN - SCOPUS:85085768575

VL - 80

JO - Chemie der Erde

JF - Chemie der Erde

SN - 0009-2819

IS - 2

M1 - 125629

ER -

By the same author(s)