<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article article-type="research-article" dtd-version="2.3" xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Artif. Intell.</journal-id>
<journal-title>Frontiers in Artificial Intelligence</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Artif. Intell.</abbrev-journal-title>
<issn pub-type="epub">2624-8212</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">670208</article-id>
<article-id pub-id-type="doi">10.3389/frai.2021.670208</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Artificial Intelligence</subject>
<subj-group>
<subject>Original Research</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>Application of Video-to-Video Translation Networks to Computational Fluid Dynamics</article-title>
<alt-title alt-title-type="left-running-head">Kigure</alt-title>
<alt-title alt-title-type="right-running-head">An Application of GANs to CFD</alt-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Kigure</surname>
<given-names>Hiromitsu</given-names>
</name>
<xref ref-type="corresp" rid="c001">&#x2a;</xref>
<uri xlink:href="https://loop.frontiersin.org/people/1234226/overview"/>
</contrib>
</contrib-group>
<aff>Independent Researcher, <addr-line>Kanagawa</addr-line>, <country>Japan</country>
</aff>
<author-notes>
<fn fn-type="edited-by">
<p>
<bold>Edited by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/73058/overview">Alex Hansen</ext-link>, Norwegian University of Science and Technology, Norway</p>
</fn>
<fn fn-type="edited-by">
<p>
<bold>Reviewed by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1057437/overview">Bernhard C. Geiger</ext-link>, Know Center, Austria</p>
<p>
<ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1032329/overview">Ajey Kumar</ext-link>, Symbiosis International (Deemed University), India</p>
</fn>
<corresp id="c001">&#x2a;Correspondence: Hiromitsu Kigure, <email>hiro.kig@gmail.com</email>
</corresp>
<fn fn-type="other">
<p>This article was submitted to Machine Learning and Artificial Intelligence, a section of the journal Frontiers in Artificial Intelligence</p>
</fn>
</author-notes>
<pub-date pub-type="epub">
<day>10</day>
<month>09</month>
<year>2021</year>
</pub-date>
<pub-date pub-type="collection">
<year>2021</year>
</pub-date>
<volume>4</volume>
<elocation-id>670208</elocation-id>
<history>
<date date-type="received">
<day>20</day>
<month>02</month>
<year>2021</year>
</date>
<date date-type="accepted">
<day>17</day>
<month>08</month>
<year>2021</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#xa9; 2021 Kigure.</copyright-statement>
<copyright-year>2021</copyright-year>
<copyright-holder>Kigure</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/">
<p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these&#x20;terms.</p>
</license>
</permissions>
<abstract>
<p>In recent years, the evolution of artificial intelligence, especially deep learning, has been remarkable, and its application to various fields has been growing rapidly. In this paper, I report the results of the application of generative adversarial networks (GANs), specifically video-to-video translation networks, to computational fluid dynamics (CFD) simulations. The purpose of this research is to reduce the computational cost of CFD simulations with GANs. The architecture of GANs in this research is a combination of the image-to-image translation networks (the so-called &#x201c;pix2pix&#x201d;) and Long Short-Term Memory (LSTM). It is shown that the results of high-cost and high-accuracy simulations (with high-resolution computational grids) can be estimated from those of low-cost and low-accuracy simulations (with low-resolution grids). In particular, the time evolution of density distributions in the cases of a high-resolution grid is reproduced from that in the cases of a low-resolution grid through GANs, and the density inhomogeneity estimated from the image generated by GANs recovers the ground truth with good accuracy. Qualitative and quantitative comparisons of the results of the proposed method with those of several super-resolution algorithms are also presented.</p>
</abstract>
<kwd-group>
<kwd>deep learning</kwd>
<kwd>generative adversarial networks (GANs)</kwd>
<kwd>image-to-image translation networks (pix2pix)</kwd>
<kwd>long short-term memory (LSTM)</kwd>
<kwd>computational fluid dynamics (CFD)</kwd>
</kwd-group>
</article-meta>
</front>
<body>
<sec id="s1">
<title>1 Introduction</title>
<p>Artificial intelligence is advancing rapidly and has come to be comparable to or outperform humans in several tasks. In generic object recognition, deep convolutional neural networks have surpassed human-level performance (e.g, <xref ref-type="bibr" rid="B6">He et&#x20;al., 2015</xref>; <xref ref-type="bibr" rid="B5">He et&#x20;al., 2016</xref>; <xref ref-type="bibr" rid="B8">Ioffe and Szegedy, 2015</xref>). The agent trained by reinforcement learning is capable of reaching a level comparable to professional human game testers (<xref ref-type="bibr" rid="B14">Mnih et&#x20;al., 2015</xref>). In the case of machine translation, Google&#x2019;s neural machine translation system, using Long Short-Term Memory (LSTM) recurrent neural networks [<xref ref-type="bibr" rid="B7">Hochreiter and Schmidhuber (1997)</xref>, <xref ref-type="bibr" rid="B2">Gers et&#x20;al. (2000)</xref>], is a typical and famous example and its translation quality is becoming comparable to that of humans (<xref ref-type="bibr" rid="B22">Wu et&#x20;al., 2016</xref>).</p>
<p>One of the hottest research topics in artificial intelligence is generative models and one approach to implementing a generative model is generative adversarial networks (GANs) proposed by <xref ref-type="bibr" rid="B3">Goodfellow et&#x20;al. (2014)</xref>. GANs consist of two models trained with conflicting objectives. <xref ref-type="bibr" rid="B16">Radford et&#x20;al. (2016)</xref> applied deep convolutional neural networks to those two models, whose architecture is called deep convolutional GANs (DCGAN). DCGAN can generate realistic synthesis images from vectors in the latent space. <xref ref-type="bibr" rid="B9">Isola et&#x20;al. (2017)</xref> proposed the network learning the mapping from an input image to an output image to enable the translation between two images. This network, the so-called pix2pix, can convert black-and-white images into color images, line drawings into photo-realistic images, and so&#x20;on.</p>
<p>The combination of deep learning and simulation has been recently researched. One of such applications is to use simulation results for improving the prediction performance of deep learning. Since deep learning requires a lot of data for training, numerical simulations that can generate various data by changing physical parameters could help compensate for the lack of training data. Another application is to speed up the solver of computational fluid dynamics (CFD). <xref ref-type="bibr" rid="B4">Guo et&#x20;al. (2016)</xref> used a convolutional neural network (CNN) to predict velocity fields approximately but fast from the geometric representation of the object. Another example is that velocity fields are predicted from parameters such as source position, inflow speed, and time by CNN (<xref ref-type="bibr" rid="B10">Kim et&#x20;al. (2019)</xref>). Their method is feasible to generate velocity fields up to 700&#x20;times faster than simulations. As a more general method, not limited to CFD problems, <xref ref-type="bibr" rid="B17">Raissi et&#x20;al. (2019)</xref> proposed the physics-informed neural network (PINN), which utilizes a relatively simple deep neural network to find solutions to various types of nonlinear partial differential equations.</p>
<p>GANs also have been combined with numerical simulations to enable a new type of solution method. <xref ref-type="bibr" rid="B1">Farimani et&#x20;al. (2017)</xref> used the conditional GAN (cGAN) to generate the solution of steady-state heat conduction and incompressible flow from boundary conditions and calculation domain shape/size. <xref ref-type="bibr" rid="B23">Xie et&#x20;al. (2018)</xref> proposed a method for super-resolution fluid flow by a temporally coherent generative model (tempoGAN). They showed that tempoGAN can infer high-resolution, temporal, and volumetric physical quantities from those of low-resolution&#x20;data.</p>
<p>The above-mentioned studies about the combination of GANs and simulations show that GANs can generate the three-dimensional data of the solution of physical equations. The main topic in this research is the translation of images (distributions of the physical quantity) by GANs. In the case that the accuracy of the simulation is particularly important, a large number of computational grids are needed. Additionally, the number of simulation cases for design optimization is typically numerous. It means that the computational cost (machine power and time) becomes large. In such a case, it is important to reduce the computational cost, and one way to do so is to make effective use of low-cost simulations. Based on such an idea, I investigated the feasibility of time-series image-to-image translation: translation from time-series distribution plots in the case of low-resolution computational grids to those in the case of high-resolution grids. A quantitative evaluation of the quality of generated images was also performed.</p>
<p>The method proposed in this paper is the video (sequential images)-to-video translation in which the difference of solutions between the high- and low-resolution grid simulations is learned. Meanwhile, the PINN constructs universal function approximators of physical laws by minimizing the loss function composed of a mismatch of state variables including the initial and boundary conditions and the residual for the partial differential equations (<xref ref-type="bibr" rid="B13">Meng et&#x20;al., 2020</xref>). In other words, the PINN is an alternative to CFD, while the proposed method is a complement to&#x20;CFD.</p>
<p>The paper is organized as follows. In <xref ref-type="sec" rid="s2">section 2</xref>, I describe the outline of the simulations whose results are input to GANs and the details of the network architecture. In <xref ref-type="sec" rid="s3">section 3</xref>, I give the results of time-series image-to-image translation (in other words, video-to-video translation) of physical quantity distribution and a discussion mainly about the quality of generated images. Conclusions are presented in <xref ref-type="sec" rid="s4">section&#x20;4</xref>.</p>
</sec>
<sec id="s2">
<title>2 Methods</title>
<sec id="s2-1">
<title>2.1 Numerical Simulations</title>
<p>I solved the following ideal magnetohydrodynamic (MHD) equations numerically in two dimensions to prepare input images to GANs:<disp-formula id="e1">
<mml:math id="m1">
<mml:mtable class="eqnarray">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:mfrac>
<mml:mrow>
<mml:mi>&#x2202;</mml:mi>
<mml:mi>&#x3c1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x2202;</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x2b;</mml:mo>
<mml:mo>&#x2207;</mml:mo>
<mml:mo>&#x22c5;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>&#x3c1;</mml:mi>
<mml:mi mathvariant="bold-italic">v</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mtd>
<mml:mtd columnalign="left"/>
<mml:mtd columnalign="left"/>
</mml:mtr>
</mml:mtable>
</mml:math>
<label>(1)</label>
</disp-formula>
<disp-formula id="e2">
<mml:math id="m2">
<mml:mtable class="eqnarray">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:mfrac>
<mml:mrow>
<mml:mi>&#x2202;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x2202;</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>&#x3c1;</mml:mi>
<mml:mi mathvariant="bold-italic">v</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:mo>&#x2207;</mml:mo>
<mml:mo>&#x22c5;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>&#x3c1;</mml:mi>
<mml:mi mathvariant="bold-italic">v</mml:mi>
<mml:mi mathvariant="bold-italic">v</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mi mathvariant="bold-italic">I</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi mathvariant="bold-italic">B</mml:mi>
<mml:mi mathvariant="bold-italic">B</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mtd>
<mml:mtd columnalign="left"/>
<mml:mtd columnalign="left"/>
</mml:mtr>
</mml:mtable>
</mml:math>
<label>(2)</label>
</disp-formula>
<disp-formula id="e3">
<mml:math id="m3">
<mml:mtable class="eqnarray">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:mfrac>
<mml:mrow>
<mml:mi>&#x2202;</mml:mi>
<mml:mi mathvariant="bold-italic">B</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x2202;</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x2b;</mml:mo>
<mml:mo>&#x2207;</mml:mo>
<mml:mo>&#x22c5;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi mathvariant="bold-italic">v</mml:mi>
<mml:mi mathvariant="bold-italic">B</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi mathvariant="bold-italic">B</mml:mi>
<mml:mi mathvariant="bold-italic">v</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mtd>
<mml:mtd columnalign="left"/>
<mml:mtd columnalign="left"/>
</mml:mtr>
</mml:mtable>
</mml:math>
<label>(3)</label>
</disp-formula>
<disp-formula id="e4">
<mml:math id="m4">
<mml:mtable class="eqnarray">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:mfrac>
<mml:mrow>
<mml:mi>&#x2202;</mml:mi>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x2202;</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x2b;</mml:mo>
<mml:mo>&#x2207;</mml:mo>
<mml:mo>&#x22c5;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>e</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mi mathvariant="bold-italic">v</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi mathvariant="bold-italic">B</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi mathvariant="bold-italic">v</mml:mi>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi mathvariant="bold-italic">B</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mtd>
<mml:mtd columnalign="left"/>
<mml:mtd columnalign="left"/>
</mml:mtr>
</mml:mtable>
</mml:math>
<label>(4)</label>
</disp-formula>
<disp-formula id="e5">
<mml:math id="m5">
<mml:mtable class="eqnarray">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:msub>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>p</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:mi mathvariant="bold-italic">B</mml:mi>
<mml:msup>
<mml:mrow>
<mml:mo stretchy="false">&#x7c;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:mfrac>
</mml:mtd>
<mml:mtd columnalign="left"/>
<mml:mtd columnalign="left"/>
</mml:mtr>
</mml:mtable>
</mml:math>
<label>(5)</label>
</disp-formula>
<disp-formula id="e6">
<mml:math id="m6">
<mml:mtable class="eqnarray">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:mi>e</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b3;</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x2b;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mi>&#x3c1;</mml:mi>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:mi mathvariant="bold-italic">v</mml:mi>
<mml:msup>
<mml:mrow>
<mml:mo stretchy="false">&#x7c;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x2b;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:mi mathvariant="bold-italic">B</mml:mi>
<mml:msup>
<mml:mrow>
<mml:mo stretchy="false">&#x7c;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:mfrac>
</mml:mtd>
<mml:mtd columnalign="left"/>
<mml:mtd columnalign="left"/>
</mml:mtr>
</mml:mtable>
</mml:math>
<label>(6)</label>
</disp-formula>where <italic>&#x3c1;</italic>, <italic>p</italic>, and <bold>
<italic>v</italic>
</bold> are the density, pressure, and velocity of the gas; <bold>
<italic>B</italic>
</bold> is the magnetic field; <italic>&#x3b3;</italic> represents the heat capacity ratio and is equal to 5/3 in this paper; <italic>p</italic>
<sub>
<italic>T</italic>
</sub> and <italic>e</italic> represent the total pressure and the internal energy density; <bold>
<italic>I</italic>
</bold> is the unit matrix.</p>
<p>One of typical test problems for MHD, the so-called Orszag-Tang vortex problem (<xref ref-type="bibr" rid="B15">Orszag and Tang, 1979</xref>), was solved by the Roe scheme (<xref ref-type="bibr" rid="B18">Roe 1981</xref>) with MUSCL [monotonic upstream-centered scheme for conservation laws; (<xref ref-type="bibr" rid="B20">van Leer 1979</xref>)]. The initial conditions are summarized in <xref ref-type="table" rid="T1">Table&#x20;1</xref>. <italic>B</italic>
<sub>0</sub> is a parameter for controlling the magnetic field strength. The compuational domain is 0 &#x2264; <italic>x</italic>&#x20;&#x2264; 1 and 0 &#x2264; <italic>y</italic>&#x20;&#x2264; 1. The periodic boundary condition is applied in both <italic>x</italic>- and <italic>y</italic>- directions. Simulations for each condition were performed twice on computational grids with different resolutions. The number of grid points is <inline-formula id="inf1">
<mml:math id="m7">
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#xd7;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>51</mml:mn>
<mml:mo>&#xd7;</mml:mo>
<mml:mn>51</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula> or <inline-formula id="inf2">
<mml:math id="m8">
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>251</mml:mn>
<mml:mo>&#xd7;</mml:mo>
<mml:mn>251</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula>. In the case of <inline-formula id="inf3">
<mml:math id="m9">
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#xd7;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>251</mml:mn>
<mml:mo>&#xd7;</mml:mo>
<mml:mn>251</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula>, the calculation time is more than 70&#x20;times longer than in the other case though the obtained solution is expected to be close to the true solution.</p>
<table-wrap id="T1" position="float">
<label>TABLE 1</label>
<caption>
<p>The initial conditions of simulations.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Physical quantity</th>
<th align="center">Description</th>
<th align="center">Value</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">
<italic>&#x3c1;</italic>
</td>
<td align="center">Density</td>
<td align="center">25<italic>&#x3c0;</italic>/36</td>
</tr>
<tr>
<td align="left">
<italic>v</italic>
<sub>
<italic>x</italic>
</sub>
</td>
<td align="center">x-component of velocity</td>
<td align="center">
<inline-formula id="inf4">
<mml:math id="m10">
<mml:mo>&#x2212;</mml:mo>
<mml:mi>sin</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:mi>&#x3c0;</mml:mi>
<mml:mi>y</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula>
</td>
</tr>
<tr>
<td align="left">
<italic>v</italic>
<sub>
<italic>y</italic>
</sub>
</td>
<td align="center">y-component of velocity</td>
<td align="center">
<inline-formula id="inf5">
<mml:math id="m11">
<mml:mi>sin</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:mi>&#x3c0;</mml:mi>
<mml:mi>x</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula>
</td>
</tr>
<tr>
<td align="left">
<italic>v</italic>
<sub>
<italic>z</italic>
</sub>
</td>
<td align="center">z-component of velocity</td>
<td align="center">0</td>
</tr>
<tr>
<td align="left">
<italic>B</italic>
<sub>
<italic>x</italic>
</sub>
</td>
<td align="center">x-component of magnetic field</td>
<td align="center">
<inline-formula id="inf6">
<mml:math id="m12">
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>B</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>sin</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:mi>&#x3c0;</mml:mi>
<mml:mi>y</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula>
</td>
</tr>
<tr>
<td align="left">
<italic>B</italic>
<sub>
<italic>y</italic>
</sub>
</td>
<td align="center">y-component of magnetic field</td>
<td align="center">
<inline-formula id="inf7">
<mml:math id="m13">
<mml:msub>
<mml:mrow>
<mml:mi>B</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>sin</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>4</mml:mn>
<mml:mi>&#x3c0;</mml:mi>
<mml:mi>x</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula>
</td>
</tr>
<tr>
<td align="left">
<italic>B</italic>
<sub>
<italic>z</italic>
</sub>
</td>
<td align="center">z-component of magnetic field</td>
<td align="center">0</td>
</tr>
<tr>
<td align="left">
<italic>p</italic>
</td>
<td align="center">Pressure</td>
<td align="center">5<italic>&#x3c0;</italic>/12</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s2-2">
<title>2.2 Generative Adversarial Network Architecture</title>
<p>After the original concept of GANs was proposed by <xref ref-type="bibr" rid="B3">Goodfellow et&#x20;al. (2014)</xref>, various GANs have been researched. Among such networks, I focused on pix2pix, which is a type of conditional GAN and a network for learning the relationship between the input and output images. The feasibility of translating from the results of low-resolution grid simulations to those of high-resolution grid simulations has been investigated in this research. Furthermore, in order to enable the translation across two time-series, the architecture combined pix2pix and LSTM has been constructed.</p>
<p>
<xref ref-type="fig" rid="F1">Figure&#x20;1</xref> shows the schematic picture of the architecture of the generator in this research. The role of the LSTM layer is to adjust the image translation dependent on the physical time of the simulation; for the initial state of the simulation <inline-formula id="inf8">
<mml:math id="m14">
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>T</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula>, no translation is needed at all, but as physical time passes, progressively larger translations are needed. Note that the weights of the encoder (decoder) before (after) the LSTM layer are the same in the time direction. Plots of the time evolution of the density in the low-resolution simulations are input to the generator (plots are read as single-channel images). The input images are converted to vectors by the first-half of a U-shaped network (U-Net). In <xref ref-type="fig" rid="F2">Figure&#x20;2</xref>, I denote the architecture of the first-half of U-Net in detail. It consists of eight convolutional blocks with a kernel size of <inline-formula id="inf9">
<mml:math id="m15">
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>4</mml:mn>
<mml:mo>&#xd7;</mml:mo>
<mml:mn>4</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula> or <inline-formula id="inf10">
<mml:math id="m16">
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:mo>&#xd7;</mml:mo>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula>. The instance normalization (<xref ref-type="bibr" rid="B19">Ulyanov et&#x20;al. (2017)</xref>) is applied except for the first and last blocks. The activation function is a leaky rectified linear unit [leaky ReLU; <xref ref-type="bibr" rid="B12">Maas et&#x20;al. (2013)</xref>] with a slope of 0.2 for all blocks. A 512-dimensional vector is generated at the end of this architecture.</p>
<fig id="F1" position="float">
<label>FIGURE 1</label>
<caption>
<p>Schematic picture of the architecture of the generator in this research. The generator in the original pix2pix network is a U-shaped network (U-Net). In this research, the LSTM layer is inserted into the middle of U-Net. The skip connections from the first-half of U-Net to the latter-half over the LSTM layer are implemented.</p>
</caption>
<graphic xlink:href="frai-04-670208-g001.tif"/>
</fig>
<fig id="F2" position="float">
<label>FIGURE 2</label>
<caption>
<p>The details of the first-half of U-Net. The expression &#x201c;conv4x4 64&#x201d; refers to a convolutional layer with a kernel size of <inline-formula id="inf11">
<mml:math id="m17">
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>4</mml:mn>
<mml:mo>&#xd7;</mml:mo>
<mml:mn>4</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula> and 64 channels. Each feature map is copied and is concatenated to the feature map of the corresponding block in the latter-half of U-Net denoted in <xref ref-type="fig" rid="F4">Figure&#x20;4</xref>.</p>
</caption>
<graphic xlink:href="frai-04-670208-g002.tif"/>
</fig>
<p>A series of 512-dimensional vectors converted from the time-series plots is input to the LSTM layer. An input vector <bold>
<italic>x</italic>
</bold>
<sub>
<italic>t</italic>
</sub> originated from the plot at time &#x3d; <italic>t</italic> is calculated with the hidden state <bold>
<italic>h</italic>
</bold>
<sub>
<italic>t</italic>&#x2212;1</sub> and memory cell <bold>
<italic>c</italic>
</bold>
<sub>
<italic>t</italic>&#x2212;1</sub>. A forget gate <inline-formula id="inf12">
<mml:math id="m18">
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi mathvariant="bold-italic">f</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula>, an input gate <inline-formula id="inf13">
<mml:math id="m19">
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula>, an output gate <inline-formula id="inf14">
<mml:math id="m20">
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi mathvariant="bold-italic">o</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula>, and part of the term to be added to the memory cell <inline-formula id="inf15">
<mml:math id="m21">
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi mathvariant="bold-italic">z</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula> in <xref ref-type="fig" rid="F3">Figure&#x20;3</xref> are calculated as follows:<disp-formula id="e7">
<mml:math id="m26">
<mml:mtable class="eqnarray">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:mi mathvariant="bold-italic">f</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>&#x3c3;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">h</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:math>
<label>(7)</label>
</disp-formula>
<disp-formula id="e8">
<mml:math id="m27">
<mml:mtable class="eqnarray">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:mi mathvariant="bold-italic">i</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>&#x3c3;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">h</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:math>
<label>(8)</label>
</disp-formula>
<disp-formula id="e9">
<mml:math id="m28">
<mml:mtable class="eqnarray">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:mi mathvariant="bold-italic">o</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>&#x3c3;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>o</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>o</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">h</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>o</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:math>
<label>(9)</label>
</disp-formula>
<disp-formula id="e10">
<mml:math id="m29">
<mml:mtable class="eqnarray">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:mi mathvariant="bold-italic">z</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>tanh</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>z</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>z</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">h</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>z</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:math>
<label>(10)</label>
</disp-formula>
</p>
<fig id="F3" position="float">
<label>FIGURE 3</label>
<caption>
<p>The architecture of LSTM. The input to LSTM <inline-formula id="inf16">
<mml:math id="m22">
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula> is the vector transformed from an image of density distribution, and the output is the reshaped hidden state vector <inline-formula id="inf17">
<mml:math id="m23">
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="bold-italic">h</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula> resulting from several operations. The vector <bold>
<italic>c</italic>
</bold> is the memory cell, and <bold>
<italic>f</italic>
</bold>, <bold>
<italic>i</italic>
</bold>, <bold>
<italic>o</italic>
</bold>, and <bold>
<italic>z</italic>
</bold> are a forget gate, an input gate, an output gate, and part of the term to be added to the memory cell (see equations <inline-formula id="inf18">
<mml:math id="m24">
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>7</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula> to <inline-formula id="inf19">
<mml:math id="m25">
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>10</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula> for details).</p>
</caption>
<graphic xlink:href="frai-04-670208-g003.tif"/>
</fig>
<p>where <italic>&#x3c3;</italic> is the sigmoid function and tanh is the hyperbolic tangent function; <bold>
<italic>W</italic>
</bold>
<sub>&#x22c5;</sub> and <bold>
<italic>R</italic>
</bold>
<sub>&#x22c5;</sub> are the input-to-hidden weight matrices and the recurrent weight matrices; <bold>
<italic>b</italic>
</bold>
<sub>&#x22c5;</sub> are bias vectors. The hidden state and memory cell are updated&#x20;by:<disp-formula id="e11">
<mml:math id="m30">
<mml:mtable class="eqnarray">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">c</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="bold-italic">f</mml:mi>
<mml:mo>&#x2609;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">c</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:mi mathvariant="bold-italic">i</mml:mi>
<mml:mo>&#x2609;</mml:mo>
<mml:mi mathvariant="bold-italic">z</mml:mi>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:math>
<label>(11)</label>
</disp-formula>
<disp-formula id="e12">
<mml:math id="m31">
<mml:mtable class="eqnarray">
<mml:mtr>
<mml:mtd columnalign="left">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">h</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="bold-italic">o</mml:mi>
<mml:mo>&#x2609;</mml:mo>
<mml:mi>tanh</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">c</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:math>
<label>(12)</label>
</disp-formula>The hidden state <bold>
<italic>h</italic>
</bold>
<sub>
<italic>t</italic>
</sub> is reshaped as <inline-formula id="inf20">
<mml:math id="m32">
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>1,1,512</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula>. The reshaped hidden state <bold>
<italic>h</italic>
</bold>
<sub>
<italic>t</italic>
</sub>&#x2019; is passed to the latter-half of U-Net and is decoded to the image data (<xref ref-type="fig" rid="F4">Figure&#x20;4</xref>). This part consists of eight deconvolutional blocks with an upsampling of the feature map, convolution with a kernel size of <inline-formula id="inf21">
<mml:math id="m33">
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:mo>&#xd7;</mml:mo>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula>or <inline-formula id="inf22">
<mml:math id="m34">
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>4</mml:mn>
<mml:mo>&#xd7;</mml:mo>
<mml:mn>4</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula> (the size of the feature map does not change because the stride of convolution is 1), the instance normalization and activation by ReLU function except the last block. As seen in <xref ref-type="fig" rid="F1">Figure&#x20;1</xref>, the generator outputs synthetic time-series plots of density distribution.</p>
<fig id="F4" position="float">
<label>FIGURE 4</label>
<caption>
<p>The details of the latter-half of U-Net. The expression &#x201c;Upsampling2x2&#x201d; refers to an upsampling layer that doubles the size of input by copying one value twice horizontally and vertically, respectively. From the first-half of U-Net displayed in <xref ref-type="fig" rid="F2">Figure&#x20;2</xref>, feature maps are passed to corresponding blocks and are concatenated to the feature maps output from the previous blocks.</p>
</caption>
<graphic xlink:href="frai-04-670208-g004.tif"/>
</fig>
<p>The authenticity of the images is judged by the discriminator. <xref ref-type="fig" rid="F5">Figure&#x20;5</xref> shows the details of the architecture of the discriminator in this research. A real image (plot of the density distribution in a high-resolution simulation) or a synthesis image is input to the discriminator. It consists of five convolutional blocks with a kernel size of <inline-formula id="inf23">
<mml:math id="m35">
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>4</mml:mn>
<mml:mo>&#xd7;</mml:mo>
<mml:mn>4</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula>. The instance normalization is applied except for the first and last blocks. Except for the last block, the leaky ReLU function with a slope of 0.2 is applied as the activation function. The 16 &#xd7; 16 patch is eventually output. The discriminator classifies each patch into real or synthetic. We call its architecture the patchGAN (<xref ref-type="bibr" rid="B9">Isola et&#x20;al., 2017</xref>).</p>
<fig id="F5" position="float">
<label>FIGURE 5</label>
<caption>
<p>The details of the architecture of the discriminator in this research.</p>
</caption>
<graphic xlink:href="frai-04-670208-g005.tif"/>
</fig>
<p>The objective of the network is the same as the regular pix2pix as follows:<disp-formula id="e13">
<mml:math id="m36">
<mml:mtable class="eqnarray">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:msup>
<mml:mrow>
<mml:mi>G</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x002A;</mml:mo>
</mml:mrow>
</mml:msup>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>arg</mml:mi>
<mml:mspace width="0.17em"/>
<mml:munder>
<mml:mrow>
<mml:mi>min</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>G</mml:mi>
</mml:mrow>
</mml:munder>
<mml:mspace width="0.17em"/>
<mml:munder>
<mml:mrow>
<mml:mi>max</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>D</mml:mi>
</mml:mrow>
</mml:munder>
<mml:mspace width="0.17em"/>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="script">L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mi>G</mml:mi>
<mml:mi>A</mml:mi>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>G</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>D</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>&#x3bb;</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="script">L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>G</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:math>
<label>(13)</label>
</disp-formula>
<disp-formula id="e14">
<mml:math id="m37">
<mml:mtable class="eqnarray">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="script">L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mi>G</mml:mi>
<mml:mi>A</mml:mi>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>G</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>D</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="double-struck">E</mml:mi>
<mml:mrow>
<mml:mfenced open="[" close="]">
<mml:mi>log</mml:mi>
<mml:mi>D</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mi>x</mml:mi>
<mml:mi>y</mml:mi>
</mml:mfenced>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:mi mathvariant="double-struck">E</mml:mi>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mi>log</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>D</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>x</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>G</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:math>
<label>(14)</label>
</disp-formula>
<disp-formula id="e15">
<mml:math id="m38">
<mml:mtable class="eqnarray">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="script">L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>G</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="double-struck">E</mml:mi>
<mml:mfenced open="[" close="(">
<mml:mrow>
<mml:mo stretchy="false">&#x2016;</mml:mo>
<mml:mi>y</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>G</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mi>x</mml:mi>
<mml:mfenced open=")" close="]">
<mml:mrow>
<mml:mo stretchy="false">&#x2016;</mml:mo>
</mml:mrow>
</mml:mfenced>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:math>
<label>(15)</label>
</disp-formula>where <italic>G</italic> and <italic>D</italic> denote the generator and discriminator, <italic>&#x3bb;</italic> is the weighted sum parameter and equal to 100 in this research, and <italic>x</italic> and <italic>y</italic> mean the source and target images. <inline-formula id="inf24">
<mml:math id="m39">
<mml:mi>G</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula> returns a synthesis image and <inline-formula id="inf25">
<mml:math id="m40">
<mml:mi>D</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>x</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>y</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula> or <inline-formula id="inf26">
<mml:math id="m41">
<mml:mi>D</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>x</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>G</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula> returns the probability that <italic>y</italic> or <inline-formula id="inf27">
<mml:math id="m42">
<mml:mi>G</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula> is a real target image. <inline-formula id="inf28">
<mml:math id="m43">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="script">L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>G</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula> is the mean absolute error (L1 loss) calculated from the pixel-wise comparison between the real image and the synthetic image. The optimizer is Adam with a learning rate of 0.0002.</p>
<p>The architecture is implemented using Keras 2.5.0 and TensorFlow as a backend. The model was trained on Google Colaboratory with Tesla P100-PCIe GPU. For applying the convolution and deconvolution to the sequential data, sets of operations as shown in <xref ref-type="fig" rid="F2">Figures 2</xref>,<xref ref-type="fig" rid="F4">4</xref>,<xref ref-type="fig" rid="F5">5</xref> are passed to the TimeDistributed layer. The skip connections are implemented by feeding the outputs of the previous upsampling block in the latter-half of U-Net and the same-level (it means that the size of the feature map is the same) convolutional block in the first-half of U-Net to the Concatenate layer. The &#x201c;return_sequences&#x201d; and &#x201c;stateful&#x201d; parameters in the LSTM layer are set to True and False, respectively.</p>
</sec>
</sec>
<sec sec-type="results|discussion" id="s3">
<title>3 Results and Discussion</title>
<p>In this chapter, I show the results of time-series image-to-image translation for the training datasets first and then explain the way to evaluate the quality of the synthesis images quantitatively. The evaluation result of the synthesis images for the training datasets is presented next. Then, I show the results for the testing datasets. Finally, the quality of the synthesis images is compared with those of images upsampled by conventional super-resolution algorithms. The conditions (the magnetic field strength) of the simulations are shown in <xref ref-type="table" rid="T2">Table&#x20;2</xref> that summarizes the details of the training and testing datasets. The sixteen cases were performed to prepare the training datasets, and the nineteen cases were performed to prepare the testing datasets. For each case, two simulations were run with the high-resolution and the low-resolution&#x20;grids.</p>
<table-wrap id="T2" position="float">
<label>TABLE 2</label>
<caption>
<p>The details of the training and testing datasets.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Training/Testing</th>
<th align="center">The number of cases</th>
<th align="center">The total number of images</th>
<th align="center">The pixel size of images</th>
<th align="center">The value of <italic>B</italic>
<sub>0</sub>
</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">Training</td>
<td align="center">16</td>
<td align="center">320</td>
<td align="char" char="&#xd7;">256 &#xd7; 256</td>
<td align="left">0.1&#x2013;1.5 with the interval of 0.1, and 2.0</td>
</tr>
<tr>
<td align="left">Testing</td>
<td align="center">19</td>
<td align="center">380</td>
<td align="char" char="&#xd7;">256 &#xd7; 256</td>
<td align="left">0.15&#x2013;1.55 and 1.6&#x2013;1.9 with the interval of 0.1</td>
</tr>
</tbody>
</table>
</table-wrap>
<sec id="s3-1">
<title>3.1 Results for the Training Datasets</title>
<p>
<xref ref-type="fig" rid="F6">Figure&#x20;6</xref> shows two examples of the time-evolution of density distribution for the training datasets. The top and bottom images of <xref ref-type="fig" rid="F6">Figures 6A,B</xref> show the simulation results, and the middle images are synthesis ones generated from the top ones (the results of low-resolution grid simulations) through the generator. Compared to the high-resolution grid cases, the density distributions in the low-resolution grid cases show less fine structure and become closer to the uniform. <xref ref-type="fig" rid="F7">Figure&#x20;7</xref> displays the comparison of the inhomogeneity of the density between the high-resolution grid cases and the low-resolution grid cases. The inhomogeneity is defined by <inline-formula id="inf29">
<mml:math id="m44">
<mml:mi>&#x3b1;</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c1;</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>/</mml:mo>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>&#x3c1;</mml:mi>
</mml:mrow>
<mml:mo>&#x304;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:math>
</inline-formula>, where <italic>&#x3c3;</italic>
<sub>
<italic>&#x3c1;</italic>
</sub> and <inline-formula id="inf30">
<mml:math id="m45">
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>&#x3c1;</mml:mi>
</mml:mrow>
<mml:mo>&#x304;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:math>
</inline-formula> are the standard deviation and the average of the density. In the low-resolution grid, the numerical diffusion is larger than in the high-resolution grid, and therefore the inhomogeneity of the density tends to be smaller especially from the middle stage of the vortex development and in the relatively strong magnetic field (<xref ref-type="fig" rid="F7">Figure 7B</xref>). The synthesis images reproduce the fine structures of the density distributions and appear to be well consistent with the high-resolution grid results.</p>
<fig id="F6" position="float">
<label>FIGURE 6</label>
<caption>
<p>Two examples of the time-evolution of density distribution for the training datasets.</p>
</caption>
<graphic xlink:href="frai-04-670208-g006.tif"/>
</fig>
<fig id="F7" position="float">
<label>FIGURE 7</label>
<caption>
<p>Comparison of the inhomogeneity of the density between the high-resolution grid cases and the low-resolution grid cases for the training datasets. <bold>(A)</bold> The inhomogeneities for all time-series and all magnetic field strength cases are plotted. <bold>(B)</bold> The inhomogeneities for <italic>T</italic>&#x20;&#x2265; 0.12 and <italic>B</italic>
<sub>0</sub> &#x2265; 0.6 are plotted.</p>
</caption>
<graphic xlink:href="frai-04-670208-g007.tif"/>
</fig>
<p>To quantitatively evaluate the quality of the synthesis images, I estimated the density inhomogeneity from the distribution map. When calculating the density inhomogeneity from the simulation result, we can use the value of the density on each grid; however, the density distribution maps (including synthesis images in this research) have only the information of the RGB values. Therefore, to estimate the density inhomogeneity from the distribution map, I trained a three-layer fully connected neural network with 196,608 (256pixel &#xd7; 256pixel &#xd7; 3) inputs, two hidden layers of 1,024 and 128 neurons and one output layer. <xref ref-type="fig" rid="F8">Figure&#x20;8</xref> shows the result of the inhomogeneity prediction from the density distribution maps. The horizontal axis is the inhomogeneity calculated from the density values on the grids, and the vertical axis is the inhomogeneity predicted from the distribution maps by the trained neural network. The coefficient of determination <inline-formula id="inf31">
<mml:math id="m46">
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula> is equal to 0.999. Thus we conclude that the trained neural network provides an accurate estimation of the density inhomogeneity from the distribution maps and the synthesis images.</p>
<fig id="F8" position="float">
<label>FIGURE 8</label>
<caption>
<p>Comparison of the inhomogeneity calculated from the density values on the grids and the inhomogeneity predicted from the distribution maps. The coefficient of determination <inline-formula id="inf32">
<mml:math id="m47">
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula> is equal to 0.999.</p>
</caption>
<graphic xlink:href="frai-04-670208-g008.tif"/>
</fig>
<p>We can quantitatively evaluate the quality of the synthesis images by inputting those into the neural network and comparing the outputted inhomogeneity with the inhomogeneity calculated from the high-resolution grid simulation results. <xref ref-type="fig" rid="F9">Figure&#x20;9</xref> shows that the inhomogeneity predicted from the synthesis images matches that calculated from the high-resolution grid simulation results with good accuracy; therefore the quality of the synthesis images is definitely good for the training datasets.</p>
<fig id="F9" position="float">
<label>FIGURE 9</label>
<caption>
<p>Comparison of the inhomogeneity of the high-resolution grid simulation results and the inhomogeneity predicted from the synthesis images for the training datasets.</p>
</caption>
<graphic xlink:href="frai-04-670208-g009.tif"/>
</fig>
</sec>
<sec id="s3-2">
<title>3.2 Results for the Testing Datasets</title>
<p>In the previous subsection, I have shown that the results for the training datasets are pretty good. However, the generalization ability needs to be investigated for practical use. The testing datasets (the magnetic field strength is different from the training datasets as shown in <xref ref-type="table" rid="T2">Table&#x20;2</xref>) that were not used for training are input to the trained model, and the synthesis images are output from the generator. <xref ref-type="fig" rid="F10">Figures 10A,B</xref> show the comparison of the simulation results and the synthesis images for two example cases. From the 19 cases in the testing datasets, the results for the cases with <italic>B</italic>
<sub>0</sub> &#x3d; 0.75 and 1.7 were selected for presentation. The <italic>B</italic>
<sub>0</sub> &#x3d; 1.7 case is especially suitable for verifying the generalization ability because there is no training data between <italic>B</italic>
<sub>0</sub> &#x3d; 1.5 and 2.0. The top images show the time evolution of the density distribution of low-resolution grid simulations, which are input for the generator; the bottom images show that of high-resolution grid simulations, which are compared with the synthesis images; the middle images are synthesis ones generated through the generator. As with the cases for the training datasets, the synthesis images qualitatively reproduce the density distributions of the high-resolution grid simulations. Even in the <italic>B</italic>
<sub>0</sub> &#x3d; 1.7 case, the synthesis images show the fine structure of the density distribution very similar to that in the ground truth images, as shown in the zoomed-in image in <xref ref-type="fig" rid="F10">Figure&#x20;10B</xref>.</p>
<fig id="F10" position="float">
<label>FIGURE 10</label>
<caption>
<p>Examples of the time-evolution of density distribution for the testing datasets.</p>
</caption>
<graphic xlink:href="frai-04-670208-g010.tif"/>
</fig>
<p>
<xref ref-type="fig" rid="F11">Figure&#x20;11</xref> is almost the same as <xref ref-type="fig" rid="F9">Figure&#x20;9</xref> but for the testing datasets. The density inhomogeneity predicted from the synthesis images through the fully connected neural network (explained in the previous subsection) is in good agreement with the inhomogeneity calculated from the results of high-resolution grid simulations. This result indicates that the method in this research is capable of obtaining high generalization ability.</p>
<fig id="F11" position="float">
<label>FIGURE 11</label>
<caption>
<p>Comparison of the inhomogeneity of the high-resolution grid simulation results and the inhomogeneity predicted from the synthesis images for the testing datasets.</p>
</caption>
<graphic xlink:href="frai-04-670208-g011.tif"/>
</fig>
</sec>
<sec id="s3-3">
<title>3.3 Comparison With Conventional Super-resolution Algorithms</title>
<p>To demonstrate the effectiveness of the proposed method and the quality of the generated images, I compare the results with those obtained by conventional super-resolution algorithms. The algorithms investigated here are a bicubic interpolation, a Lanczos interpolation, and Laplacian Pyramid Super-Resolution Network [LapSRN; <xref ref-type="bibr" rid="B11">Lai et&#x20;al. (2017)</xref>]. The pixel size of the image to be used as the basis of the super-resolution is 64 &#xd7; 64, and each algorithm quadruples the pixel size. These results were compared qualitatively and quantitatively with the result of high-resolution grid simulation and the image generated by the proposed method. Plots of the density distribution in high-resolution simulations in the training datasets were used to train LapSRN.</p>
<p>I performed the super-resolution algorithms to the testing datasets (380 images). As an example, the results for the <italic>B</italic>
<sub>0</sub> &#x3d; 1.7 and <italic>T</italic>&#x20;&#x3d; 0.38 case are compared in <xref ref-type="fig" rid="F12">Figure&#x20;12</xref>. In this case, none of the three conventional super-resolution algorithms can work with a quality comparable to the method proposed in this research. To compare the proposed method with the others quantitatively, the pixel-wise mean squared error (MSE) and the structural similarity index measure [SSIM; <xref ref-type="bibr" rid="B21">Wang et&#x20;al. (2004)</xref>] are calculated between the ground truth image and the synthesis image or the result of super-resolution. <xref ref-type="fig" rid="F13">Figure&#x20;13</xref> shows that the quality of the synthesis images by the proposed method is significantly high compared to that of the results by the conventional super-resolution algorithms.</p>
<fig id="F12" position="float">
<label>FIGURE 12</label>
<caption>
<p>Comparison of the results of the conventional super-resolution algorithms with that of the proposed method and ground&#x20;truth.</p>
</caption>
<graphic xlink:href="frai-04-670208-g012.tif"/>
</fig>
<fig id="F13" position="float">
<label>FIGURE 13</label>
<caption>
<p>Box plots of the pixel-wise mean squared error (MSE) and the structural similarity index measure (SSIM) calculated in the testing datasets (380 images).</p>
</caption>
<graphic xlink:href="frai-04-670208-g013.tif"/>
</fig>
</sec>
<sec id="s3-4">
<title>3.4 Application of This Research</title>
<p>In this subsection, I discuss an application of this research. As mentioned above, results of high computational cost simulations can be estimated from those of low-cost simulations by the method in this paper. However, it is important to note that simulation results of quite a few cases are needed to train the network<xref ref-type="fn" rid="fn1">
<sup>1</sup>
</xref>. Therefore, it is not beneficial for a small number of simulations. The more simulations are required, the greater the benefits arise. One such case is optimization based on CFD simulations. As the number of objective variables to be optimized increases, the number of calculations required to obtain the desired performance is expected to increase; in some cases, it takes several thousand cases to evaluate. In such multi-objective optimization simulations, for example, the first dozens to several hundred cases are simulated on both high- and low-resolution grids, and the results are used to train the GANs. After the GANs are trained, low-resolution grid simulations are run, the results are input to the GANs to reproduce the results of high-resolution grid simulations, and objective variables are estimated from synthesis images by, for example, a neural network.</p>
<p>I demonstrate the estimation of computational cost reduction. If the number of simulations required originally and that to train the GANs are <italic>N</italic> (several thousands in some cases) and <italic>N</italic>
<sub>
<italic>t</italic>
</sub> (<italic>N</italic>&#x20;&#x3e; <italic>N</italic>
<sub>
<italic>t</italic>
</sub>), the calculation times of the high- and low-resolution grid simulations are <italic>T</italic>
<sub>
<italic>h</italic>
</sub> and <italic>T</italic>
<sub>
<italic>l</italic>
</sub> (<italic>T</italic>
<sub>
<italic>h</italic>
</sub> &#x3e; <italic>T</italic>
<sub>
<italic>l</italic>
</sub>), and the computational cost to train the GANs is <italic>T</italic>
<sub>
<italic>t</italic>
</sub>, the computational cost reduction is roughly equal to<disp-formula id="e16">
<mml:math id="m48">
<mml:mi>N</mml:mi>
<mml:mo>&#xd7;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#xd7;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>N</mml:mi>
<mml:mo>&#xd7;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>l</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:math>
<label>(16)</label>
</disp-formula>where the first term corresponds to the computational cost in the case that all simulations are run on the high-resolution grid, and the second term corresponds to that in the case that the method in this research is applied (the cost to reproduce the results of high-resolution grid simulations by the GANs is negligible compare to performing the simulations). In this way, by substituting low-resolution grid simulations and the result conversion by the GANs for quite a part of high-resolution grid simulations, a great reduction of the computational cost should be achieved.</p>
</sec>
</sec>
<sec id="s4">
<title>4 Conclusion</title>
<p>In this paper, I validated an idea to use GANs for reducing the computational cost of CFD simulations. I studied the idea of reproducing the results of high-resolution grid simulations with a high computational cost from those of low-resolution grid simulations with a low computational cost. More specifically speaking, distribution maps of a physical quantity in time series were reproduced using pix2pix and LSTM. The quality of the reproduced synthesis images was good for both the training and&#x20;testing datasets. The conditions treated in this paper are simple; the computational region is a square with a constant grid interval, the boundary conditions are cyclic, and the governing equations are the ideal MHD equations. In the next step, I need to examine the idea in more realistic conditions.</p>
</sec>
</body>
<back>
<sec id="s5">
<title>Data Availability Statement</title>
<p>The raw data supporting the conclusion of this article will be made available by the authors, without undue reservation.</p>
</sec>
<sec id="s6">
<title>Author Contributions</title>
<p>HK: Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Software, Visualization, Writing.</p>
</sec>
<sec sec-type="COI-statement" id="s7">
<title>Conflict of Interest</title>
<p>The author declares that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
<sec id="s8" sec-type="disclaimer">
<title>Publisher&#x2019;s Note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p>
</sec>
<fn-group>
<fn id="fn1">
<label>1</label>
<p>In this research, simulation results of 16 cases were used as the training datasets; the training was successful with a relatively small number of data, probably due to the simple situation. If the target is a simulation of a realistic engineering situation, it is expected that much more data will be needed for the training.</p>
</fn>
</fn-group>
<ref-list>
<title>References</title>
<ref id="B1">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Farimani</surname>
<given-names>A. B.</given-names>
</name>
<name>
<surname>Gomes</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Pande</surname>
<given-names>V. S.</given-names>
</name>
</person-group> (<year>2017</year>). <source>Deep Learning the Physics of Transport Phenomena</source> <publisher-name>arXiv</publisher-name>.</citation>
</ref>
<ref id="B2">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Gers</surname>
<given-names>F. A.</given-names>
</name>
<name>
<surname>Schmidhuber</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Cummins</surname>
<given-names>F.</given-names>
</name>
</person-group> (<year>2000</year>). <article-title>Learning to Forget: Continual Prediction with Lstm</article-title>. <source>Neural Comput.</source> <volume>12</volume>, <fpage>2451</fpage>&#x2013;<lpage>2471</lpage>. <pub-id pub-id-type="doi">10.1162/089976600300015015</pub-id> </citation>
</ref>
<ref id="B3">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Goodfellow</surname>
<given-names>I.</given-names>
</name>
<name>
<surname>Pouget-Abadie</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Mirza</surname>
<given-names>M.</given-names>
</name>
</person-group>, (<year>2014</year>). &#x201c;<article-title>Generative Adversarial Nets</article-title>,&#x201d; in <source>Advances in Neural Information Processing Systems</source>, <volume>27</volume>, <fpage>2672</fpage>&#x2013;<lpage>2680</lpage>. </citation>
</ref>
<ref id="B4">
<citation citation-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Guo</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Li</surname>
<given-names>W.</given-names>
</name>
<name>
<surname>Iorio</surname>
<given-names>F.</given-names>
</name>
</person-group> (<year>2016</year>). &#x201c;<article-title>Convolutional Neural Networks for Steady Flow Approximation</article-title>,&#x201d; in <conf-name>KDD &#x2019;16: The 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining</conf-name>, <conf-loc>San Francisco, California</conf-loc> (<publisher-loc>New York</publisher-loc>: <publisher-name>Association for Computing Machinery)</publisher-name>, <fpage>481</fpage>&#x2013;<lpage>490</lpage>. <pub-id pub-id-type="doi">10.1145/2939672.2939738</pub-id> </citation>
</ref>
<ref id="B5">
<citation citation-type="confproc">
<person-group person-group-type="author">
<name>
<surname>He</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Ren</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Sun</surname>
<given-names>J.</given-names>
</name>
</person-group> (<year>2016</year>). &#x201c;<article-title>Deep Residual Learning for Image Recognition</article-title>,&#x201d; in <conf-name>Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR)</conf-name>, <conf-loc>Las Vegas, Nevada</conf-loc> (<publisher-loc>Manhattan, New York</publisher-loc>: <publisher-name>IEEE)</publisher-name>. <pub-id pub-id-type="doi">10.1109/cvpr.2016.90</pub-id> </citation>
</ref>
<ref id="B6">
<citation citation-type="confproc">
<person-group person-group-type="author">
<name>
<surname>He</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Ren</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Sun</surname>
<given-names>J.</given-names>
</name>
</person-group> (<year>2015</year>). &#x201c;<article-title>Delving Deep into Rectifiers: Surpassing Human-Level Performance on Imagenet Classification</article-title>,&#x201d; in <conf-name>Proceedings of the IEEE International Conference on Computer Vision (ICCV)</conf-name>. <pub-id pub-id-type="doi">10.1109/iccv.2015.123</pub-id> </citation>
</ref>
<ref id="B7">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Hochreiter</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Schmidhuber</surname>
<given-names>J.</given-names>
</name>
</person-group> (<year>1997</year>). <article-title>Long Short-Term Memory</article-title>. <source>Neural Comput.</source> <volume>9</volume>, <fpage>1735</fpage>&#x2013;<lpage>1780</lpage>. <pub-id pub-id-type="doi">10.1162/neco.1997.9.8.1735</pub-id> </citation>
</ref>
<ref id="B8">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Ioffe</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Szegedy</surname>
<given-names>C.</given-names>
</name>
</person-group> (<year>2015</year>). &#x201c;<article-title>Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift</article-title>,&#x201d; in <source>Proceedings of Machine Learning Research</source> <publisher-name>PMLR (Proceedings of Machine Learning Research)</publisher-name>. </citation>
</ref>
<ref id="B9">
<citation citation-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Isola</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Zhu</surname>
<given-names>J.-Y.</given-names>
</name>
<name>
<surname>Zhou</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Efros</surname>
<given-names>A. A.</given-names>
</name>
</person-group> (<year>2017</year>). &#x201c;<article-title>Image-to-image Translation with Conditional Adversarial Networks</article-title>,&#x201d; in <conf-name>Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR)</conf-name>, <conf-loc>Honolulu, Hawaii</conf-loc> (<publisher-loc>Manhattan, New York</publisher-loc>: <publisher-name>IEEE)</publisher-name>. <pub-id pub-id-type="doi">10.1109/cvpr.2017.632</pub-id> </citation>
</ref>
<ref id="B10">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Kim</surname>
<given-names>B.</given-names>
</name>
<name>
<surname>Azevedo</surname>
<given-names>V. C.</given-names>
</name>
<name>
<surname>Thuerey</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Kim</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Gross</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Solenthaler</surname>
<given-names>B.</given-names>
</name>
</person-group> (<year>2019</year>). <article-title>Deep Fluids: A Generative Network for Parameterized Fluid Simulations</article-title>. <source>Comp. Graphics Forum</source> <volume>38</volume>, <fpage>59</fpage>&#x2013;<lpage>70</lpage>. <pub-id pub-id-type="doi">10.1111/cgf.13619</pub-id> </citation>
</ref>
<ref id="B11">
<citation citation-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Lai</surname>
<given-names>W.-S.</given-names>
</name>
<name>
<surname>Huang</surname>
<given-names>J.-B.</given-names>
</name>
<name>
<surname>Ahuja</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Yang</surname>
<given-names>M.-H.</given-names>
</name>
</person-group> (<year>2017</year>). &#x201c;<article-title>Deep Laplacian Pyramid Networks for Fast and Accurate Super-resolution</article-title>,&#x201d; in <conf-name>Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR)</conf-name>, <conf-loc>Honolulu, Hawaii</conf-loc> (<publisher-loc>Manhattan, New York</publisher-loc>: <publisher-name>IEEE)</publisher-name>. <pub-id pub-id-type="doi">10.1109/cvpr.2017.618</pub-id> </citation>
</ref>
<ref id="B12">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Maas</surname>
<given-names>A. L.</given-names>
</name>
<name>
<surname>Hannun</surname>
<given-names>A. Y.</given-names>
</name>
<name>
<surname>Ng</surname>
<given-names>A. Y.</given-names>
</name>
</person-group> (<year>2013</year>). &#x201c;<article-title>Rectifier Nonlinearities Improve Neural Network Acoustic Models</article-title>,&#x201d; in <source>ICML Workshop on Deep Learning for Audio, Speech and Language Processing</source>. Editors <person-group person-group-type="editor">
<name>
<surname>Dasgupta</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>McAllester</surname>
<given-names>D.</given-names>
</name>
</person-group> <publisher-loc>JMLR</publisher-loc>. </citation>
</ref>
<ref id="B13">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Meng</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Li</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>D.</given-names>
</name>
<name>
<surname>Karniadakis</surname>
<given-names>G. E.</given-names>
</name>
</person-group> (<year>2020</year>). <article-title>Ppinn: Parareal Physics-Informed Neural Network for Time-dependent Pdes</article-title>. <source>Comp. Methods Appl. Mech. Eng.</source> <volume>370</volume>, <fpage>113250</fpage>. <pub-id pub-id-type="doi">10.1016/j.cma.2020.113250</pub-id> </citation>
</ref>
<ref id="B14">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Mnih</surname>
<given-names>V.</given-names>
</name>
<name>
<surname>Kavukcuoglu</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Silver</surname>
<given-names>D.</given-names>
</name>
<name>
<surname>Rusu</surname>
<given-names>A. A.</given-names>
</name>
<name>
<surname>Veness</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Bellemare</surname>
<given-names>M. G.</given-names>
</name>
<etal/>
</person-group> (<year>2015</year>). <article-title>Human-level Control through Deep Reinforcement Learning</article-title>. <source>Nature</source> <volume>518</volume>, <fpage>529</fpage>&#x2013;<lpage>533</lpage>. <pub-id pub-id-type="doi">10.1038/nature14236</pub-id> </citation>
</ref>
<ref id="B15">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Orszag</surname>
<given-names>S. A.</given-names>
</name>
<name>
<surname>Tang</surname>
<given-names>C.-M.</given-names>
</name>
</person-group> (<year>1979</year>). <article-title>Small-scale Structure of Two-Dimensional Magnetohydrodynamic Turbulence</article-title>. <source>J.&#x20;Fluid Mech.</source> <volume>90</volume>, <fpage>129</fpage>&#x2013;<lpage>143</lpage>. <pub-id pub-id-type="doi">10.1017/s002211207900210x</pub-id> </citation>
</ref>
<ref id="B16">
<citation citation-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Radford</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Metz</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Chintala</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2016</year>). &#x201c;<article-title>Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks</article-title>,&#x201d; in <conf-name>4th International Conference on Learning Representations</conf-name>, <conf-loc>San Juan, Puerto Rico</conf-loc> (<publisher-name>arXiv</publisher-name>). </citation>
</ref>
<ref id="B17">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Raissi</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Perdikaris</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Karniadakis</surname>
<given-names>G. E.</given-names>
</name>
</person-group> (<year>2019</year>). <article-title>Physics-informed Neural Networks: A Deep Learning Framework for Solving Forward and Inverse Problems Involving Nonlinear Partial Differential Equations</article-title>. <source>J.&#x20;Comput. Phys.</source> <volume>378</volume>, <fpage>686</fpage>&#x2013;<lpage>707</lpage>. <pub-id pub-id-type="doi">10.1016/j.jcp.2018.10.045</pub-id> </citation>
</ref>
<ref id="B18">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Roe</surname>
<given-names>P. L.</given-names>
</name>
</person-group> (<year>1981</year>). <article-title>Approximate Riemann Solvers, Parameter Vectors, and Difference Schemes</article-title>. <source>J.&#x20;Comput. Phys.</source> <volume>43</volume>, <fpage>357</fpage>&#x2013;<lpage>372</lpage>. <pub-id pub-id-type="doi">10.1016/0021-9991(81)90128-5</pub-id> </citation>
</ref>
<ref id="B19">
<citation citation-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Ulyanov</surname>
<given-names>D.</given-names>
</name>
<name>
<surname>Vedaldi</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Lempitsky</surname>
<given-names>V.</given-names>
</name>
</person-group> (<year>2017</year>). &#x201c;<article-title>Improved Texture Networks: Maximizing Quality and Diversity in Feed-Forward Stylization and Texture Synthesis</article-title>,&#x201d; in <conf-name>Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR)</conf-name>, <conf-loc>Honolulu, Hawaii</conf-loc> (<publisher-loc>Manhattan, New York</publisher-loc>: <publisher-name>IEEE</publisher-name>). <pub-id pub-id-type="doi">10.1109/cvpr.2017.437</pub-id> </citation>
</ref>
<ref id="B20">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>van Leer</surname>
<given-names>B.</given-names>
</name>
</person-group> (<year>1979</year>). <article-title>Towards the Ultimate Conservative Difference Scheme. V. A Second-Order Sequel to Godunov&#x27;s Method</article-title>. <source>J.&#x20;Comput. Phys.</source> <volume>32</volume>, <fpage>101</fpage>&#x2013;<lpage>136</lpage>. <pub-id pub-id-type="doi">10.1016/0021-9991(79)90145-1</pub-id> </citation>
</ref>
<ref id="B21">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Wang</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Bovik</surname>
<given-names>A. C.</given-names>
</name>
<name>
<surname>Sheikh</surname>
<given-names>H. R.</given-names>
</name>
<name>
<surname>Simoncelli</surname>
<given-names>E. P.</given-names>
</name>
</person-group> (<year>2004</year>). <article-title>Image Quality Assessment: from Error Visibility to Structural Similarity</article-title>. <source>IEEE Trans. Image Process.</source> <volume>13</volume>, <fpage>600</fpage>&#x2013;<lpage>612</lpage>. <pub-id pub-id-type="doi">10.1109/TIP.2003.819861</pub-id> </citation>
</ref>
<ref id="B22">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Wu</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Schuster</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Chen</surname>
<given-names>Z.</given-names>
</name>
</person-group>, (<year>2016</year>). <source>Google&#x2019;s Neural Machine Translation System: Bridging the Gap between Human and Machine Translation</source> <publisher-name>arXiv</publisher-name>. <comment>e-prints , arXiv:1609.08144</comment>.</citation>
</ref>
<ref id="B23">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Xie</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Franz</surname>
<given-names>E.</given-names>
</name>
<name>
<surname>Chu</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Thuerey</surname>
<given-names>N.</given-names>
</name>
</person-group> (<year>2018</year>). <article-title>Tempogan: A Temporally Coherent, Volumetric gan for Super-resolution Fluid Flow</article-title>. <source>ACM Trans. Graph.</source> <volume>37</volume>, <fpage>1</fpage>&#x2013;<lpage>15</lpage>. <pub-id pub-id-type="doi">10.1145/3197517.3201304</pub-id> </citation>
</ref>
</ref-list>
</back>
</article>