m (Ovidi moved page Draft Casals 106883369 to Casals 2018d)
 
(5 intermediate revisions by the same user not shown)
Line 75: Line 75:
 
<br/>
 
<br/>
  
<span id='_Toc447186211'></span><span id='_Toc447186403'></span><span id='_Toc447187119'></span><div id="_Toc519760585" class="center" style="width: auto; margin-left: auto; margin-right: auto;">
+
<span id='_Toc447186211'></span><span id='_Toc447186403'></span><span id='_Toc447187119'></span><span id='_Toc519760585'></span>
<big>Introduction</big></div>
+
 
 +
==1. Introduction==
  
 
<span id='_Toc338682656'></span><span id='_Toc338682756'></span>
 
<span id='_Toc338682656'></span><span id='_Toc338682756'></span>
Line 84: Line 85:
 
<br/>
 
<br/>
  
<span id='_Toc447186212'></span><span id='_Toc447186404'></span><span id='_Toc447187120'></span><span id='_Toc387135588'></span><div id="_Toc519760586" class="center" style="width: auto; margin-left: auto; margin-right: auto;">
+
<span id='_Toc447186212'></span><span id='_Toc447186404'></span><span id='_Toc447187120'></span><span id='_Toc387135588'></span><span id='_Toc519760586'></span>
<big>Navier Stokes solver (ransol module)</big></div>
+
 
 +
==2. Navier Stokes solver (ransol module)==
  
 
<span id='_Toc438029886'></span><span id='_Toc447186213'></span><span id='_Toc447186405'></span><span id='_Toc447187121'></span><span id='_Toc519760587'></span>
 
<span id='_Toc438029886'></span><span id='_Toc447186213'></span><span id='_Toc447186405'></span><span id='_Toc447187121'></span><span id='_Toc519760587'></span>
Line 125: Line 127:
 
<span id='_Toc447186214'></span><span id='_Toc447186406'></span><span id='_Toc519760588'></span>
 
<span id='_Toc447186214'></span><span id='_Toc447186406'></span><span id='_Toc519760588'></span>
  
===1.2 CFD algorithms and stability===
+
===2.2 CFD algorithms and stability===
  
 
Using the standard Galerkin method to discretize the incompressible Navier-Stokes equations leads to numerical instabilities coming from two sources.  Firstly, owing to the advective-diffusive character of the governing equations, oscillations appear in the solution at high Reynolds numbers, when the convection terms become dominant.  Secondly, the mixed character of the equations limits the choice of velocity and pressure interpolations such that equal order interpolations cannot be used.
 
Using the standard Galerkin method to discretize the incompressible Navier-Stokes equations leads to numerical instabilities coming from two sources.  Firstly, owing to the advective-diffusive character of the governing equations, oscillations appear in the solution at high Reynolds numbers, when the convection terms become dominant.  Secondly, the mixed character of the equations limits the choice of velocity and pressure interpolations such that equal order interpolations cannot be used.
Line 135: Line 137:
 
<span id='_Toc447186215'></span><span id='_Toc447186407'></span><span id='_Toc447187122'></span><span id='_Toc519760589'></span>
 
<span id='_Toc447186215'></span><span id='_Toc447186407'></span><span id='_Toc447187122'></span><span id='_Toc519760589'></span>
  
