<?xml version="1.0" encoding="ISO-8859-1"?><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<front>
<journal-meta>
<journal-id>0035-001X</journal-id>
<journal-title><![CDATA[Revista mexicana de física]]></journal-title>
<abbrev-journal-title><![CDATA[Rev. mex. fis.]]></abbrev-journal-title>
<issn>0035-001X</issn>
<publisher>
<publisher-name><![CDATA[Sociedad Mexicana de Física]]></publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id>S0035-001X2024000600011</article-id>
<article-id pub-id-type="doi">10.31349/revmexfis.70.061003</article-id>
<title-group>
<article-title xml:lang="en"><![CDATA[Comparative analysis of performance, efficiency, and resource usage between COMSOL Multiphysics and the MPh library of Python in the simulation of physical phenomena]]></article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<name>
<surname><![CDATA[Ortiz Villicaña]]></surname>
<given-names><![CDATA[M. A.]]></given-names>
</name>
<xref ref-type="aff" rid="Aff"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname><![CDATA[Huamani Tapia]]></surname>
<given-names><![CDATA[Y. Y.]]></given-names>
</name>
<xref ref-type="aff" rid="Aff"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname><![CDATA[Guerrero-Mendez]]></surname>
<given-names><![CDATA[C.]]></given-names>
</name>
<xref ref-type="aff" rid="Aff"/>
</contrib>
</contrib-group>
<aff id="Af1">
<institution><![CDATA[,Universidad Autónoma de Zacatecas Unidad Académica de Ciencia y Tecnología de la Luz y la Materia ]]></institution>
<addr-line><![CDATA[Zacatecas Zac.]]></addr-line>
<country>Mexico</country>
</aff>
<pub-date pub-type="pub">
<day>00</day>
<month>12</month>
<year>2024</year>
</pub-date>
<pub-date pub-type="epub">
<day>00</day>
<month>12</month>
<year>2024</year>
</pub-date>
<volume>70</volume>
<numero>6</numero>
<fpage>0</fpage>
<lpage>0</lpage>
<copyright-statement/>
<copyright-year/>
<self-uri xlink:href="http://www.scielo.org.mx/scielo.php?script=sci_arttext&amp;pid=S0035-001X2024000600011&amp;lng=en&amp;nrm=iso"></self-uri><self-uri xlink:href="http://www.scielo.org.mx/scielo.php?script=sci_abstract&amp;pid=S0035-001X2024000600011&amp;lng=en&amp;nrm=iso"></self-uri><self-uri xlink:href="http://www.scielo.org.mx/scielo.php?script=sci_pdf&amp;pid=S0035-001X2024000600011&amp;lng=en&amp;nrm=iso"></self-uri><abstract abstract-type="short" xml:lang="en"><p><![CDATA[Abstract MPh is a library of Python that makes possible to link the Python computer language with COMSOL Multiphysics. The use of the MPh library opens the possibility to save the computer resources employed when simulating physical phenomena and solving mathematical models and equations. In the Python command interpreter is possible to change or adjust some settings and parameters from the models created in COMSOL, and to execute the COMSOL kernel to solve those models. In this study, we compare the performance of COMSOL Multiphysics and the MPh library of Python when computing the magnetic field generated by a distribution of currents and ferromagnetic material. The metrics employed to do the comparison and the methodology to measure them are described, as well as the computer equipment where the programs ran. The results show that the execution time of the computations are similar in both software, but in the rest of the metrics, the execution in Python surpassed the execution in COMSOL. We showed that the MPh library of Python demands less CPU and RAM usage when solving the mathematical models and the files containing the solutions use less storage memory. As a conclusion, we propose the use of the MPh library of Python to improve the performance of the computer in charge of carrying out the calculations.]]></p></abstract>
<kwd-group>
<kwd lng="en"><![CDATA[Computer resources usage]]></kwd>
<kwd lng="en"><![CDATA[COMSOL Multiphysics]]></kwd>
<kwd lng="en"><![CDATA[MPh Phython]]></kwd>
<kwd lng="en"><![CDATA[performance comparison]]></kwd>
</kwd-group>
</article-meta>
</front><back>
<ref-list>
<ref id="B1">
<label>1</label><nlm-citation citation-type="">
<source><![CDATA[COMSOL Multiphysics website]]></source>
<year></year>
</nlm-citation>
</ref>
<ref id="B2">
<label>2</label><nlm-citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname><![CDATA[Pryor]]></surname>
<given-names><![CDATA[R.W.]]></given-names>
</name>
</person-group>
<article-title xml:lang=""><![CDATA[Multiphysics Modeling Using COMSOL: A First Principles Approach. Engineering Pro collection]]></article-title>
<source><![CDATA[Jones &amp; Bartlett Learning]]></source>
<year>2009</year>
</nlm-citation>
</ref>
<ref id="B3">
<label>3</label><nlm-citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname><![CDATA[Ciaburro]]></surname>
<given-names><![CDATA[G.]]></given-names>
</name>
</person-group>
<source><![CDATA[Hands-On Simulation Modeling with Python: Develop simulation models to get accurate results and enhance decision-making processes]]></source>
<year>2020</year>
<publisher-name><![CDATA[Packt Publishing]]></publisher-name>
</nlm-citation>
</ref>
<ref id="B4">
<label>4</label><nlm-citation citation-type="">
<source><![CDATA[Python website]]></source>
<year></year>
</nlm-citation>
</ref>
<ref id="B5">
<label>5</label><nlm-citation citation-type="">
<source><![CDATA[Website with the information about the MPh library of Python]]></source>
<year></year>
</nlm-citation>
</ref>
<ref id="B6">
<label>6</label><nlm-citation citation-type="">
<source><![CDATA[Website with the information about the MPh library of Python]]></source>
<year></year>
</nlm-citation>
</ref>
<ref id="B7">
<label>7</label><nlm-citation citation-type="">
<source><![CDATA[What is a GPU?]]></source>
<year></year>
</nlm-citation>
</ref>
<ref id="B8">
<label>8</label><nlm-citation citation-type="">
<source><![CDATA[What hardware do you recommend for COMSOL Multiphysics?]]></source>
<year></year>
</nlm-citation>
</ref>
<ref id="B9">
<label>9</label><nlm-citation citation-type="">
<source><![CDATA[Website with the information about the NumPy library of Python]]></source>
<year></year>
</nlm-citation>
</ref>
<ref id="B10">
<label>10</label><nlm-citation citation-type="">
<source><![CDATA[Specifications of Intel Core i5 1135G7 Processor]]></source>
<year></year>
</nlm-citation>
</ref>
<ref id="B11">
<label>11</label><nlm-citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname><![CDATA[Griffiths]]></surname>
<given-names><![CDATA[David J.]]></given-names>
</name>
</person-group>
<source><![CDATA[Introduction to electrodynamics]]></source>
<year>2013</year>
<edition>4th</edition>
<publisher-name><![CDATA[Pearson]]></publisher-name>
</nlm-citation>
</ref>
<ref id="B12">
<label>12</label><nlm-citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname><![CDATA[Jackson]]></surname>
<given-names><![CDATA[John D.]]></given-names>
</name>
</person-group>
<source><![CDATA[Classical electrodynamics]]></source>
<year>1999</year>
<edition>3rd</edition>
<publisher-name><![CDATA[John Wiley &amp; sons, Inc.]]></publisher-name>
</nlm-citation>
</ref>
<ref id="B13">
<label>13</label><nlm-citation citation-type="">
<source><![CDATA[Understanding the fully coupled vs. segregated approach and direct vs. iterative linear solvers]]></source>
<year></year>
</nlm-citation>
</ref>
<ref id="B14">
<label>14</label><nlm-citation citation-type="">
<source><![CDATA[Solutions to linear systems of equations: Direct and iterative solvers]]></source>
<year></year>
</nlm-citation>
</ref>
<ref id="B15">
<label>15</label><nlm-citation citation-type="">
<source><![CDATA[The iterative solvers]]></source>
<year></year>
</nlm-citation>
</ref>
<ref id="B16">
<label>16</label><nlm-citation citation-type="">
<source><![CDATA[Direct (solvers)]]></source>
<year></year>
</nlm-citation>
</ref>
</ref-list>
</back>
</article>