====1.2.1 Finite calculus (FIC)formulation====
+
====2.2.1 Finite calculus (FIC)formulation====
  
 
To demonstrate this method, consider the flux problem associated with the incompressible conservation of mass in a 2D source less finite sized domain defined by four nodes, as shown in <span id='cite-_Ref387067654'></span>[[#_Ref387067654|Figure 1]].
 
To demonstrate this method, consider the flux problem associated with the incompressible conservation of mass in a 2D source less finite sized domain defined by four nodes, as shown in <span id='cite-_Ref387067654'></span>[[#_Ref387067654|Figure 1]].
Line 190: Line 192:
 
<span id='_Toc447186216'></span><span id='_Toc447186408'></span><span id='_Toc447187123'></span><span id='_Toc519760590'></span>
 
<span id='_Toc447186216'></span><span id='_Toc447186408'></span><span id='_Toc447187123'></span><span id='_Toc519760590'></span>
  
====1.2.2 Stabilized Navier-Stokes equations====
+
====2.2.2 Stabilized Navier-Stokes equations====
  
 
The Finite increment Calculus methodology presented above is used to formulate stabilized forms of the momentum balance and mass balance equations and the Neumann boundary conditions. The velocity and pressure fields of an incompressible fluid moving in a domain Ω  ''R<sup>d</sup>''(d=2,3) can be described by the incompressible Navier Stokes equations:
 
The Finite increment Calculus methodology presented above is used to formulate stabilized forms of the momentum balance and mass balance equations and the Neumann boundary conditions. The velocity and pressure fields of an incompressible fluid moving in a domain Ω  ''R<sup>d</sup>''(d=2,3) can be described by the incompressible Navier Stokes equations:
Line 242: Line 244:
  
  
Summation convention for repeated indices in products and derivatives is used unless otherwise specified. In above equations, terms  [[Image:Draft_Casals_106883369-image4.png|18px]] and  [[Image:Draft_Casals_106883369-image5.png|12px]] denote the residual of Eq. <span id='cite-_Ref447096029'></span>[[#_Ref447096029|('''2'''-'''6''')]] , and [[Image:Draft_Casals_106883369-image6.png|18px]] [[Image:Draft_Casals_106883369-image7.png|18px]] are the ''characteristic length ''distances, representing the dimensions of the finite domain where balance of mass and momentum is enforced. Details on obtaining the FIC stabilized equations and recommendation for the calculation of the stabilization terms can be found in Oñate 1998.
+
Summation convention for repeated indices in products and derivatives is used unless otherwise specified. In above equations, terms  <math>r_{m_i}</math> and  <math>r_d</math> denote the residual of Eq. <span id='cite-_Ref447096029'></span>[[#_Ref447096029|('''2'''-'''6''')]] , and <math>h_{ij}^m</math> <math>h_j^d</math> are the ''characteristic length ''distances, representing the dimensions of the finite domain where balance of mass and momentum is enforced. Details on obtaining the FIC stabilized equations and recommendation for the calculation of the stabilization terms can be found in Oñate 1998.
  
 
Let ''n'' be the unit outward normal to the boundary &#x2202;Ω, split into two sets of disjoint components Γ''<sub>t</sub>'', Γ''<sub>u</sub>'' where the Neumann and Dirichlet boundary conditions for the velocity are prescribed respectively. The boundary conditions for the stabilized problem to be considered are (Oñate 2004):
 
Let ''n'' be the unit outward normal to the boundary &#x2202;Ω, split into two sets of disjoint components Γ''<sub>t</sub>'', Γ''<sub>u</sub>'' where the Neumann and Dirichlet boundary conditions for the velocity are prescribed respectively. The boundary conditions for the stabilized problem to be considered are (Oñate 2004):
Line 257: Line 259:
  
  
Where  [[Image:Draft_Casals_106883369-image8.png|30px]] are the prescribed surface tractions and  [[Image:Draft_Casals_106883369-image9.png|18px]] is the total stress tensor, defined as
+
Where  <math>t_i,u_j^p</math> are the prescribed surface tractions and  <math>{\sigma }_{ij}</math> is the total stress tensor, defined as
  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
Line 274: Line 276:
 
<span id='_Toc447186217'></span><span id='_Toc447186409'></span><span id='_Toc447187124'></span><span id='_Toc519760591'></span>
 
<span id='_Toc447186217'></span><span id='_Toc447186409'></span><span id='_Toc447187124'></span><span id='_Toc519760591'></span>
  
====1.2.3 Stabilized integral forms====
+
====2.2.3 Stabilized integral forms====
  
 
From the momentum equations, the following relations can be obtained (Oñate 2004)
 
From the momentum equations, the following relations can be obtained (Oñate 2004)
Line 289: Line 291:
  
  
Substituting the equation above into Eq. <span id='cite-_Ref447096282'></span>[[#_Ref447096282|('''2'''-'''9''')]] and retaining only the terms involving the derivatives of  [[Image:Draft_Casals_106883369-image10.png|18px]] with respect to [[Image:Draft_Casals_106883369-image11.png|12px]] , leads to the following alternative expression for the stabilized mass balance equation
+
Substituting the equation above into Eq. <span id='cite-_Ref447096282'></span>[[#_Ref447096282|('''2'''-'''9''')]] and retaining only the terms involving the derivatives of  <math display="inline">r_{m_i}</math> with respect to <math display="inline">x_i</math> , leads to the following alternative expression for the stabilized mass balance equation
  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
Line 302: Line 304:
  
  
The [[Image:Draft_Casals_106883369-image12.png|12px]] ’s in Eq. <span id='cite-_Ref447096316'></span>[[#_Ref447096316|('''2'''-'''13''')]] when multiplied by the density are equivalent to the ''intrinsic time parameters'', seen extensively in the stabilization literature. The interest of Eq. <span id='cite-_Ref447096316'></span>[[#_Ref447096316|('''2'''-'''13''')]] is that it introduces the first space derivatives of the momentum equations into the mass balance equation. These terms have intrinsic good stability properties as explained next.
+
The <math>{\tau }_i</math> ’s in Eq. <span id='cite-_Ref447096316'></span>[[#_Ref447096316|('''2'''-'''13''')]] when multiplied by the density are equivalent to the ''intrinsic time parameters'', seen extensively in the stabilization literature. The interest of Eq. <span id='cite-_Ref447096316'></span>[[#_Ref447096316|('''2'''-'''13''')]] is that it introduces the first space derivatives of the momentum equations into the mass balance equation. These terms have intrinsic good stability properties as explained next.
  
 
The weighted residual form of the momentum and mass balance equations is written as
 
The weighted residual form of the momentum and mass balance equations is written as
Line 317: Line 319:
  
  
where  [[Image:Draft_Casals_106883369-image13.png|30px]] are generic weighting functions. Integrating by parts the residual terms in the above equations leads to the following weighted residual form of the momentum and mass balance equations:
+
where  <math display="inline">v_i,q</math> are generic weighting functions. Integrating by parts the residual terms in the above equations leads to the following weighted residual form of the momentum and mass balance equations:
  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
Line 330: Line 332:
  
  
We will neglect here onwards the third integral in Eq. <span id='cite-_Ref447096395'></span>[[#_Ref447096395|('''2'''-'''15''')]] by assuming that  [[Image:Draft_Casals_106883369-image10.png|18px]] is negligible on the boundaries. The deviatoric stresses and the pressure terms in the second integral of Eq. <span id='cite-_Ref447096395'></span>[[#_Ref447096395|('''2'''-'''15''')]] are integrated by parts in the usual manner. The resulting momentum and mass balance equations are:
+
We will neglect here onwards the third integral in Eq. <span id='cite-_Ref447096395'></span>[[#_Ref447096395|('''2'''-'''15''')]] by assuming that  <math display="inline">r_{m_i}</math> is negligible on the boundaries. The deviatoric stresses and the pressure terms in the second integral of Eq. <span id='cite-_Ref447096395'></span>[[#_Ref447096395|('''2'''-'''15''')]] are integrated by parts in the usual manner. The resulting momentum and mass balance equations are:
  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
Line 371: Line 373:
 
<span id='_Toc447186218'></span><span id='_Toc447186410'></span><span id='_Toc447187125'></span><span id='_Toc294716209'></span><span id='_Toc519760592'></span>
 
<span id='_Toc447186218'></span><span id='_Toc447186410'></span><span id='_Toc447187125'></span><span id='_Toc294716209'></span><span id='_Toc519760592'></span>
  
====1.2.4 Convective and pressure gradient projections====
+
====2.2.4 Convective and pressure gradient projections====
  
The computation of the residual terms are simplified if we introduce the convective and pressure gradient projections  [[Image:Draft_Casals_106883369-image14.png|12px]] and [[Image:Draft_Casals_106883369-image15.png|12px]] , respectively defined as
+
The computation of the residual terms are simplified if we introduce the convective and pressure gradient projections  <math display="inline">c_i</math> and <math display="inline">{\pi }_i</math> , respectively defined as
  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
Line 386: Line 388:
  
  
We can express the residual terms in Eq. <span id='cite-_Ref447096438'></span>[[#_Ref447096438|('''2'''-'''16''')]] and Eq. <span id='cite-_Ref447096483'></span>[[#_Ref447096483|('''2'''-'''17''')]] in terms of  [[Image:Draft_Casals_106883369-image14.png|12px]] and [[Image:Draft_Casals_106883369-image15.png|12px]] , respectively which then become additional variables. The system of integral equations is now augmented in the necessary number by imposing that the residuals vanish (in average sense). This gives the final system of governing equations as:
+
We can express the residual terms in Eq. <span id='cite-_Ref447096438'></span>[[#_Ref447096438|('''2'''-'''16''')]] and Eq. <span id='cite-_Ref447096483'></span>[[#_Ref447096483|('''2'''-'''17''')]] in terms of  <math display="inline">c_i</math> and <math display="inline">{\pi }_i</math> , respectively which then become additional variables. The system of integral equations is now augmented in the necessary number by imposing that the residuals vanish (in average sense). This gives the final system of governing equations as:
  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
Line 432: Line 434:
 
<span id='_Toc447186219'></span><span id='_Toc447186411'></span><span id='_Toc447187126'></span><span id='_Toc519760593'></span>
 
<span id='_Toc447186219'></span><span id='_Toc447186411'></span><span id='_Toc447187126'></span><span id='_Toc519760593'></span>
  
====1.2.5 Monolithic time integration scheme====
+
====2.2.5 Monolithic time integration scheme====
  
 
In this section an implicit monolithic time integration scheme, based on a predictor corrector scheme for the integration of Eq. <span id='cite-_Ref447096533'></span>[[#_Ref447096533|('''2'''-'''20''')]] is presented.
 
In this section an implicit monolithic time integration scheme, based on a predictor corrector scheme for the integration of Eq. <span id='cite-_Ref447096533'></span>[[#_Ref447096533|('''2'''-'''20''')]] is presented.
Line 622: Line 624:
 
<span id='_Toc447186220'></span><span id='_Toc447186412'></span><span id='_Toc447187127'></span><span id='_Toc519760594'></span>
 
<span id='_Toc447186220'></span><span id='_Toc447186412'></span><span id='_Toc447187127'></span><span id='_Toc519760594'></span>
  
====1.2.6 Compressible flows====
+
====2.2.6 Compressible flows====
  
 
In the previous sections the basics of the incompressible flow solver implemented in Tdyn has been introduced. The extension of that algorithm to compressible flows is straightforward.
 
In the previous sections the basics of the incompressible flow solver implemented in Tdyn has been introduced. The extension of that algorithm to compressible flows is straightforward.
Line 643: Line 645:
 
<span id='_Toc447186221'></span><span id='_Toc447186413'></span><span id='_Toc447187128'></span><span id='_Toc519760595'></span>
 
<span id='_Toc447186221'></span><span id='_Toc447186413'></span><span id='_Toc447187128'></span><span id='_Toc519760595'></span>
  
===1.3 Turbulence solvers===
+
===2.3 Turbulence solvers===
  
 
At high Reynolds numbers the flow will certainly be turbulent, and the resulting fluctuations in velocities need to be taken into account in the calculations.  A process known as Reynolds averaging [3] is applied to the governing equations whereby the velocities, u<sub>i</sub> are split into mean and a fluctuating component, where the fluctuating component, u<sub>i</sub>’, is defined by:
 
At high Reynolds numbers the flow will certainly be turbulent, and the resulting fluctuations in velocities need to be taken into account in the calculations.  A process known as Reynolds averaging [3] is applied to the governing equations whereby the velocities, u<sub>i</sub> are split into mean and a fluctuating component, where the fluctuating component, u<sub>i</sub>’, is defined by:
Line 756: Line 758:
 
<span id='_Toc447186222'></span><span id='_Toc447186414'></span><span id='_Toc447187129'></span><span id='_Toc519760596'></span>
 
<span id='_Toc447186222'></span><span id='_Toc447186414'></span><span id='_Toc447187129'></span><span id='_Toc519760596'></span>
  
====1.3.1 Zero equation (algebraic) model: the Smagorinsky model====
+
====2.3.1 Zero equation (algebraic) model: the Smagorinsky model====
  
 
Zero equation models are the most basic turbulence models. They assume that the turbulence is generated and dissipated in the same place, and so neglect the diffusion and convection of the turbulence. They are based on the idea of turbulent viscosity, and prescribe a turbulence viscosity, &#x03bd;<sub>t</sub>, either by means of empirical equations or experiment.
 
Zero equation models are the most basic turbulence models. They assume that the turbulence is generated and dissipated in the same place, and so neglect the diffusion and convection of the turbulence. They are based on the idea of turbulent viscosity, and prescribe a turbulence viscosity, &#x03bd;<sub>t</sub>, either by means of empirical equations or experiment.
Line 803: Line 805:
 
<span id='_Toc447186223'></span><span id='_Toc447186415'></span><span id='_Toc447187130'></span><span id='_Toc519760597'></span>
 
<span id='_Toc447186223'></span><span id='_Toc447186415'></span><span id='_Toc447187130'></span><span id='_Toc519760597'></span>
  
====1.3.2 One-equation models: the kinetic energy model (k-model)====
+
====2.3.2 One-equation models: the kinetic energy model (k-model)====
  
 
One-equation models attempt to model turbulent transport, by developing a differential equation for the transport of one of turbulent quantities.  In the kinetic energy model, the velocity scale of the turbulence is taken as the square root of the turbulence kinetic energy, ''k''. Kolmogorov and Prandtl independently suggested the following relationship between the eddy viscosity, this velocity scale,  [[Image:Draft_Casals_106883369-image16.png|24px]] , and length scale, ''L'':
 
One-equation models attempt to model turbulent transport, by developing a differential equation for the transport of one of turbulent quantities.  In the kinetic energy model, the velocity scale of the turbulence is taken as the square root of the turbulence kinetic energy, ''k''. Kolmogorov and Prandtl independently suggested the following relationship between the eddy viscosity, this velocity scale,  [[Image:Draft_Casals_106883369-image16.png|24px]] , and length scale, ''L'':
Line 837: Line 839:
 
<span id='_Toc447186224'></span><span id='_Toc447186416'></span><span id='_Toc447187131'></span><span id='_Toc519760598'></span>
 
<span id='_Toc447186224'></span><span id='_Toc447186416'></span><span id='_Toc447187131'></span><span id='_Toc519760598'></span>
  
====1.3.3 Two-equation models: the k-&#x03b5; model====
+
====2.3.3 Two-equation models: the k-&#x03b5; model====
  
 
In order to increase the accuracy of our turbulence modelling, it is therefore necessary to develop a second differential transport equation to provide a complete system of closed equations without the need for empirical relationships. The ''k-&#x03b5;'' turbulence model develops two such differential transport equations: one for the turbulence kinetic energy, ''k'', and a second for the turbulent dissipation, ''&#x03b5;''.  As for the ''k''-model, the ''k-&#x03b5;'' model relies on the Prandtl-Kolmogorov expression for the eddy viscosity above.  From dimensional arguments, the turbulent dissipation, can be written in terms of the turbulence kinetic energy and the turbulence length scale, and the eddy viscosity written in terms of ''k'' and ''&#x03b5;''
 
In order to increase the accuracy of our turbulence modelling, it is therefore necessary to develop a second differential transport equation to provide a complete system of closed equations without the need for empirical relationships. The ''k-&#x03b5;'' turbulence model develops two such differential transport equations: one for the turbulence kinetic energy, ''k'', and a second for the turbulent dissipation, ''&#x03b5;''.  As for the ''k''-model, the ''k-&#x03b5;'' model relies on the Prandtl-Kolmogorov expression for the eddy viscosity above.  From dimensional arguments, the turbulent dissipation, can be written in terms of the turbulence kinetic energy and the turbulence length scale, and the eddy viscosity written in terms of ''k'' and ''&#x03b5;''
Line 875: Line 877:
 
<span id='_Toc447186225'></span><span id='_Toc447186417'></span><span id='_Toc447187132'></span><span id='_Toc519760599'></span>
 
<span id='_Toc447186225'></span><span id='_Toc447186417'></span><span id='_Toc447187132'></span><span id='_Toc519760599'></span>
  
====1.3.4 Implicit LES turbulence model====
+
====2.3.4 Implicit LES turbulence model====
  
 
In recent years a significant progress has been carried out in the development of new turbulence models based on the fact that not the entire range of scales of the flow is interesting for the majority of engineering applications. In this type of applications information contained in "the large scales" of the flow is enough to analyze magnitudes of interest as velocity, temperature ... Therefore, the idea that the global flow behaviour can be correctly approximated without the necessity to approximate the smaller scales correctly, is seen by many authors as a possible great advance in the modelling of turbulence. This fact has originated the design of turbulence models that describe the interaction of small scales with large scales. These models are commonly known as Large Eddy Simulation models (LES).
 
In recent years a significant progress has been carried out in the development of new turbulence models based on the fact that not the entire range of scales of the flow is interesting for the majority of engineering applications. In this type of applications information contained in "the large scales" of the flow is enough to analyze magnitudes of interest as velocity, temperature ... Therefore, the idea that the global flow behaviour can be correctly approximated without the necessity to approximate the smaller scales correctly, is seen by many authors as a possible great advance in the modelling of turbulence. This fact has originated the design of turbulence models that describe the interaction of small scales with large scales. These models are commonly known as Large Eddy Simulation models (LES).
Line 885: Line 887:
 
<span id='_Toc447186226'></span><span id='_Toc447186418'></span><span id='_Toc447187133'></span><span id='_Toc519760600'></span>
 
<span id='_Toc447186226'></span><span id='_Toc447186418'></span><span id='_Toc447187133'></span><span id='_Toc519760600'></span>
  
====1.3.5 Computation of the characteristic lengths====
+
====2.3.5 Computation of the characteristic lengths====
  
 
The computation of the stabilization parameters is a crucial issue as they affect both the stability and accuracy of the numerical solution. The different procedures to compute the stabilization parameters are typically based on the study of simplified forms of the stabilized equations. Contributions to this topic are reported in (Oñate 1998 and García Espinosa 2005). Despite the relevance of the problem there still lacks a general method to compute the stabilization parameters for all the range of flow situations.
 
The computation of the stabilization parameters is a crucial issue as they affect both the stability and accuracy of the numerical solution. The different procedures to compute the stabilization parameters are typically based on the study of simplified forms of the stabilized equations. Contributions to this topic are reported in (Oñate 1998 and García Espinosa 2005). Despite the relevance of the problem there still lacks a general method to compute the stabilization parameters for all the range of flow situations.
Line 961: Line 963:
  
  
As for the length parameters  [[Image:Draft_Casals_106883369-image19.png|18px]] in the mass conservation equation, the simplest assumption  [[Image:Draft_Casals_106883369-image20.png|48px]] has been taken.
+
As for the length parameters  <math display="inline">h_i^d</math> in the mass conservation equation, the simplest assumption  <math display="inline">h_i^d=h^d</math> has been taken.
  
 
The overall stabilization terms introduced by the FIC formulation above presented have the intrinsic capacity to ensure physically sound numerical solutions for a wide spectrum of Reynolds numbers without the need of introducing additional turbulence modelling terms.
 
The overall stabilization terms introduced by the FIC formulation above presented have the intrinsic capacity to ensure physically sound numerical solutions for a wide spectrum of Reynolds numbers without the need of introducing additional turbulence modelling terms.
Line 967: Line 969:
 
<span id='_Toc519760601'></span>
 
<span id='_Toc519760601'></span>
  
===1.4 Flow through porous media===
+
===2.4 Flow through porous media===
  
 
The incompressible Navier-Stokes quations, in a given domain &#x03a9; and time interval (0,t) is given by Eq.<span id='cite-_Ref447096024'></span>[[#_Ref447096024|(2-1)]]. In the case of solids, small velocities can be considered and the term <math display="inline">\left( u\cdot \nabla \right) u</math> can be neglected. Therefore, assuming and incompressible flow (constant density) in a certain domain &#x03a9; and considering the mass conservation equation, the Navier-Stokes equations can be written as follows:
 
The incompressible Navier-Stokes quations, in a given domain &#x03a9; and time interval (0,t) is given by Eq.<span id='cite-_Ref447096024'></span>[[#_Ref447096024|(2-1)]]. In the case of solids, small velocities can be considered and the term <math display="inline">\left( u\cdot \nabla \right) u</math> can be neglected. Therefore, assuming and incompressible flow (constant density) in a certain domain &#x03a9; and considering the mass conservation equation, the Navier-Stokes equations can be written as follows:
Line 1,148: Line 1,150:
 
<br/>
 
<br/>
  
<span id='_Toc447186227'></span><span id='_Toc447186419'></span><span id='_Toc447187134'></span><span id='_Toc294716218'></span><span id='_Toc387135602'></span><div id="_Toc519760602" class="center" style="width: auto; margin-left: auto; margin-right: auto;">
+
<span id='_Toc447186227'></span><span id='_Toc447186419'></span><span id='_Toc447187134'></span><span id='_Toc294716218'></span><span id='_Toc387135602'></span><span id='_Toc519760602'></span>
<big>Overlapping domain decomposition level set (fsurf module)</big></div>
+
 
 +
==3. Overlapping domain decomposition level set (fsurf module)==
  
 
This section introduces one of the algorithms implemented in Tdyn for the analysis of free surface flows. The main innovation of this method is the application of domain decomposition concept in the statement of the problem, in order to increase accuracy in the capture of free surface as well as in the resolution of governing equations in the interface between the two fluids. Free surface capturing is based on the solution of a level set equation, while Navier Stokes equations are solved using the iterative monolithic predictor-corrector algorithm presented above, where the correction step is based on the imposition of the divergence free condition in the velocity field by means of the solution of a scalar equation for the pressure.
 
This section introduces one of the algorithms implemented in Tdyn for the analysis of free surface flows. The main innovation of this method is the application of domain decomposition concept in the statement of the problem, in order to increase accuracy in the capture of free surface as well as in the resolution of governing equations in the interface between the two fluids. Free surface capturing is based on the solution of a level set equation, while Navier Stokes equations are solved using the iterative monolithic predictor-corrector algorithm presented above, where the correction step is based on the imposition of the divergence free condition in the velocity field by means of the solution of a scalar equation for the pressure.
Line 1,155: Line 1,158:
 
<span id='_Toc447186228'></span><span id='_Toc447186420'></span><span id='_Toc447187135'></span><span id='_Toc519760603'></span>
 
<span id='_Toc447186228'></span><span id='_Toc447186420'></span><span id='_Toc447187135'></span><span id='_Toc519760603'></span>
  
===1.5 Governing equations===
+
===3.1 Governing equations===
  
 
The velocity and pressure fields of two incompressible and immiscible fluids moving in the domain Ω  ''R<sup>d</sup>''(''d''=2,3) can be described by the incompressible Navier Stokes equations for multiphase flows, also known as non-homogeneous incompressible Navier Stokes equations:
 
The velocity and pressure fields of two incompressible and immiscible fluids moving in the domain Ω  ''R<sup>d</sup>''(''d''=2,3) can be described by the incompressible Navier Stokes equations for multiphase flows, also known as non-homogeneous incompressible Navier Stokes equations:
Line 1,274: Line 1,277:
 
{| style="text-align: center; margin:auto;width: 100%;"
 
{| style="text-align: center; margin:auto;width: 100%;"
 
|-
 
|-
| <math>n\left( x,t\right) =\nabla \, \Psi {\left. \right| }_{(x,t)}\, ;\kappa \left( x,t\right) =</math><math>\nabla \cdot (n\left( x,t\right) )</math>
+
| <math>n\left( x,t\right) =\nabla \, \Psi {\left. \right| }_{(x,t)}\, ;\kappa \left( x,t\right) =</math><math>\nabla \cdot (n\left( x,t\right) )</math>
 
|}
 
|}
 
|  style="text-align: right;width: 5px;text-align: right;white-space: nowrap;"|(3-7)
 
|  style="text-align: right;width: 5px;text-align: right;white-space: nowrap;"|(3-7)
Line 1,458: Line 1,461:
 
<span id='_Toc447186229'></span><span id='_Toc447186421'></span><span id='_Toc447187136'></span><span id='_Toc519760604'></span>
 
<span id='_Toc447186229'></span><span id='_Toc447186421'></span><span id='_Toc447187136'></span><span id='_Toc519760604'></span>
  
===1.6 How to calculate a signed distance to the interface===
+
===3.2 How to calculate a signed distance to the interface===
  
 
Based on flow properties as density or viscosity, we can calculate an initial guess for <math display="inline">\Psi</math>  as follows
 
Based on flow properties as density or viscosity, we can calculate an initial guess for <math display="inline">\Psi</math>  as follows
Line 1,568: Line 1,571:
 
{| style="text-align: center; margin:auto;width: 100%;"
 
{| style="text-align: center; margin:auto;width: 100%;"
 
|-
 
|-
| <math>\mathit{\boldsymbol{n}}\left( \mathit{\boldsymbol{x}},t\right) =\nabla \Psi {\left. \right| }_{x,t}\, ;\, \kappa \left( \mathit{\boldsymbol{x}},t\right) =</math><math>\nabla \cdot (\mathit{\boldsymbol{n}}\left( \mathit{\boldsymbol{x}},t\right) )</math>
+
| <math>\mathit{\boldsymbol{n}}\left( \mathit{\boldsymbol{x}},t\right) =\nabla \Psi {\left. \right| }_{x,t}\, ;\, \kappa \left( \mathit{\boldsymbol{x}},t\right) =</math><math>\nabla \cdot (\mathit{\boldsymbol{n}}\left( \mathit{\boldsymbol{x}},t\right) )</math>
 
|}
 
|}
 
|  style="text-align: right;width: 5px;text-align: right;white-space: nowrap;"|(3-24)
 
|  style="text-align: right;width: 5px;text-align: right;white-space: nowrap;"|(3-24)
Line 1,594: Line 1,597:
 
<span id='_Toc447186230'></span><span id='_Toc447186422'></span><span id='_Toc447187137'></span><span id='_Toc519760605'></span>
 
<span id='_Toc447186230'></span><span id='_Toc447186422'></span><span id='_Toc447187137'></span><span id='_Toc519760605'></span>
  
===1.7 Interfacial boundary conditions===
+
===3.3 Interfacial boundary conditions===
  
 
At a moving interface the jump condition applies. For immiscible fluids we can write:
 
At a moving interface the jump condition applies. For immiscible fluids we can write:
Line 1,696: Line 1,699:
 
{| style="text-align: center; margin:auto;width: 100%;"
 
{| style="text-align: center; margin:auto;width: 100%;"
 
|-
 
|-
| <math>\begin{matrix}{\partial }_{t}\left( \rho \mathit{\boldsymbol{u}}\right) +\, \nabla \left( \rho \mathit{\boldsymbol{u}}\mathit{\boldsymbol{u}}\right) -\, \nabla \mathit{\boldsymbol{\sigma }}=\rho \tilde{\mathit{\boldsymbol{f}}}\\\tilde{\mathit{\boldsymbol{f\, }}}\mathit{\boldsymbol{=f+}}\gamma \kappa \mathit{\boldsymbol{n}}\delta (\Gamma )\end{matrix}</math>
+
| <math>\begin{matrix}{\partial }_{t}\left( \rho \mathit{\boldsymbol{u}}\right) +\, \nabla \left( \rho \mathit{\boldsymbol{u}}\otimes \mathit{\boldsymbol{u}}\right) -\, \nabla \mathit{\boldsymbol{\sigma }}=\rho \tilde{\mathit{\boldsymbol{f}}}\\\tilde{\mathit{\boldsymbol{f\, }}}\mathit{\boldsymbol{=f+}}\gamma \kappa \mathit{\boldsymbol{n}}\delta (\Gamma )\end{matrix}</math>
 
|}
 
|}
 
|  style="text-align: right;width: 5px;text-align: right;white-space: nowrap;"|<span id='_Ref447099422'></span>(3-32)
 
|  style="text-align: right;width: 5px;text-align: right;white-space: nowrap;"|<span id='_Ref447099422'></span>(3-32)
Line 1,749: Line 1,752:
 
<span id='_Toc447186231'></span><span id='_Toc447186423'></span><span id='_Toc447187138'></span><span id='_Toc519760606'></span>
 
<span id='_Toc447186231'></span><span id='_Toc447186423'></span><span id='_Toc447187138'></span><span id='_Toc519760606'></span>
  
===1.8 Stabilized FIC-FEM formulation===
+
===3.4 Stabilized FIC-FEM formulation===
  
 
The stabilized FIC form of the governing differential equations Eq. <span id='cite-_Ref447098846'></span>[[#_Ref447098846|'''(3-13)''']] and Eq. <span id='cite-_Ref447098828'></span>[[#_Ref447098828|'''(3-14)''']] is written as
 
The stabilized FIC form of the governing differential equations Eq. <span id='cite-_Ref447098846'></span>[[#_Ref447098846|'''(3-13)''']] and Eq. <span id='cite-_Ref447098828'></span>[[#_Ref447098828|'''(3-14)''']] is written as
Line 1,832: Line 1,835:
 
{| style="text-align: center; margin:auto;width: 100%;"
 
{| style="text-align: center; margin:auto;width: 100%;"
 
|-
 
|-
| <math>{\mathit{\boldsymbol{r}}}_{m}\, :=\, {\partial }_{t}\left( \rho \mathit{\boldsymbol{u}}\right) +</math><math>\, \nabla \cdot \left( \rho \mathit{\boldsymbol{u}}\mathit{\boldsymbol{u}}\right) +</math><math>\, \nabla p-\nabla \cdot \mathit{\boldsymbol{\sigma }}-\rho \mathit{\boldsymbol{f}}</math>
+
| <math>{\mathit{\boldsymbol{r}}}_{m}\, :=\, {\partial }_{t}\left( \rho \mathit{\boldsymbol{u}}\right) +</math><math>\, \nabla \cdot \left( \rho \mathit{\boldsymbol{u}}\otimes \mathit{\boldsymbol{u}}\right) +</math><math>\, \nabla p-\nabla \cdot \mathit{\boldsymbol{\sigma }}-\rho \mathit{\boldsymbol{f}}</math>
 
|}
 
|}
 
|  style="text-align: right;text-align: right;white-space: nowrap;"|
 
|  style="text-align: right;text-align: right;white-space: nowrap;"|
Line 1,858: Line 1,861:
  
  
The characteristic lengths'' ''vectors  [[Image:Draft_Casals_106883369-image22.png|42px]] and  [[Image:Draft_Casals_106883369-image23.png|18px]] contain the dimensions of the finite space domain where the balance laws of mechanics are enforced. At the discrete level these dimensions are of the order of the element or grid dimension used for the computation. Details on obtaining the FIC stabilized equations and the recommendation for computing the characteristic length vectors can be found in [4]-[6].
+
The characteristic lengths'' ''vectors  <math display="inline">\boldsymbol{h}_m,\boldsymbol{h}_d</math> and  <math display="inline">\boldsymbol{h}_{\psi }</math> contain the dimensions of the finite space domain where the balance laws of mechanics are enforced. At the discrete level these dimensions are of the order of the element or grid dimension used for the computation. Details on obtaining the FIC stabilized equations and the recommendation for computing the characteristic length vectors can be found in [4]-[6].
  
 
<span id='_Toc447186232'></span><span id='_Toc447186424'></span><span id='_Toc447187139'></span><span id='_Toc519760607'></span>
 
<span id='_Toc447186232'></span><span id='_Toc447186424'></span><span id='_Toc447187139'></span><span id='_Toc519760607'></span>
  
===1.9 Overlapping domain decomposition method===
+
===3.5 Overlapping domain decomposition method===
  
To overcome the drawbacks related to the discontinuity of fluid properties across the interface and to impose the interfacial boundary condition we split the domain  [[Image:Draft_Casals_106883369-image24.png|18px]] into two overlapping subdomains. Based on this subdivision of the domain, we apply a Dirichlet-Neumann overlapping domain decomposition technique with appropriate boundary conditions in order to satisfying the interfacial condition.
+
To overcome the drawbacks related to the discontinuity of fluid properties across the interface and to impose the interfacial boundary condition we split the domain  <math display="inline">\Omega </math> into two overlapping subdomains. Based on this subdivision of the domain, we apply a Dirichlet-Neumann overlapping domain decomposition technique with appropriate boundary conditions in order to satisfying the interfacial condition.
  
Let <math display="inline">K=\bigcup _{e=1}^{\#K}\left( {N}^{e},{K}^{e},{\Theta }^{e}\right) \,</math> be a finite element partition of domain the  [[Image:Draft_Casals_106883369-image25.png|18px]] , where  [[Image:Draft_Casals_106883369-image26.png|24px]] are element nodes,  [[Image:Draft_Casals_106883369-image27.png|24px]] is the element spatial domain,  [[Image:Draft_Casals_106883369-image28.png|18px]] are element shape functions and  [[Image:Draft_Casals_106883369-image29.png|18px]] is the total number of elements in the partition.
+
Let <math display="inline">K=\bigcup _{e=1}^{\#K}\left( {N}^{e},{K}^{e},{\Theta }^{e}\right) \,</math> be a finite element partition of domain the  <math display="inline">\Omega </math> , where  <math display="inline">N^e</math> are element nodes,  <math display="inline">K^e</math> is the element spatial domain,  <math display="inline">{\Theta }^e</math> are element shape functions and  <math display="inline">\Kappa </math> is the total number of elements in the partition.
  
We assume that  [[Image:Draft_Casals_106883369-image30.png|18px]] satisfies the following approximation property:
+
We assume that  <math display="inline">\Kappa </math> satisfies the following approximation property:
  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
Line 1,881: Line 1,884:
  
  
for a fixed instant <math display="inline">t,\, t\, \in (0,T]</math>. Let us consider a domain decomposition of domain  [[Image:Draft_Casals_106883369-image31.png|18px]] into three disjoint sub domains  [[Image:Draft_Casals_106883369-image32.png|90px]] and  [[Image:Draft_Casals_106883369-image33.png|42px]] in such a way that  [[Image:Draft_Casals_106883369-image34.png|102px]] [[Image:Draft_Casals_106883369-image35.png|78px]] , where  [[Image:Draft_Casals_106883369-image36.png|24px]] are the elements of the finite element partition  [[Image:Draft_Casals_106883369-image37.png|18px]] , such as  [[Image:Draft_Casals_106883369-image38.png|138px]] and  [[Image:Draft_Casals_106883369-image39.png|24px]] are the elements of the finite element partition such as  [[Image:Draft_Casals_106883369-image40.png|138px]] . The geometrical domain decomposition is completed with
+
for a fixed instant <math display="inline">t,\, t\, \in (0,T]</math>. Let us consider a domain decomposition of domain  <math display="inline">\Omega </math> into three disjoint sub domains  <math display="inline">{\Omega }_3\left(t\right),\mbox{ }{\Omega }_4\left(t\right)</math> and  <math display="inline">{\Omega }_5\left(t\right)</math> in such a way that  <math>{\Omega }_\mbox{3}\left(t\right)=\underset{e}{\cup }K_3^e</math> <math>{\Omega }_\mbox{5}=\underset{e}{\cup }K_5^e</math> , where  <math display="inline">K_e^3</math> are the elements of the finite element partition  <math display="inline">\Kappa </math> , such as  <math display="inline">\forall \boldsymbol{x}\in K_3^e\vert \psi \left(x,t\right)>0</math> and  <math display="inline">K_e^5</math> are the elements of the finite element partition such as  <math display="inline">\forall \boldsymbol{x}\in K_5^e\vert \psi \left(x,t\right)<0</math> . The geometrical domain decomposition is completed with
  
 
{| class="formulaSCP" style="width: 100%; text-align: center;"  
 
{| class="formulaSCP" style="width: 100%; text-align: center;"  
Line 1,888: Line 1,891:
 
{| style="text-align: center; margin:auto;"  
 
{| style="text-align: center; margin:auto;"  
 
|-
 
|-
| [[Image:Draft_Casals_106883369-image41.png|198px]]
+
| <math>{\Omega }_4\left(t\right)=\Omega \backslash \left({\Omega }_3\left(t\right)\cup {\Omega }_5\left(t\right)\right)</math>
 
|}
 
|}
 
| style="width: 5px;text-align: right;white-space: nowrap;" | (3-40)
 
| style="width: 5px;text-align: right;white-space: nowrap;" | (3-40)
Line 1,907: Line 1,910:
  
  
Some comments about the  [[Image:Draft_Casals_106883369-image42.png|18px]] - [[Image:Draft_Casals_106883369-image43.png|24px]] partition are given next.
+
Some comments about the  <math display="inline">{\tilde{\Omega }}_1</math> - <math display="inline">{\tilde{\Omega }}_2</math> partition are given next.
  
 
In order to simplify the notation we will omit the time dependency of domains in the rest of the section.
 
In order to simplify the notation we will omit the time dependency of domains in the rest of the section.
  
Let  [[Image:Draft_Casals_106883369-image44.png|78px]] be the boundary of  [[Image:Draft_Casals_106883369-image45.png|18px]] , then:
+
Let  <math display="inline">\partial {\tilde{\Omega }}_i,\mbox{ }i=1,2</math> be the boundary of  <math display="inline">{\tilde{\Omega }}_i</math> , then:
  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
Line 1,924: Line 1,927:
  
  
It has to be noted that  [[Image:Draft_Casals_106883369-image46.png|30px]] contains an additional term  [[Image:Draft_Casals_106883369-image47.png|18px]] that is not included into  [[Image:Draft_Casals_106883369-image48.png|24px]] . This term comes from the presence of an interface inside  [[Image:Draft_Casals_106883369-image49.png|18px]] . Since we are using a capturing technique, the position of the interface will not lay on mesh nodes, as usually happens in a tracking technique. Therefore some elements can be intersected by the interface. Then  [[Image:Draft_Casals_106883369-image50.png|18px]] is defined as follows:
+
It has to be noted that  <math display="inline">\partial {\tilde{\Omega }}_i</math> contains an additional term  <math display="inline">{\tilde{\Gamma }}_i</math> that is not included into  <math display="inline">\partial \Omega </math> . This term comes from the presence of an interface inside  <math display="inline">\Omega </math> . Since we are using a capturing technique, the position of the interface will not lay on mesh nodes, as usually happens in a tracking technique. Therefore some elements can be intersected by the interface. Then  <math display="inline">{\tilde{\Gamma }}_i</math> is defined as follows:
  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
Line 1,937: Line 1,940:
  
  
Note that  [[Image:Draft_Casals_106883369-image51.png|18px]] is not coincident with  [[Image:Draft_Casals_106883369-image52.png|12px]] , but the following condition is satisfied:
+
Note that  <math display="inline">{\tilde{\Gamma }}_i</math> is not coincident with  <math display="inline">\Gamma </math> , but the following condition is satisfied:
  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
Line 1,971: Line 1,974:
  
  
We have two restrictions for the definition of the boundary condition on  [[Image:Draft_Casals_106883369-image54.png|18px]] : fluid velocities must be compatible at the interface and the jump boundary condition Eq. <span id='cite-_Ref447099367'></span>[[#_Ref447099367|('''3'''-'''25''')]] must be satisfied on  [[Image:Draft_Casals_106883369-image55.png|12px]] . The domain decomposition technique chosen is of Dirichlet-Neumann type and it allows us to fulfil both restrictions.
+
We have two restrictions for the definition of the boundary condition on  <math display="inline">{\tilde{\Gamma }}_i</math> : fluid velocities must be compatible at the interface and the jump boundary condition Eq. <span id='cite-_Ref447099367'></span>[[#_Ref447099367|('''3'''-'''25''')]] must be satisfied on  <math display="inline">\Gamma </math> . The domain decomposition technique chosen is of Dirichlet-Neumann type and it allows us to fulfil both restrictions.
  
Let us introduce a standard notation. We denote by  [[Image:Draft_Casals_106883369-image56.png|12px]] a variable related to  [[Image:Draft_Casals_106883369-image57.png|18px]] . For example '''u'''<sub>1</sub> is the velocity field solution of the problem in Eq. <span id='cite-_Ref447099602'></span>[[#_Ref447099602|('''3'''-'''37''')]], where the domain  [[Image:Draft_Casals_106883369-image58.png|18px]] has been replaced by  [[Image:Draft_Casals_106883369-image59.png|18px]] .
+
Let us introduce a standard notation. We denote by  <math display="inline">x_i</math> a variable related to  <math display="inline">{\tilde{\Omega }}_i</math> . For example '''u'''<sub>1</sub> is the velocity field solution of the problem in Eq. <span id='cite-_Ref447099602'></span>[[#_Ref447099602|('''3'''-'''37''')]], where the domain  <math display="inline">\Omega </math> has been replaced by  <math display="inline">{\tilde{\Omega }}_1</math> .
  
We apply the Dirichlet conditions on  [[Image:Draft_Casals_106883369-image60.png|18px]] and the Neumann conditions on  [[Image:Draft_Casals_106883369-image61.png|18px]] . For the boundary  [[Image:Draft_Casals_106883369-image62.png|18px]] , we make use of the compatibility of velocities at the interface:
+
We apply the Dirichlet conditions on  <math display="inline">{\tilde{\Gamma }}_1</math> and the Neumann conditions on  <math display="inline">{\tilde{\Gamma }}_2</math> . For the boundary  <math display="inline">{\tilde{\Gamma }}_1</math> , we make use of the compatibility of velocities at the interface:
  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
Line 1,988: Line 1,991:
  
  
For the boundary  [[Image:Draft_Casals_106883369-image63.png|18px]] we make use of the jump boundary condition. We are looking for a traction vector  [[Image:Draft_Casals_106883369-image64.png|6px]] such that:
+
For the boundary  <math display="inline">{\tilde{\Gamma }}_2</math> we make use of the jump boundary condition. We are looking for a traction vector  <math display="inline">\boldsymbol{\tilde{t}}</math> such that:
  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
Line 2,001: Line 2,004:
  
  
and  [[Image:Draft_Casals_106883369-image65.png|6px]] must guarantee that the jump boundary condition Eq. <span id='cite-_Ref447099367'></span>[[#_Ref447099367|('''3'''-'''25''')]] holds, that is to say:
+
and  <math display="inline">\boldsymbol{\tilde{t}}</math> must guarantee that the jump boundary condition Eq. <span id='cite-_Ref447099367'></span>[[#_Ref447099367|('''3'''-'''25''')]] holds, that is to say:
  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
Line 2,082: Line 2,085:
  
  
An iterative strategy between the two domains is used to reach a converged global solution in the whole domain  [[Image:Draft_Casals_106883369-image66.png|18px]] . It is expected that this global solution will satisfy both restrictions presented above. For this reason we define the following stop criteria:
+
An iterative strategy between the two domains is used to reach a converged global solution in the whole domain  <math display="inline">\Omega </math> . It is expected that this global solution will satisfy both restrictions presented above. For this reason we define the following stop criteria:
  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
Line 2,110: Line 2,113:
 
Unfortunately there is not theoretical result that can ensure the convergence of this method. However our experience in applying this method to a wide range of problems involving moving interfaces has showed that the method is stable and robust.
 
Unfortunately there is not theoretical result that can ensure the convergence of this method. However our experience in applying this method to a wide range of problems involving moving interfaces has showed that the method is stable and robust.
  
An expected property of the method is its dependency with the mesh size around the interface. This issue is directly related with how good is  [[Image:Draft_Casals_106883369-image67.png|12px]] approximated by  [[Image:Draft_Casals_106883369-image68.png|18px]] , as it has been point out in property Eq. <span id='cite-_Ref447099965'></span>[[#_Ref447099965|('''3'''-'''44''')]]. A fine mesh close to the interface reduces significantly the amount of iterations needed to reach a converged global solution, as well as the accuracy of the velocities and the pressure at the interface.
+
An expected property of the method is its dependency with the mesh size around the interface. This issue is directly related with how good is  <math display="inline">\Gamma </math> approximated by  <math display="inline">{\tilde{\Gamma }}_i</math> , as it has been point out in property Eq. <span id='cite-_Ref447099965'></span>[[#_Ref447099965|('''3'''-'''44''')]]. A fine mesh close to the interface reduces significantly the amount of iterations needed to reach a converged global solution, as well as the accuracy of the velocities and the pressure at the interface.
  
 
This methodology can be viewed as a combination of domain decomposition and level set techniques. This justifies the name given to the new method: ODDLS (by Overlapping Domain Decomposition Level Set).
 
This methodology can be viewed as a combination of domain decomposition and level set techniques. This justifies the name given to the new method: ODDLS (by Overlapping Domain Decomposition Level Set).
Line 2,116: Line 2,119:
 
<span id='_Toc447186233'></span><span id='_Toc447186425'></span><span id='_Toc447187140'></span><span id='_Toc519760608'></span>
 
<span id='_Toc447186233'></span><span id='_Toc447186425'></span><span id='_Toc447187140'></span><span id='_Toc519760608'></span>
  
===1.10 Discretization by the finite element method (FEM)===
+
===3.6 Discretization by the finite element method (FEM)===
  
In this section we present the final discrete system of equations associated to problem Eq. <span id='cite-_Ref447099994'></span>[[#_Ref447099994|('''3'''-'''48''')]] and Eq. <span id='cite-_Ref447099922'></span>[[#_Ref447099922|('''3'''-'''49''')]] using the FEM method. Let us consider a uniform partition of the time interval of analysis [[Image:Draft_Casals_106883369-image69.png|36px]] , with time step size  [[Image:Draft_Casals_106883369-image70.png|18px]] . We will denote by a superscript the time step at which the algorithmic solution is computed. We assume  [[Image:Draft_Casals_106883369-image71.png|66px]] and  [[Image:Draft_Casals_106883369-image72.png|18px]] are known. If  [[Image:Draft_Casals_106883369-image73.png|60px]] , the trapezoidal rule applied to Eq. <span id='cite-_Ref447099994'></span>[[#_Ref447099994|('''3'''-'''48''')]] and Eq. <span id='cite-_Ref447099922'></span>[[#_Ref447099922|('''3'''-'''49''')]] consists of finding  [[Image:Draft_Casals_106883369-image74.png|132px]] as the solution of the problem
+
In this section we present the final discrete system of equations associated to problem Eq. <span id='cite-_Ref447099994'></span>[[#_Ref447099994|('''3'''-'''48''')]] and Eq. <span id='cite-_Ref447099922'></span>[[#_Ref447099922|('''3'''-'''49''')]] using the FEM method. Let us consider a uniform partition of the time interval of analysis <math display="inline">\left[0,T\right]</math> , with time step size  <math display="inline">\delta t</math> . We will denote by a superscript the time step at which the algorithmic solution is computed. We assume  <math display="inline">\boldsymbol{u}_1^n,p_1^n,\boldsymbol{u}_2^n</math> and  <math display="inline">p_2^n</math> are known. If  <math display="inline">\theta \in \left[0,1\right]</math> , the trapezoidal rule applied to Eq. <span id='cite-_Ref447099994'></span>[[#_Ref447099994|('''3'''-'''48''')]] and Eq. <span id='cite-_Ref447099922'></span>[[#_Ref447099922|('''3'''-'''49''')]] consists of finding  <math display="inline">\boldsymbol{u}_1^{n+1},p_1^{n+1},\boldsymbol{u}_2^{n+1},p_2^{n+1}</math> as the solution of the problem
  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
Line 2,146: Line 2,149:
  
  
where  [[Image:Draft_Casals_106883369-image75.png|162px]] and  [[Image:Draft_Casals_106883369-image76.png|144px]] .
+
where  <math display="inline">x^{n+\theta }:=\theta x^{n+1}+\left(1-\theta \right)x^n</math> and  <math display="inline">{\delta }_tx^n:=\frac{1}{\delta t}\left(x^{n+1}-x^n\right)</math> .
  
 
This problem is nonlinear due to the convective term and the evolution of the free surface. Prior to the finite element discretization we linearize it using a Picard method, which leads to an Oseen problem for each iteration step. Several strategies can be adopted to deal with the two iterative algorithms involved in the ODDLS method: the overlapping domain decomposition iterative scheme and the linearization scheme (Picard).  In our case, for each iteration step of the linearization scheme the domain decomposition scheme is also updated. This simultaneous iterative strategy requires to complete Eq. <span id='cite-_Ref447100071'></span>[[#_Ref447100071|('''3'''-'''50''')]] with a stop criteria for the Picard iteration. The same iteration index is used for both schemes.
 
This problem is nonlinear due to the convective term and the evolution of the free surface. Prior to the finite element discretization we linearize it using a Picard method, which leads to an Oseen problem for each iteration step. Several strategies can be adopted to deal with the two iterative algorithms involved in the ODDLS method: the overlapping domain decomposition iterative scheme and the linearization scheme (Picard).  In our case, for each iteration step of the linearization scheme the domain decomposition scheme is also updated. This simultaneous iterative strategy requires to complete Eq. <span id='cite-_Ref447100071'></span>[[#_Ref447100071|('''3'''-'''50''')]] with a stop criteria for the Picard iteration. The same iteration index is used for both schemes.
Line 2,178: Line 2,181:
  
  
The Galerkin approximation of Eq. <span id='cite-_Ref447100107'></span>[[#_Ref447100107|('''3'''-'''53''')]] is straightforward and stable, thanks to the FIC stabilized formulation [2-7]. Equal polynomial order can be used for the approximation of the velocities and the pressure. Based on the finite element partition introduced in Eq. <span id='cite-_Ref447100170'></span>[[#_Ref447100170|('''3'''-'''39''')]], let  [[Image:Draft_Casals_106883369-image77.png|48px]] and  [[Image:Draft_Casals_106883369-image78.png|54px]] be two finite dimensional conforming finite element spaces, being  [[Image:Draft_Casals_106883369-image79.png|12px]] the maximum of the elements partition diameters.
+
The Galerkin approximation of Eq. <span id='cite-_Ref447100107'></span>[[#_Ref447100107|('''3'''-'''53''')]] is straightforward and stable, thanks to the FIC stabilized formulation [2-7]. Equal polynomial order can be used for the approximation of the velocities and the pressure. Based on the finite element partition introduced in Eq. <span id='cite-_Ref447100170'></span>[[#_Ref447100170|('''3'''-'''39''')]], let  <math>V_h\subset V</math> and  <math>Q_h\subset Q</math> be two finite dimensional conforming finite element spaces, being  <math display="inline">h</math> the maximum of the elements partition diameters.
  
Let  [[Image:Draft_Casals_106883369-image80.png|348px]] be the finite element spaces for the test functions. The discretized form of <span id='cite-_Ref387133064'></span>[[#_Ref387133064|Eq. 94]] is
+
Let  <math>{\tilde{V}}_{h,i}^0:=\left\{\boldsymbol{v}\in V_h\vert {\boldsymbol{v}\vert }_{\partial {\tilde{\Omega }}_i}=\right. </math><math>\left. \boldsymbol{0}\right\}\begin{array}{cc}
 +
, & Q_{h,i}^0:=\left\{q\in Q_h\vert {q\vert }_{\partial {\tilde{\Omega }}_i}=0\right\}
 +
\end{array}</math> be the finite element spaces for the test functions. The discretized form of <span id='cite-_Ref387133064'></span>[[#_Ref387133064|Eq. 94]] is
  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
 
{| class="formulaSCP" style="width: 100%;border-collapse: collapse;width: 100%;text-align: center;"  
Line 2,222: Line 2,227:
 
Updating of the level set equation is done once the convergence of the Navier-Stokes equations is obtained. Therefore the complete iteration loop is as follows:
 
Updating of the level set equation is done once the convergence of the Navier-Stokes equations is obtained. Therefore the complete iteration loop is as follows:
  
Step 1. Solve equations (54) in [[Image:Draft_Casals_106883369-image81.png|18px]] .
+
Step 1. Solve equations (54) in <math>{\tilde{\Omega }}_{1}</math>.
  
Step 2. Solve equations (54) in [[Image:Draft_Casals_106883369-image82.png|24px]] .
+
Step 2. Solve equations (54) in <math>{\tilde{\Omega }}_{2}</math>.
  
 
Step 3. Check convergence on pressure and velocity fields. If it is satisfied, go to Step 4, otherwise go to Step 1.
 
Step 3. Check convergence on pressure and velocity fields. If it is satisfied, go to Step 4, otherwise go to Step 1.
Line 2,234: Line 2,239:
 
<br/>
 
<br/>
  
<span id='_Toc447186234'></span><span id='_Toc447186426'></span><span id='_Toc447187141'></span><span id='_Toc294716225'></span><span id='_Toc387135609'></span><div id="_Toc519760609" class="center" style="width: auto; margin-left: auto; margin-right: auto;">
+
<span id='_Toc447186234'></span><span id='_Toc447186426'></span><span id='_Toc447187141'></span><span id='_Toc294716225'></span><span id='_Toc387135609'></span><span id='_Toc519760609'></span>
<big>Heat Transfer Solver (heatrans module)</big></div>
+
 
 +
==4. Heat Transfer Solver (heatrans module)==
  
 
<span id='_Toc447186235'></span><span id='_Toc447186427'></span><span id='_Toc447187142'></span><span id='_Toc519760610'></span>
 
<span id='_Toc447186235'></span><span id='_Toc447186427'></span><span id='_Toc447187142'></span><span id='_Toc519760610'></span>
  
===1.11 Governing equations===
+
===4.1 Governing equations===
  
 
Tdyn solves the transient Heat Transfer Equations in a given domain &#x03a9;:={&#x03a9;<sub>F </sub>U &#x03a9;<sub>S</sub>}(being &#x03a9;<sub>F</sub> the fluid domain and &#x03a9;<sub>S</sub>the solid domain) and time interval (0, t):
 
Tdyn solves the transient Heat Transfer Equations in a given domain &#x03a9;:={&#x03a9;<sub>F </sub>U &#x03a9;<sub>S</sub>}(being &#x03a9;<sub>F</sub> the fluid domain and &#x03a9;<sub>S</sub>the solid domain) and time interval (0, t):
Line 2,323: Line 2,329:
 
<span id='_Toc447186236'></span><span id='_Toc447186428'></span><span id='_Toc447187143'></span><span id='_Toc519760611'></span>
 
<span id='_Toc447186236'></span><span id='_Toc447186428'></span><span id='_Toc447187143'></span><span id='_Toc519760611'></span>
  
===1.12 Stabilized heat transfer equations===
+
===4.2 Stabilized heat transfer equations===
  
 
The Finite Increment Calculus theory presented above is also valid for the heat transfer balance equations Eq. <span id='cite-_Ref447105971'></span>[[#_Ref447105971|(4-1)]]. The stabilized form of the governing differential equations in 3 dimensions is written as follows:
 
The Finite Increment Calculus theory presented above is also valid for the heat transfer balance equations Eq. <span id='cite-_Ref447105971'></span>[[#_Ref447105971|(4-1)]]. The stabilized form of the governing differential equations in 3 dimensions is written as follows:
Line 2,459: Line 2,465:
 
<span id='_Toc447186237'></span><span id='_Toc447186429'></span><span id='_Toc447187144'></span><span id='_Toc519760612'></span>
 
<span id='_Toc447186237'></span><span id='_Toc447186429'></span><span id='_Toc447187144'></span><span id='_Toc519760612'></span>
  
===1.13 Radiation models===
+
===4.3 Radiation models===
  
 
Heat transfer by radiation can be taken into account within Tdyn by using one of the following radiation models.
 
Heat transfer by radiation can be taken into account within Tdyn by using one of the following radiation models.
Line 2,465: Line 2,471:
 
<span id='_Toc447186238'></span><span id='_Toc447186430'></span><span id='_Toc447187145'></span><span id='_Toc519760613'></span>
 
<span id='_Toc447186238'></span><span id='_Toc447186430'></span><span id='_Toc447187145'></span><span id='_Toc519760613'></span>
  
====1.13.1 P-1 radiation model====
+
====4.3.1 P-1 radiation model====
  
 
The energy conservation equation in terms of the temperature <math display="inline">T</math>, can be written as:
 
The energy conservation equation in terms of the temperature <math display="inline">T</math>, can be written as:
Line 2,757: Line 2,763:
 
<span id='_Toc447186239'></span><span id='_Toc447186431'></span><span id='_Toc447187146'></span><span id='_Toc519760614'></span>
 
<span id='_Toc447186239'></span><span id='_Toc447186431'></span><span id='_Toc447187146'></span><span id='_Toc519760614'></span>
  
====1.13.2 Surface to surface (S2S) radiation model====
+
====4.3.2 Surface to surface (S2S) radiation model====
  
 
The surface-to-surface (S2S) radiation model can be used to account for the radiation exchange in an enclosure of gray-diffuse surfaces.  This energy exchange depends on:
 
The surface-to-surface (S2S) radiation model can be used to account for the radiation exchange in an enclosure of gray-diffuse surfaces.  This energy exchange depends on:
Line 2,903: Line 2,909:
 
<br/>
 
<br/>
  
<span id='_Toc447186240'></span><span id='_Toc447186432'></span><span id='_Toc447187147'></span><span id='_Toc294716227'></span><span id='_Toc387135611'></span><div id="_Toc519760615" class="center" style="width: auto; margin-left: auto; margin-right: auto;">
+
<span id='_Toc447186240'></span><span id='_Toc447186432'></span><span id='_Toc447187147'></span><span id='_Toc294716227'></span><span id='_Toc387135611'></span><span id='_Toc519760615'></span>
<big>Species Advection Solver (advect module)</big></div>
+
 
 +
==5. Species Advection Solver (advect module)==
  
 
<span id='_Toc447186241'></span><span id='_Toc447186433'></span><span id='_Toc447187148'></span><span id='_Toc519760616'></span>
 
<span id='_Toc447186241'></span><span id='_Toc447186433'></span><span id='_Toc447187148'></span><span id='_Toc519760616'></span>
  
===1.14 Governing equations===
+
===5.1 Governing equations===
  
 
Tdyn solves the transient Species Advection Equations in a given fluid domain &#x03a9;''<sub>F</sub>'' for a number of different species, and time interval (0, t):
 
Tdyn solves the transient Species Advection Equations in a given fluid domain &#x03a9;''<sub>F</sub>'' for a number of different species, and time interval (0, t):
Line 2,929: Line 2,936:
 
<br/>
 
<br/>
  
<span id='_Toc447186242'></span><span id='_Toc447186434'></span><span id='_Toc447187149'></span><span id='_Toc475877919'></span><span id='_Toc294716228'></span><span id='_Toc387135612'></span><span id='_Toc442245061'></span><div id="_Toc519760617" class="center" style="width: auto; margin-left: auto; margin-right: auto;">
+
<span id='_Toc447186242'></span><span id='_Toc447186434'></span><span id='_Toc447187149'></span><span id='_Toc475877919'></span><span id='_Toc294716228'></span><span id='_Toc387135612'></span><span id='_Toc442245061'></span><span id='_Toc519760617'></span>
<big>References</big></div>
+
 
 +
==6. References==
  
 
[1] R. Codina "A discontinuity capturing crosswind dissipation for the finite element solution of the convection diffusion equation", Comp. Meth. Appl. Mech. Eng., pages 110:325-342, 1993.
 
[1] R. Codina "A discontinuity capturing crosswind dissipation for the finite element solution of the convection diffusion equation", Comp. Meth. Appl. Mech. Eng., pages 110:325-342, 1993.

Latest revision as of 13:55, 24 October 2018


Error creating thumbnail: File missing

Eq. 6Eq. 6Eq. 6Estabilized


1. Introduction 4

2. Navier Stokes solver (ransol module) 5

2.1 Governing equations 5

2.2 CFD algorithms and stability 5

2.2.1 Finite calculus (FIC)formulation 6

2.2.2 Stabilized Navier-Stokes equations 7

2.2.3 Stabilized integral forms 8

2.2.4 Convective and pressure gradient projections 9

2.2.5 Monolithic time integration scheme 10

2.2.6 Compressible flows 12

2.3 Turbulence solvers 12

2.3.1 Zero equation (algebraic) model: the Smagorinsky model 13

2.3.2 One-equation models: the kinetic energy model (k-model) 14

2.3.3 Two-equation models: the k-ε model 15

2.3.4 Implicit LES turbulence model 15

2.3.5 Computation of the characteristic lengths 16

2.4 Flow through porous media 18

3. Overlapping domain decomposition level set (fsurf module) 20

3.1 Governing equations 20

3.2 How to calculate a signed distance to the interface 23

3.3 Interfacial boundary conditions 25

3.4 Stabilized FIC-FEM formulation 26

3.5 Overlapping domain decomposition method 27

3.6 Discretization by the finite element method (FEM) 30

4. Heat Transfer Solver (heatrans module) 33

4.1 Governing equations 33

4.2 Stabilized heat transfer equations 34

4.3 Radiation models 35

4.3.1 P-1 radiation model 35

4.3.2 Surface to surface (S2S) radiation model 38

5. Species Advection Solver (advect module) 40

5.1 Governing equations 40

6. References 41


1. Introduction

Tdyn is a numerical simulation solver for multi-physics problem that uses the stabilized (FIC) finite element method. Using this stabilized numerical scheme, Tdyn is able to solve for instance heat transfer problems in both, fluids and solids, turbulent flows, advection of species and free surface problems. This document gives a short overview of the theoretical principles that Tdyn is based on.


2. Navier Stokes solver (ransol module)

2.1 Governing equations

The incompressible Navier-Stokes-Equations in a given three-dimensional domain Ω and time interval (0, t) can be written as:

(2-1)


where u = u (x, t) denotes the velocity vector, p = p (x, t) the pressure field, ρ the (constant) density, μ the dynamic viscosity of the fluid and f the volumetric acceleration. The above equations need to be combined with the following boundary conditions:

(2-2)


In the above equations, , denotes the boundary of the domain , with n the normal unit vector, and g1, g2 the tangent vectors of the boundary surface ∂Ω. uc is the velocity field on ΓD (the part of the boundary of Dirichlet type, or prescribed velocity type), pc the prescribed pressure on ΓP (prescribed pressure boundary). σ is the stress field, the value of the normal velocity and u0, p0 the initial velocity and pressure fields. The union of ΓD, ΓP and ΓM must be Γ; their intersection must be empty, as a point of the boundary can only be part of one of the boundary types, unless it is part of the border between two of them.

The spatial discretization of the Navier-Stokes equations has been done by means of the finite element method, while for the time discretization an iterative algorithm that can be consider as an implicit two steps "Fractional Step Method" has been used. Problems with dominating convection are stabilized by the so-called "Finite Increment Calculus" method, presented below.

2.2 CFD algorithms and stability

Using the standard Galerkin method to discretize the incompressible Navier-Stokes equations leads to numerical instabilities coming from two sources. Firstly, owing to the advective-diffusive character of the governing equations, oscillations appear in the solution at high Reynolds numbers, when the convection terms become dominant. Secondly, the mixed character of the equations limits the choice of velocity and pressure interpolations such that equal order interpolations cannot be used.

In recent years, a lot of effort has been put into looking for ways to stabilize the governing equations, many of which involve artificially adding terms to the equations to balance the convection, for example, the artificial diffusion method [7].

A new stabilization method, known as finite increment calculus, has recently been developed [5, 6]. By considering the balance of flux over a finite sized domain, higher order terms naturally appear in the governing equations, which supply the necessary stability for a classical Galerkin finite element discretization to be used with equal order velocity and pressure interpolations. This method has been Christianized “Finite Calculus” (FIC).

2.2.1 Finite calculus (FIC)formulation

To demonstrate this method, consider the flux problem associated with the incompressible conservation of mass in a 2D source less finite sized domain defined by four nodes, as shown in Figure 1.

Error creating thumbnail: File missing

Figure 1 Mass balance in 2 dimensions

Consider the flux problem (mass balance) through the domain, taking the average of the nodal velocities for each surface.

(2-3)


Now expand these velocities using a Taylor expansion, retaining up to second order terms. Write u (x,y) = u:

(2-4)


and similarly for the other two components of the velocity.

Substituting this back into the original flux balance equation gives, after simplification, the following stabilized form of the 2D mass balance equation:

(2-5)


Note that as the domain size tends to zero, i.e. 72px , the standard form of the incompressible mass conservation equation in 2D is recovered. The underlined terms in the equation provide the necessary stabilization to allow a standard Galerkin finite element discretization to be applied. They come from admitting that the standard form of the equations is an unreachable limit in the finite element discretization, i.e. by admitting that the element size cannot tend to zero, which is the basis for the finite element method. It also allows equal order interpolations of velocity and pressure to be used.

2.2.2 Stabilized Navier-Stokes equations

The Finite increment Calculus methodology presented above is used to formulate stabilized forms of the momentum balance and mass balance equations and the Neumann boundary conditions. The velocity and pressure fields of an incompressible fluid moving in a domain Ω Rd(d=2,3) can be described by the incompressible Navier Stokes equations:

(2-6)


Where 1 ≤ i, jd, ρ is the fluid density field, ui is the ith component of the velocity field u in the global reference system xi, p is the pressure field and sij is the viscous stress tensor defined by:

(2-7)


The stabilized FIC form of the governing differential equation (2-6) can be written as

(2-8)


(2-9)


Summation convention for repeated indices in products and derivatives is used unless otherwise specified. In above equations, terms and denote the residual of Eq. (2-6) , and , are the characteristic length distances, representing the dimensions of the finite domain where balance of mass and momentum is enforced. Details on obtaining the FIC stabilized equations and recommendation for the calculation of the stabilization terms can be found in Oñate 1998.

Let n be the unit outward normal to the boundary ∂Ω, split into two sets of disjoint components Γt, Γu where the Neumann and Dirichlet boundary conditions for the velocity are prescribed respectively. The boundary conditions for the stabilized problem to be considered are (Oñate 2004):

(2-10)


Where are the prescribed surface tractions and is the total stress tensor, defined as

(2-11)


Equations (2-8) - (2-10) constitute the starting point for deriving stabilized FEM for solving the incompressible Navier-Stokes equations. An interesting feature of the FIC formulation is that it allows using equal order interpolation for the velocity and pressure variables (García Espinosa 2003, Oñate 2004).

2.2.3 Stabilized integral forms

From the momentum equations, the following relations can be obtained (Oñate 2004)

(2-12)


Substituting the equation above into Eq. (2-9) and retaining only the terms involving the derivatives of with respect to , leads to the following alternative expression for the stabilized mass balance equation

(2-13)


The ’s in Eq. (2-13) when multiplied by the density are equivalent to the intrinsic time parameters, seen extensively in the stabilization literature. The interest of Eq. (2-13) is that it introduces the first space derivatives of the momentum equations into the mass balance equation. These terms have intrinsic good stability properties as explained next.

The weighted residual form of the momentum and mass balance equations is written as

(2-14)


where are generic weighting functions. Integrating by parts the residual terms in the above equations leads to the following weighted residual form of the momentum and mass balance equations:

(2-15)


We will neglect here onwards the third integral in Eq. (2-15) by assuming that is negligible on the boundaries. The deviatoric stresses and the pressure terms in the second integral of Eq. (2-15) are integrated by parts in the usual manner. The resulting momentum and mass balance equations are:

(2-16)


and

(2-17)


In the derivation of the viscous term in Eq. (2-16) we have used the following identity holding for incompressible fluids (prior to the integration by parts)

(2-18)


2.2.4 Convective and pressure gradient projections

The computation of the residual terms are simplified if we introduce the convective and pressure gradient projections and , respectively defined as

(2-19)


We can express the residual terms in Eq. (2-16) and Eq. (2-17) in terms of and , respectively which then become additional variables. The system of integral equations is now augmented in the necessary number by imposing that the residuals vanish (in average sense). This gives the final system of governing equations as:

(2-20)


Being i,j,k = 1,N and bi, wi the appropriate weighting functions.

2.2.5 Monolithic time integration scheme

In this section an implicit monolithic time integration scheme, based on a predictor corrector scheme for the integration of Eq. (2-20) is presented.

Let us first discretize in time the stabilized momentum Eq. (2-8), using the trapezoidal rule (or θ method) as (see Zienkiewicz 1995):

(2-21)


where superscripts n and θ refer to the time step and to the trapezoidal rule discretization parameter, respectively. For θ = 1 the standard backward Euler scheme is obtained, which has a temporal error of 0(t). The value θ = 0.5 gives a standard Crank Nicholson scheme, which is second order accurate in time 0(t2).

An implicit fractional step method can be simply derived by splitting Eq. (2-21) as follows:

(2-22)


On the other hand, substituting the last equation above into Eq. (2-9) and after some algebra leads to the following alternative mass balance equation

(2-23)


The weighted residual form of the above equations can be written as follows:

(2-24)


At this point, it is important to introduce the associated matrix structure corresponding to the variational discrete FEM form of Eq. (2-24):

(2-25)


Where U, P are the vectors of the nodal velocity and pressure fields, T is the vector of prescribed tractions and Π, C the vectors of convective and pressure gradient projections. Terms denoted by over-bar identify the intermediate velocity obtained from the fractional momentum equation.

The system of equations above includes an error due to the splitting of the momentum equation. This error can be eliminated by considering the analogous system of equations

(2-26)


Where i is the iteration counter of the monolithic scheme. Basically, in this final formulation, the convergence of the resulting monolithic uncoupled scheme is enforced by the first term of the second equation of Eq. (2-26) (see Soto 2001).

2.2.6 Compressible flows

In the previous sections the basics of the incompressible flow solver implemented in Tdyn has been introduced. The extension of that algorithm to compressible flows is straightforward.

Eq. (2-23) can be easily modified to take into account the compressibility of the flow. The resulting equation is (see M. Vázquez, 1999)

(2-27)


In the above equation the terms α and f depend on the compressibility law used.

2.3 Turbulence solvers

At high Reynolds numbers the flow will certainly be turbulent, and the resulting fluctuations in velocities need to be taken into account in the calculations. A process known as Reynolds averaging [3] is applied to the governing equations whereby the velocities, ui are split into mean and a fluctuating component, where the fluctuating component, ui’, is defined by:

(2-28)


In the expression above:

(2-29)



This leads to extra terms in the governing equations that can be written as a function of ‘Reynolds stresses’ tensor, defined in Cartesian coordinates as:

(2-30)



Since the process of Reynolds averaging has introduced extra terms into the governing equations, we need extra information to solve the system of equations. To relate these terms to the other flow variables, a model of the turbulence is required. A large number of turbulence models exist of varying complexity, from the simple algebraic models to those based on two partial differential equations. The more complex models have increased accuracy at the expense of longer computational time. It is therefore important to use the simplest model that gives satisfactory results.

Several turbulence models as Smagorinsky, k, k-ε, k-ω, k-kt and Spalart Allmaras have been implemented in Tdyn. The final form of the so-called Reynolds Averaged Navier Stokes Equations (RANSE) using these models is:

(2-31)


(2-32)


Where:


(2-33)


being μT the so-called eddy viscosity.

The theory behind the above mentioned models may be found in the references, but a basic outline of the three most representative models is given below.

2.3.1 Zero equation (algebraic) model: the Smagorinsky model

Zero equation models are the most basic turbulence models. They assume that the turbulence is generated and dissipated in the same place, and so neglect the diffusion and convection of the turbulence. They are based on the idea of turbulent viscosity, and prescribe a turbulence viscosity, νt, either by means of empirical equations or experiment.

The Smagorinsky turbulence model is based on the idea of large eddy simulations (LES) in which the coherent large-scale structures are modelled directly within the computational mesh, whilst the small scales are modelled with the concept of eddy viscosity [4]. The Reynolds stress is written in terms of the turbulence kinetic energy, k, and eddy viscosity as:

(2-34)


where

(2-35)


Smagorinsky proposed that the eddy viscosity depends on the mesh density and velocity gradients, and suggested the following expression:

(2-36)


where νT is the kinematic eddy viscosity, C is a constant of the order of 0.001, and he is the element size.

2.3.2 One-equation models: the kinetic energy model (k-model)

One-equation models attempt to model turbulent transport, by developing a differential equation for the transport of one of turbulent quantities. In the kinetic energy model, the velocity scale of the turbulence is taken as the square root of the turbulence kinetic energy, k. Kolmogorov and Prandtl independently suggested the following relationship between the eddy viscosity, this velocity scale, 24px , and length scale, L:

(2-37)


where

(2-38)


and CD is an empirical constant, usually taken as 1.0.

Manipulation of the Reynolds and momentum equations leads to a differential equation for k [1]. The only gap in this analysis is that left by the length scale, L. This has to be specified either from experiment, or empirical equation. In the analysis used here, it has been specified as 1% of the smallest mesh size. Clearly this is the largest downfall of the analysis, and many consider it insufficiently accurate [3]. However, it is more accurate than the zero-equation models and less computationally expensive than the more accurate 2-equation models, and so it can be a good compromise between computational expense and accuracy, depending on the problem.

2.3.3 Two-equation models: the k-ε model

In order to increase the accuracy of our turbulence modelling, it is therefore necessary to develop a second differential transport equation to provide a complete system of closed equations without the need for empirical relationships. The k-ε turbulence model develops two such differential transport equations: one for the turbulence kinetic energy, k, and a second for the turbulent dissipation, ε. As for the k-model, the k-ε model relies on the Prandtl-Kolmogorov expression for the eddy viscosity above. From dimensional arguments, the turbulent dissipation, can be written in terms of the turbulence kinetic energy and the turbulence length scale, and the eddy viscosity written in terms of k and ε


(2-39)


Where Cε and Cν are empirical constants, and are both taken to have a value of 0.09.

In a similar way to that of the k-model, differential transport equations can be formulated for k and ε [3], thus closing the system of equations, without having to empirically define any of the turbulent quantities.

Since this method directly models the transport of all of the turbulent quantities, it is the most accurate. However, it involves solving 2 differential equations and is so the most computationally expensive. It is therefore necessary to evaluate the importance of turbulence in the problem before a model is selected. In many cases the easiest way to do this may be by trying several methods and using the simplest which gives the most accurate results. If turbulence is a relatively small feature of the flow then it is not necessary to waste computational expense by modelling it with a 2-equation model. At the same time, a zero-equation model would inadequately model a problem with large areas of turbulence, and in many cases this will lead to instabilities in the simulation.

2.3.4 Implicit LES turbulence model

In recent years a significant progress has been carried out in the development of new turbulence models based on the fact that not the entire range of scales of the flow is interesting for the majority of engineering applications. In this type of applications information contained in "the large scales" of the flow is enough to analyze magnitudes of interest as velocity, temperature ... Therefore, the idea that the global flow behaviour can be correctly approximated without the necessity to approximate the smaller scales correctly, is seen by many authors as a possible great advance in the modelling of turbulence. This fact has originated the design of turbulence models that describe the interaction of small scales with large scales. These models are commonly known as Large Eddy Simulation models (LES).

Numerous applications have shown that an extension of the FIC method allows to model low and high Reynolds number flows. In the standard large eddy simulation, a filtering process is applied to the Navier Stokes Eq. (2-6). After the filtering, a new set of equations are obtained, variables of this new set of equations are the filtered velocities or also called large scale velocities. As a consequence of the filtering process a new term called the subgrid scale tensor appears into the momentum equation. The subgrid scale tensor is defined in function of the large scale velocities and the subscale velocities too. Then it is necessary to model this term in function only of the large scale velocities. Several models exist for the subgrid scale tensor, but basically all of them propose an explicit description of the subgrid scale, an analytic expression in term of large scale velocities. In conclusion, all of these models define the subgrid scale tensor as a new nonlinear viscous term.

It is our understanding that the stabilized FIC formulation, with an adequate evaluation of the characteristic lengths introduces the same effects of a LES model without giving an explicit expression of the subgrid scale tensor. All the effects related to turbulence modelling are included into the non-linear stabilization parameters.

2.3.5 Computation of the characteristic lengths

The computation of the stabilization parameters is a crucial issue as they affect both the stability and accuracy of the numerical solution. The different procedures to compute the stabilization parameters are typically based on the study of simplified forms of the stabilized equations. Contributions to this topic are reported in (Oñate 1998 and García Espinosa 2005). Despite the relevance of the problem there still lacks a general method to compute the stabilization parameters for all the range of flow situations.

Error creating thumbnail: File missing
Figure 2 Decomposition of the velocity for characteristic length evaluation

The application of the FIC/FEM formulation to convection-diffusion problems with sharp arbitrary gradients has shown that the stabilizing FIC terms can accurately capture the high gradient zones in the vicinity of the domain edges (boundary layers) as well as the sharp gradients appearing randomly in the interior of the domain (Oñate 1998). The FIC/FEM thus reproduces the best features of both, the so called transverse (cross-wind) dissipation or shock capturing methods.

The approach proposed in this work is based on a standard decomposition of the characteristic lengths for every component of the momentum equation as

(2-40)


Being α the projection of the characteristic length component in the direction of the velocity and β the projection in the direction of the gradient of every velocity component. The decomposition defined by Eq. 40 can be demonstrated to be unique if the characteristic lengths are understood as tensors written in a system of coordinates aligned with the principal curvature directions of the solution. Obviously, Eq. (2-40) is a simplification of that approach. However, it can be easily demonstrated that the variational discrete FEM form of the resulting momentum equations are equivalent using one or the other approach.

Then, the characteristic lengths are calculated as follows

(2-41)


Where lj are the maximum projections of the element on every coordinate axis (see Figure 3).

Error creating thumbnail: File missing
Figure 3 Calculation of li in a triangular element

and


(2-42)


As for the length parameters in the mass conservation equation, the simplest assumption has been taken.

The overall stabilization terms introduced by the FIC formulation above presented have the intrinsic capacity to ensure physically sound numerical solutions for a wide spectrum of Reynolds numbers without the need of introducing additional turbulence modelling terms.

2.4 Flow through porous media

The incompressible Navier-Stokes quations, in a given domain Ω and time interval (0,t) is given by Eq.(2-1). In the case of solids, small velocities can be considered and the term can be neglected. Therefore, assuming and incompressible flow (constant density) in a certain domain Ω and considering the mass conservation equation, the Navier-Stokes equations can be written as follows:

(2-43)


The general form of the Navier-Stokes equation is valid for the flow inside pores of a porous media, but its solution cannot be generalized to describe the flow in porous region. Therefore, the general form of the Navier-Stokes equation must be modified to describe the flow through porous media. To this aim, Darcy's law is used to describe the linear relation between the velocity and the gradient of pressure within the porous media. It defines the permeability resistance of the flow in a porous media as:

(2-44)


where is the porous domain, is the Darcy's law resistance matrix and the velocity vector. In the case of considering an homogeneous porous media, is a diagonal matrix with coefficients , being the permeability coefficient.

As usual, the Reynolds number is defined as:

(2-45)


being and a characteristic velocity and a characteristic length scale, respectively. In order to characterize the inertial effects, it is possible to define the Reynolds number associated to the pores as:

(2-46)


where is the characteristic pore size.

Whereas Darcy's law is reliable for values of , for larger values of it is necessary to consider a more general model, which accounts also for the inertial effects, in the form:

(2-47)


where is the inertial resistance matrix.

The modified Navier-Stokes equation in the whole domain results from considering the two source terms associated to the resistance induced by the porous medium (linear Darcy and inertial loss term). Hence, these source terms are added to the standard fluid flow momentum equation as follows:

(2-48)


Again, considering an homogeneous porous media, is a diagonal matrix with coefficients and is also a diagonal matrix. Therefore, a modified Darcy's resistance matrix should be used in Tdyn as follows:

(2-49)


being the identity matrix.

It should be noted that in laminar flows through porous media, the pressure is proportional to the velocity , and can be considered zero . Therefore, the Navier-Stokes momentum equation can be rewritten as:

(2-50)


Note that this momentum equation is solved by Tdyn in the case of solids, where the term vanishes due to small velocities. In the case that cannot be neglected in the modelization (i.e. high velocities), then Tdyn should solve the followimg momentum equation within a fluid instead of a solid:

(2-51)



3. Overlapping domain decomposition level set (fsurf module)

This section introduces one of the algorithms implemented in Tdyn for the analysis of free surface flows. The main innovation of this method is the application of domain decomposition concept in the statement of the problem, in order to increase accuracy in the capture of free surface as well as in the resolution of governing equations in the interface between the two fluids. Free surface capturing is based on the solution of a level set equation, while Navier Stokes equations are solved using the iterative monolithic predictor-corrector algorithm presented above, where the correction step is based on the imposition of the divergence free condition in the velocity field by means of the solution of a scalar equation for the pressure.

3.1 Governing equations

The velocity and pressure fields of two incompressible and immiscible fluids moving in the domain Ω Rd(d=2,3) can be described by the incompressible Navier Stokes equations for multiphase flows, also known as non-homogeneous incompressible Navier Stokes equations:



(3-1)


Where , is the fluid density field, is the ith component of the velocity field in the global reference system , is the pressure field and is the viscous stress tensor defined by

(3-2)


where is the dynamic viscosity.

Let be the part of the domain occupied by the fluid number 1 and let be the part of the domain occupied by fluid number 2. Therefore are two disjoint subdomains of . Therefore (see Figure 4)

(3-3)


Draft Casals 106883369-picture-x0000 t202.svg

where ‘int’ denotes the topological interior and the over bar indicates the topological adherence of a given set, for more details see [18]. The system in Eq. (3-1) must be completed with the necessary initial and boundary conditions, as shown below.

It is usual in the literature to consider that the first equation in Eq. (3-1) is equivalent to impose a divergence free velocity field, since the density is taken as a constant. However, in the case of multiphase incompressible flows, density cannot be consider constant in . Actually, it is possible to define fields as follows:

(3-4)


Let be a function (named Level Set function) defined as follows:

(3-5)


Where is the distance to the interface between the two fluids, denoted by , of the point in the time instant . From the above definition it is trivially obtained that:

(3-6)


Since the level set 0 identifies the free surface between the two fluids, the following relations can be obtained:

(3-7)


Where is the normal vector to the interface , oriented from fluid 1 to fluid 2 and is the curvature of the free surface. In order to obtain the above relations it has been assumed that function fulfils:

(3-8)


Therefore, it is possible to redefine density and viscosity as follows:

(3-9)


Let us write the density fields in terms of the level set function as

(3-10)


Then, density derivatives can be written as

(3-11)


Inserting the above relation into the first line of Eq. (3-1) gives

(3-12)


which gives as a result that the multiphase Navier Stokes problem is equivalent to solve the following system of equations:


(3-13)


coupled with the equation

(3-14)


Eq. (3-14) defines the transport of the level set function due to the velocity field obtained by solving Eq. (3-13).

As a conclusion, the free surface capturing problem can be described by the above equations. In this formulation, the interface between the two fluids is defined by the level 0 of .

Denoting prescribed values by an over-bar, the boundary conditions to be considered for the above presented problem are



(3-15)


Where the boundary of the domain has been split in three disjoint sets: where the Dirichlet and Neumann boundary conditions are imposed and where the Robin conditions for the velocity are set. In the above, vectors span the space tangent to . In a similar way, the boundary conditions for Eq. (3-14) are defined

(3-16)


Finally, the initial conditions of the problem are

(3-17)


Where defines the initial position of the free surface between the two fluids.

3.2 How to calculate a signed distance to the interface

Based on flow properties as density or viscosity, we can calculate an initial guess for as follows

(3-18)


Clearly, the level set function obtained from Eq. (3-18) is not a signed distance to . We need to reinitiate in order to guarantee that fulfils the definition. We use a technique based on the following property to reinitiate the level set function as a signed distance to . If is a signed distance function to then,

(3-19)


where denotes the Euclidian norm in .

We use Eq. (3-19) to recalculate . In case that Eq. (3-19) is not satisfied, then

(3-20)


The residual r in Eq. (3-20) can be understood as the time derivate of with respect to a pseudo-time , i.e.

(3-21)


Then, the stationary solutions of Eq. (3-21) (i.e. when ) satisfy Eq. (3-19). In summary, for a given time , we calculate as the stationary solution of the following hyperbolic problem.

(3-22)


The problem stated in Eq. (3-22) can be rewritten in a more convenient manner as

(3-23)


Since the level set values identify the free surface between the two fluids, the following relations can be obtained:

(3-24)


where is the normal vector to the interface , oriented from fluid 2 to fluid 1 and is the local curvature of the interface.

From equation Eq. (3-23) it can be easily shown that the reinitialization process begins from the interface and it propagates to the whole domain. This property is attractive from the computational point of view, since we are only interested in accurate values of in the region close to the interface. Then we only need to reach the steady state solution of Eq. (3-23) in a narrow band close to the interface as proposed in [13]. The reinitialization algorithm used in this work has been optimized using the concept of nodal levels described next.

Given a level set distribution , for every time step one can assign a level to the node based on the following rules:

  • A nodal point i of coordinates belongs to the level , if , and it is connected to at least one node j with
  • A nodal point i of coordinates belongs to the level , if , and it is connected to at least one node j with
  • A nodal point i of coordinates belongs to the level , if , and it is connected to at least one node of level
  • A nodal point i of coordinates belongs to the level , if , and it is connected to at least one node of level

Once the levels have been assigned to the mesh points, the reinitialization is performed in a narrow band of n levels around the interface. Eq. (3-23) is solved using a forward Euler scheme until the steady state in the n levels is achieved. k iterations with k > n are performed in such a way that for every iteration i = 1,…,k. The iterations are carried out only for those nodes j of the mesh with |lj| ≤ i.

Due to the evolution of the interface defined by Eq. (3-14), the level set function does not fulfil Eq. (3-19) after some time. It is therefore recommended to apply the reinitialization scheme described above at every time step.

3.3 Interfacial boundary conditions

At a moving interface the jump condition applies. For immiscible fluids we can write:

(3-25)


where is the coefficient of surface tension (a constant of the problem), is any unit vector tangent to the interface and defines the jump across the interface.

(3-26)


Taking into account that and using taking into account that , the second equation in Eq. 67 yields

(3-27)


From Eq. (3-27) we can conclude that , where , denotes the orthogonal subspace to . Then it is clear that

(3-28)


Integrating over any closed surface containing in both sides of Eq. (3-28) yields

(3-29)


Applying the Gauss theorem to the right hand side of Eq. (3-29) we can deduce that or equivalently

(3-30)


Introducing Eq. (3-30) into the first condition in Eq. (3-25) the following equivalent condition is obtained:

(3-31)


This form of the jump condition is very useful in the development of the method presented in the following sections.

In the classical level set formulation for multiphase flow problems [15] the jump condition Eq. (3-25) can be introduced into the momentum equation by adding an additional source term, i.e.

(3-32)


Where is a Dirac’s delta function on . Since the properties of the fluids change discontinuously across the interface, the direct solution of Eq. (3-32) has important numerical drawbacks: inaccurate resolution of the pressure at the interface, fluid mass losses, inaccurate interface location, etc. A common approach to overcome these difficulties is to smooth the discontinuous transition of the flow properties and the Dirac’s delta functions across the interface using of a smoothed Heaviside function. This function is usually expressed as:

(3-33)


where is the thickness of the transition area. Then a property is approximated as

(3-34)


and a Dirac’s delta function as

(3-35)


This approach also presents several deficiencies: the accuracy of the results depends on the ad hoc thickness of the transition area , the jump condition is not properly captured, the interface propagation velocity is not correctly calculated, etc.

Other schemes, such as the Ghost Cell method or lagrangian methods as the Particle FEM Method, attempt to overcome the problem of properties smoothing at the interface region. However, these methods have several drawbacks, such us limitations of conservative and convergence properties in some cases or an increase of the computational effort. As a conclusion, a method able to deal with a discontinuous transition of properties across the interface, the jump interface condition and computationally affordable for large models is required.

The overlapping domain decomposition method described in the following sections has been developed to overcome these difficulties.

3.4 Stabilized FIC-FEM formulation

The stabilized FIC form of the governing differential equations Eq. (3-13) and Eq. (3-14) is written as

(3-36)


The boundary conditions for the stabilized FIC problem are written as




(3-37)



The underlined terms in Eq. (3-36) and Eq. (3-37) introduce the necessary stabilization for the numerical solution of the Navier Stokes problem [2], [4], [6].

Note that terms , and denote the residuals of Eq. (3-13) and Eq. (3-14), i.e.

(3-38)


The characteristic lengths vectors and contain the dimensions of the finite space domain where the balance laws of mechanics are enforced. At the discrete level these dimensions are of the order of the element or grid dimension used for the computation. Details on obtaining the FIC stabilized equations and the recommendation for computing the characteristic length vectors can be found in [4]-[6].

3.5 Overlapping domain decomposition method

To overcome the drawbacks related to the discontinuity of fluid properties across the interface and to impose the interfacial boundary condition we split the domain into two overlapping subdomains. Based on this subdivision of the domain, we apply a Dirichlet-Neumann overlapping domain decomposition technique with appropriate boundary conditions in order to satisfying the interfacial condition.

Let be a finite element partition of domain the , where are element nodes, is the element spatial domain, are element shape functions and is the total number of elements in the partition.

We assume that satisfies the following approximation property:

(3-39)


for a fixed instant . Let us consider a domain decomposition of domain into three disjoint sub domains and in such a way that , , where are the elements of the finite element partition , such as and are the elements of the finite element partition such as . The geometrical domain decomposition is completed with

(3-40)


From this partition we define the two overlapping domains:

(3-41)


Some comments about the - partition are given next.

In order to simplify the notation we will omit the time dependency of domains in the rest of the section.

Let be the boundary of , then:

(3-42)


It has to be noted that contains an additional term that is not included into . This term comes from the presence of an interface inside . Since we are using a capturing technique, the position of the interface will not lay on mesh nodes, as usually happens in a tracking technique. Therefore some elements can be intersected by the interface. Then is defined as follows:

(3-43)


Note that is not coincident with , but the following condition is satisfied:

(3-44)


Summarizing, we have


Figure 5 is a sketch of the domain partition described above.

Error creating thumbnail: File missing

Figure 5 Geometrical domain decomposition



We have two restrictions for the definition of the boundary condition on  : fluid velocities must be compatible at the interface and the jump boundary condition Eq. (3-25) must be satisfied on . The domain decomposition technique chosen is of Dirichlet-Neumann type and it allows us to fulfil both restrictions.

Let us introduce a standard notation. We denote by a variable related to . For example u1 is the velocity field solution of the problem in Eq. (3-37), where the domain has been replaced by .

We apply the Dirichlet conditions on and the Neumann conditions on . For the boundary , we make use of the compatibility of velocities at the interface:

(3-45)


For the boundary we make use of the jump boundary condition. We are looking for a traction vector such that:

(3-46)


and must guarantee that the jump boundary condition Eq. (3-25) holds, that is to say:

(3-47)


Let us write the variational problem considering the domain decomposition above described.

Domain 1



(3-48)


Domain 2


(3-49)


An iterative strategy between the two domains is used to reach a converged global solution in the whole domain . It is expected that this global solution will satisfy both restrictions presented above. For this reason we define the following stop criteria:

(3-50)


The global velocity solution obtained from Eq. (3-49) is used as the convective velocity for the transport of the level set function, i.e.

(3-51)


Unfortunately there is not theoretical result that can ensure the convergence of this method. However our experience in applying this method to a wide range of problems involving moving interfaces has showed that the method is stable and robust.

An expected property of the method is its dependency with the mesh size around the interface. This issue is directly related with how good is approximated by , as it has been point out in property Eq. (3-44). A fine mesh close to the interface reduces significantly the amount of iterations needed to reach a converged global solution, as well as the accuracy of the velocities and the pressure at the interface.

This methodology can be viewed as a combination of domain decomposition and level set techniques. This justifies the name given to the new method: ODDLS (by Overlapping Domain Decomposition Level Set).

3.6 Discretization by the finite element method (FEM)

In this section we present the final discrete system of equations associated to problem Eq. (3-48) and Eq. (3-49) using the FEM method. Let us consider a uniform partition of the time interval of analysis , with time step size . We will denote by a superscript the time step at which the algorithmic solution is computed. We assume and are known. If , the trapezoidal rule applied to Eq. (3-48) and Eq. (3-49) consists of finding as the solution of the problem


(3-52)


where and .

This problem is nonlinear due to the convective term and the evolution of the free surface. Prior to the finite element discretization we linearize it using a Picard method, which leads to an Oseen problem for each iteration step. Several strategies can be adopted to deal with the two iterative algorithms involved in the ODDLS method: the overlapping domain decomposition iterative scheme and the linearization scheme (Picard). In our case, for each iteration step of the linearization scheme the domain decomposition scheme is also updated. This simultaneous iterative strategy requires to complete Eq. (3-50) with a stop criteria for the Picard iteration. The same iteration index is used for both schemes.

The adopted strategy reduces noteworthy the computational effort versus other nested iterative schemes. We denote by a superscript n the time step at which the algorithmic solution is computed and by a superscript j the iteration step of the domain decomposition scheme (which for a simultaneous iterative strategy will be the same as for the Picard iteration step). The form of the iterative scheme is as follows


(3-53)


The Galerkin approximation of Eq. (3-53) is straightforward and stable, thanks to the FIC stabilized formulation [2-7]. Equal polynomial order can be used for the approximation of the velocities and the pressure. Based on the finite element partition introduced in Eq. (3-39), let and be two finite dimensional conforming finite element spaces, being the maximum of the elements partition diameters.

Let be the finite element spaces for the test functions. The discretized form of Eq. 94 is



(3-54)


Remark

Updating of the level set equation is done once the convergence of the Navier-Stokes equations is obtained. Therefore the complete iteration loop is as follows:

Step 1. Solve equations (54) in .

Step 2. Solve equations (54) in .

Step 3. Check convergence on pressure and velocity fields. If it is satisfied, go to Step 4, otherwise go to Step 1.

Step 4. Solve equation (51).

Step 5. Check convergence on level set equation. If it is satisfied, advance to the next time step, otherwise go to Step 1.


4. Heat Transfer Solver (heatrans module)

4.1 Governing equations

Tdyn solves the transient Heat Transfer Equations in a given domain Ω:={ΩF U ΩS}(being ΩF the fluid domain and ΩSthe solid domain) and time interval (0, t):


(4-1)


where θ = θ (x, t) denotes the temperature field, ρS the (constant) solid density, kS the solid thermal conduction tensor, kF the fluid thermal conduction constant, CP the fluid specific heat constant, C the solid specific heat constant and qS and qF the solid and fluid, volumetric heat source distributions respectively. The above equations need to be combined with the following boundary conditions:



(4-2)



In the above equations, Γ := ∂Ω denotes the boundary of the domain Ω, with n the normal unit vector, θc is the temperature field on Γθ (the part of the boundary of Dirichlet type, or prescribed temperature type), fF the prescribed heat flux on ΓF (prescribed heat flux fluid boundary), fS the prescribed heat flux on ΓS (prescribed heat flux solid boundary) and θ0 the initial temperature field.

The spatial discretization of the heat transfer equations is done by means of the finite element method, while for the time discretization implicit first and second order schemes have been implemented.

4.2 Stabilized heat transfer equations

The Finite Increment Calculus theory presented above is also valid for the heat transfer balance equations Eq. (4-1). The stabilized form of the governing differential equations in 3 dimensions is written as follows:

(4-3)


Where


(4-4)


and the new boundary conditions are:



(4-5)



The stabilized Heat transfer balance equations are discretized in time in the standard way, to give the following equations:


(4-6)



4.3 Radiation models

Heat transfer by radiation can be taken into account within Tdyn by using one of the following radiation models.

4.3.1 P-1 radiation model

The energy conservation equation in terms of the temperature , can be written as:

(4-7)


Being the heat capacity, the thermal conductivity, the heat reaction term, the heat source term, and the viscous dissipation function given by:

(4-8)


Where is the viscous stress tensor of the fluid.

The FEM formulation for the temperature equation can be written as:

(4-9)
(4-10)


Where is the total heat/sink source term, including viscous dissipation and rate of work for volume change, and is the heat flux at the walls.

The so called P-N approximation reduces the integral equations of radiative transfer in media to differential equations by approximating the transfer relations with a finite set of moment equations. The starting point in the following equation for the variation of intensity of radiation (W/m2·sr) at a position , along the direction [20]:

(4-11)


Where is the absorption coefficient and is the dispersion coefficient for the given wave-length , and the sub-index refers to the black body. If the medium is assumed gray, with uniform scattering and absorption coefficients, and to scatter isotropically, above equation can be integrated over all , to give:

(4-12)


Where the first term at the right hand side represents the gain of intensity of radiation by emission, the second term the losses by absorption and scattering, and the third term the gain by scattering into direction.

To develop the P-N method, the intensity is expanded in an orthogonal series of spherical harmonics. The P-1 approximation is obtained by retaining the first two terms of the series, and gives [20]:

(4-13)


In the above equation and represents the zeroth and first moments of the radiation intensity:

(4-14)
(4-15)


Where is the radiative heat flux vector, and is the incident radiation. Therefore, the P-1 approximation yields:

(4-16)


The first term in the above equation, represents the net radiative energy supplied per unit volume.

Furthermore, P-1 model gives a following additional relation between and :

(4-17)


Combining above relations, the resulting transport equation for is:

(4-18)


Where is the Stefan-Boltzmann constant (5.672 ·10-8  W/m2·K4), is the emissivity of the material, and the black body radiant energy has been evaluated using:

(4-19)


The FEM formulation for the incident radiation equation can be written as:

(4-20)


Where is the flux of the incident radiation al the walls.

From the solution of the previous equation, the heat source term that must be added to the energy equation (temperature) is calculated as follows:

(4-21)


In the implemented model the emissivity is assumed to be equal to the absorptivity , and therefore above equations can be written as:

(4-22)
(4-23)


The boundary condition for the incident radiation equation at the walls is given by (assuming an inwards normal vector ):

(4-24)


Where can be calculated, assuming that walls are diffuse gray surfaces, as [21]:

(4-25)


Where is the wall emissivity, and is the wall temperature.

Remark: It is usually assumed that the emissivity at the inlet and outlets is 1 (black body).

The final FEM formulation for the incident radiation equation can be written as:

(4-26)



4.3.2 Surface to surface (S2S) radiation model

The surface-to-surface (S2S) radiation model can be used to account for the radiation exchange in an enclosure of gray-diffuse surfaces. This energy exchange depends on:

  • Surfaces size
  • Separation distance
  • Surfaces orientation

All these factors are casted together into a geometric function called the view factor that can be computed as follows:

(4-27)


where , when i,j are blocking surfaces and when i,j are non-blocking surfaces.

The S2S model main assumptions are:

  • All surfaces are gray and diffuse. According to this, if a certain amount of radiation is incident on a surface, then a fraction is reflected, a fraction is absorbed, and a fraction is transmitted.
  • Absorption, emission and scattering of radiation by the medium can be ignored (non-participating media)
  • Emissivity and absorptivity are independent of the radiation wave length
  • Emissivity is taken to be identical to absorptivity
  • Reflectivity is independent of the outgoing or the incoming directions

In most applications of the S2S model the surfaces are opaque to thermal radiation (in the infrared spectrum). In such a situation the following relations are fulfilled:

and the only independent parameter characteristic of the material is the emissivity .

When the S2S model is used, it is also possible to define a “partial enclosure” that allows disabling the view factor calculation for walls with negligible emission/absorption or walls that have uniform temperature.

The energy flux leaving a given surface is composed of directly emitted and reflected energy. Hence, the total energy flux leaving the surface ( ) has two contributions, one depending on its own temperature and emissivity, and another one depending on the energy flux incident on the surface from the surroundings.

(4-28)


The energy flux incident from the surroundings is given by:

(4-29)


where N is the number of surface clusters (i.e. element patches) considered. Hence, the total energy flux leaving a given surface can be expressed as follows:

(4-30)


(4-31)


This can be rewritten in matrix form as:

(4-32)


where is a NxN matrix, is the radiosity vector, and is the emissive power.

In the above equations, and the material dependent property are calculated for each patch by averaging the element’s values as follows:

(4-33)


Finally, equation 5 can be solved to obtain the outgoing fluxes . And the net heat fluxes can be obtained as follows:

(4-34)


where Eq. (3) has been used to express the incident fluxes .

The solution process outlined above provides the net heat flux at the element/patch level. This can be applied as boundary condition of the boundary value problem to be solved by the finite elements method after proper transformation of element/patch values to nodal values.


5. Species Advection Solver (advect module)

5.1 Governing equations

Tdyn solves the transient Species Advection Equations in a given fluid domain ΩF for a number of different species, and time interval (0, t):

(5-1)


where φ = φ (x, t) denotes the concentration of species field, c the decantation coefficient, kS the total diffusion coefficient (including turbulent effects) and qP a volumetric source. The above equations need to be combined with the standard boundary conditions.

As in the previous examples, the spatial discretization of the Species Advection equations has been done by means of the finite element method, while for the time discretization implicit first and second order schemes have been implemented. Problems with dominating convection are stabilized by the Finite Calculus (FIC) method, presented above.


6. References

[1] R. Codina "A discontinuity capturing crosswind dissipation for the finite element solution of the convection diffusion equation", Comp. Meth. Appl. Mech. Eng., pages 110:325-342, 1993.

[2] J. García, "A Finite Element Method for the Hydrodynamic Analysis of Naval Structures" (in Spanish), Ph.D. Thesis, Univ. Politécnica de Cataluña, Barcelona, December 1999.

[3] C. Hirsch "Numerical computation of internal and external flows", John Wiley and Sons Ltd., Chichester, UK, 1991.

[4] C. Kleinstreuer "Engineering Fluid Dynamics, An Interdisciplinary Systems Approach", Cambridge University Press, Cambridge, UK, 1997.

[5] E. Oñate "A stabilized finite element method for incompressible viscous flows using a finite increment calculus formulation. Research report No. 150", CIMNE, Barcelona, January 1999.

[6] García, J., Oñate, E., Sierra, H., Sacco, C. and Idelsohn, S. “A Stabilized Numerical Method for Analysis of Ship Hydrodynamics”. Proceedings Eccomas Conference on CFD, 7-11 September 1998, Athens, John Wiley, 1998.

[7] E. Oñate, M. Manzan, "Stabilization techniques for finite element analysis of convection-diffusion problems", Publication CIMNE No. 183, Barcelona, February 2000.

[8] O.C. Zienkiewicz, T.L.Taylor "The finite element method". McGrawHill Book Company, Volume 1, Maidenhead, UK, 1989.

[9] E. Oñate, J. García and S. Idelsohn, “On the stabilisation of numerical solutions of advective-diffusive transport and fluid flow problems”. Comp.Meth. Appl. Mech. Engng, 5, 233-267, 1998.

[10] J.E. Bardina, P.G. Huang and T.J. Coakley, “Turbulence Modelling Validation, Testing, and Development”. NASA technical Memorandum 110446, Moffett Field, California, April 1997.

[11] D.C. Wilcox "Turbulence Modelling for CFD". DCW industries, Inc. 5354 Palm Drive, La Cañada, California, 1993.

[12] M. Vázquez, R. Codina and O.C. Zienkiewicz "Numerical modelling of Compressible Laminar and Turbulent Flow: The CBS Algorithm". Monograph CIMNE Nº 50, Barcelona, April 1999.

[13] J. García-Espinosa and E. Oñate. “An Unstructured Finite Element Solver for Ship Hydrodynamics”. Jnl. Appl. Mech. Vol. 70: 18-26. (2003).

[14] E. Oñate, J. García-Espinosa y S. Idelsohn. “Ship Hydrodynamics”. Encyclopedia of Computational Mechanics. Eds. E. Stein, R. De Borst, T.J.R. Hughes. John Wiley & Sons (2004).

[15] O.C. Zienkiewicz and Codina, R., “A general algorithm for compressible and incompressible flow. Part I, The Split, Characteristic Based Scheme”, Int. Journ. Num. Meth. Fluids, 20, 869-885 (1995).

[16] O. Soto, R. Lohner, J Cebral. An Implicit Monolithic Time Accurate Finite Element Scheme for Incompressible Flow Problems. 15th AIAA Computational Fluid Dynamics Conference. Anaheim (USA) 2001.

[17] J. García-Espinosa, E. Oñate and J. Bloch Helmers. “Advances in the Finite Element Formulation for Naval Hydrodynamics Problems”. International Conference on Computational Methods in Marine Engineering (Marine 2005). June 2005. Oslo (Norway).

[18] J. García-Espinosa, A. Valls and E. Oñate. “ODDLS: A new unstructured mesh finite element method for the analysis of free surface flow problems”. Int. Jnl. Num. Meth. Engng. 76(9): 1297-1327 (2008).

[20] R. Siegel and J.R. Howell. “Thermal radiation heat transfer”. Hemisphere Publishing Corporation, Washington DC, 1992.

[21] M.F. Modest. “Radiative heat transfer”. McGraw Hill, 2003.

[22] J.H. Lienhard. “A heat transfer text book”. Phlogiston Press, Cambridge 2008.

Back to Top

Document information

Published on 24/10/18
Submitted on 24/10/18

Licence: CC BY-NC-SA license

Categories

Software manuals

Document Score

0

Views 0
Recommendations 0