This invention relates to a system and method for modelling internal and/or boundary conditions, as for example to model or determine fluid flows in, around and/or across objects or structures and, in particular, for both compressible and non-compressible liquids.
Computer methods and algorithms can be used to analyze and solve complex systems involving various forms of fluid dynamics having inputted boundary conditions. For example, computer modelling may allow a user to simulate the flow of air and other gases over an object or model the flow of fluid through a pipe. Computational fluid dynamics (CFD) is often used with high-speed computers to simulate the interaction of one or more fluids over a surface of an object defined by certain boundary conditions. Typical methods involve large systems of equations and complex computer modelling and include traditional finite difference methodology, cell-centered finite volume methodology and vertex-centered finite volume methodology.
Traditional Finite Difference Methodology (TFDM) requires a structured grid system, a rectangular domain and uniformed grid spacing. TFDM cannot be applied on a mesh system with triangular cells (elements). Rather, cells must be quadrilateral (2D) and cannot be polygonal (i.e., number of sides=4). In 3D, cells must be rectangular cubes.
TFDM typically requires the use of coordinate transformations (i.e., grid generation) for curvilinear domains, to map the physical domain to a suitable computational domain. In addition, there may be a need to use a multiblock scheme if the physical domain is too complicated. Partial differential equations (PDEs) must be transformed to the computational domain.
Traditional Finite Difference Methodology is typically difficult to deal with in complicated grid arrangements. Special treatment may be required near boundaries of the domain (e.g., in staggered grid systems or for higher-order schemes). Even with coordinate transformations, highly irregular domains may create serious difficulties for accuracy and convergence due to numerical discontinuities in the transformation metrics. Cell-Centered Finite Volume Methodology/Vertex-Centered Finite Volume Methodology
Volume Methodology (VCFVM) achieve greater flexibility in grid arrangement. Cells can be polygonal (e.g., triangular) in 2 Dimensional space or polyhedral (e.g., tetrahedral, prismatic) in 3 Dimensional space. With CCFVM/VCFVM there is no need for coordinate transformations to a computational domain. Rather, all calculations can be done in physical space. As well, grid smoothness is not an issue. Cell-centered schemes evaluate the dependent variable at the centroid of each cell. Vertex-centered (or vertex-based) schemes evaluate the dependent variable at the vertices of each cell.
With CCFVM/VCFVM, inaccuracies due to calculation of fluxes across cell faces may be difficult to deal with. In addition, there are difficulties associated with treatment near boundaries for higher-order schemes, and accuracy and convergence issues associated with cells that are severely skewed or have a high aspect ratio.
Accordingly, current computer modelling schemes are limited in the form of objects they can model and require different models and algorithms for different fluid applications, such as between compressible and non-compressible fluids.
It is an object of this invention to provide a better method and system for determining and/or modelling boundary conditions, as for example, to determine or compute fluid dynamics of compressible and non-compressible liquids in, around or across objects. In one particular embodiment, it is an object of this invention to provide a better method and system to compute the fluid dynamics of compressible liquids in aeronautical application, the aeronautical applications having certain boundary conditions.
Furthermore, another object of this invention to provide a better method and system for computing the fluid dynamics of non-compressible liquids within a pipe or transport mechanism, the pipe or transport mechanism having certain boundary conditions.
The inventors have appreciated that if the solution domain can be discretized into a smooth structured grid, the FDM is better than the FVM (or the FEM) due to its efficiency. In particular, an FDM method requires less memory and has better stability. Furthermore, a system and method relying on an FDM has better convergence properties.
In one aspect, the present invention resides in a system for modelling internal and/or boundary conditions and more preferably, by determining fluid flow of compressible and non-compressible liquids, as for example, in, around or across an object or structure.
In one cell-centered finite different approach described hereafter lies in the discovery and development of a unified scheme for the numerical solution of Partial Differential Equations (PDEs), irrespective of their physical origin, which is solely based on the finite difference method, but is implemented in an innovative fashion that allows the use of an arbitrary mesh topology. Thus, the CCFDM enjoys the simplicity and strength of the traditional FDM, and the power and flexibility of the FVM and FEM.
The resulting program may evolve into entirely new multiphysics computational continuum mechanics software, or replace the core numerical processing component of some existing software packages with a much simpler and more efficient algorithm which permits a natural and seamless coupling of fluid and solid interaction, allows for a more precise analysis of accuracy and produces faster, more accurate and more reliable results.
The system may include input means for receiving a model of an object defined as a plurality of cells having a plurality of nodes P and a processor coupled to a memory. The processor may be configured for implementing the steps of discretizing a partial differential equation corresponding to the received model of the object; for each node P in the plurality of nodes P: (i) locating all neighbouring cells that share the node P, each of the neighbouring cells having a cell center; (ii) approximating the partial differential equation at the cell center of each of the neighbouring cells using the discretized partial differential equation; and (iii) updating a solution of the partial differential equation at the node P by using the approximated discretized partial differential equation at all the neighbouring cell centers; and iteratively updating the solution for all the nodes P from an initial guess until a convergence criterion is satisfied.
In another aspect, the present invention resides in a computer-implemented method for approximating a partial differential equation for determining fluid flow of compressible and non-compressible liquids. The method comprising: discretizing the partial differential equation; receiving a model of the object defined as a plurality of cells having a plurality of nodes P; for each node P in the plurality of nodes P: (i) locating all neighbouring cells that share the node P, each of the neighbouring cells having a cell center; (ii) approximating the partial differential equation at the cell center of each of the neighbouring cells using the discretized partial differential equation; and (iii) updating a solution of the partial differential equation at the node P by using the approximated discretized partial differential equation at all the neighbouring cell centers; and iteratively updating the solution for all the nodes P from an initial guess until a convergence criterion is satisfied.
In yet another aspect, the present invention resides in a computer readable medium having instructions stored thereon that when executed by a computer implement a method for approximating a partial differential equation for determining fluid flow of compressible and non-compressible liquids. The method may include discretizing the partial differential equation; receiving a model of an object defined as a plurality of cells having a plurality of nodes P; for each node P in the plurality of nodes P: (i) locating all neighbouring cells that share the node P, each of the neighbouring cells having a cell center; (ii) approximating the partial differential equation at the cell center of each of the neighbouring cells using the discretized partial differential equation; and (iii) updating a solution of the partial differential equation at the node P by using the approximated discretized partial differential equation at all the neighbouring cell centers; and iteratively updating the solution for all the nodes P from an initial guess until a convergence criterion is satisfied.
Further and other features of the invention will be apparent to those skilled in the art from the following detailed description of the embodiments thereof.
Reference may now be had to the following detailed description taken together with the accompanying drawings, in which:
The computer system 10 further comprises a random access memory (RAM) or other dynamic storage device 25 (referred to herein as main memory), coupled to the bus 12 for storing information and instructions to be executed by processor 16. Main memory 25 may also be used for storing temporary variables or other intermediate information during execution of instructions by the processor 16. The computer system 10 may also include a read only memory (ROM) and/or other static storage device 26 coupled to the bus 12 for storing static information and instructions used by the processor 16.
A data storage device 27 such as a magnetic disk or optical disc and its corresponding drive may also be coupled to the computer system 10 for storing information and instructions. The computer system 10 can also be coupled to a second I/O bus 18 via an I/O interface 14. A plurality of I/O devices may be coupled to the I/O bus 18, including a display device 24, an input device (e.g., an alphanumeric input device 23 and/or a cursor control device 22), and the like. A communication device 21 is used for accessing other computers (servers or clients) via an external data network (not shown). The communication device 21 may comprise a modem, a network interface card, or other well-known interface devices, such as those used for coupling to Ethernet, token ring, or other types of networks.
In a preferred embodiment, computer system 10 is used in conjunction with to model the fluid dynamics of an aircraft landing gear through the air, such as during aircraft landing and in flight. In use of the system 10, a computer-aided designed (CAD) representation of the aircraft landing gear and supporting structure is inserted into the model.
Airflow, as a compressible fluid, may be constrained by initial conditions entered as part of the model or taken from sensors from real-world applications. The airflow may be modeled as a partial differential equation, as known in the art of fluid dynamics. For example, data from temperature and speed sensors may be included in the model, taken from real-world applications.
Once the boundary conditions and initial conditions have been inputted, the profile is input into the system 10 of the present invention and when the solution converges to a steady state, the solution is outputted. The solution may describe the flow of compressible fluid for the specific boundary conditions and initial conditions inputted into the model.
The system advantageously allows a user to determine and analyze the turbulence in the compressible fluid caused by the different aircraft components passing through the airflow. The steady state output can be used to identify and analyze different flow regimes, such as laminar flow and turbulent flow including eddies, vortices and other flow instabilities. In addition, the behaviour of the fluid about the boundary layer is also outputted. In particular, the noise of the flow over the aircraft component can be modeled including the frequency of any noise created.
It should be understood that the system 10 is capable of modeling any type of compressible fluid through a wide variety of applications, as further discussed below. Besides modelling the air passing over an aircraft component, other applications may include engine design, wind-tunnel effects and other airflow applications. In addition, the compressible fluid may be in a confined space, such as within a tunnel, or in a non-confined space, such as in flight.
The above-described computer system 10 can also be used to model the fluid dynamics of a non-compressible fluid through a defined space. For example, in a preferred embodiment, the computer system 10 can model a fluid such as water through a pipe or other transport mechanism.
As with the compressible embodiment, described above, a computer-aided designed (CAD) representation of the pipe is inserted into the simulation. Typical boundary conditions may be represented in the model.
The system 10 then models the flow of the non-compressible fluid, i.e. water or gas, through the pipe in successive stages. The non-compressible fluid may be further defined by its initial conditions or parameters. For example, the non-compressible fluid may include particulate matter and have a specific viscosity. The non-compressible fluid may be constrained by initial conditions entered as part of the computer simulation or taken from sensors from real-world applications. These parameters may be inserted into the partial differential equation (PDE) used to model the compressible fluid flow. For example, flow and temperature data from real-world flow-analysis may be inputted automatically into the simulation.
Once the solution of the system has converged to a steady state, the solution is outputted. The output data transformed into a usable format for describing the flow of the non-compressible fluid for the specific boundary conditions and initial conditions inputted into the simulation.
The solution to the simulation advantageously allows a user to determine and analyze the turbulence in the non-compressible fluid caused by the boundary conditions (i.e. the pipe). The steady state output can be used to identify and analyze different flow regimes, such as laminar flow and turbulent flow including eddies, vortices and other flow instabilities. In addition, the behaviour of the fluid about the boundary layer is also outputted. Furthermore, the simulation may model the aggregate (i.e. the particulate matter) in the fluid and the Reynolds Number (Re), as would be known to person skilled in the art.
It should be understood that the system 10 is capable of modeling any type of non-compressible fluid through a wide variety of applications. Besides simulating the flow of fluid passing through a pipe, other applications may include oil and gas applications and hydraulics.
A improved method of solving partial differential equations (PDEs) in accordance with the present invention is now described.
The TFDM requires that the PDE be applied at the node P. The TFDM is configured to use finite difference approximations for the derivatives in the PDE to “discretize” the equation.
For the CFDM also shown in
For the CCFVM also shown in
For the VCFVM also shown in
When referring to a perfect solution, a problem or grid configuration is selected which has an absolute mathematical solution. The applicant's method is applied to the same problem or grid and then the results of the two calculations are compared.
To implement the system of the present invention, an improved Cell-Centered Finite Difference Method (CCFDM) has been proposed.
To illustrate the applicant's new numerical approximation process, in one example, a given Partial Differential Equation (PDE), or system of PDEs to be solved on a mesh arrangement containing elements (or cells), is shown in
For example, by examining the differencing stencil in cell #1, the distances from cc1 to e and w are shown as not equal. Similarly, the distances from cc1 to s and n are not equal. This inequality will degrade the accuracy of any central difference formula about the point cc1. To overcome this problem, 1D mappings are used from x to ξ and from y to η such that the line segment ‘w-cc1-e’ is mapped to a line segment −1≦ξ≦1 where cc1 is mapped to ξ=0. A similar mapping is used to map the line segment ‘s-cc1-n’ to −1≦η≦1, as is shown in
The PDE, which will be applied at the cell centroid cc1, must also be transformed to the computational space. Consider, for example, the model elliptic equation (Poisson eqn.):
Under the 1D mappings x=x(ξ), y=y(η), this equation transforms to
If one uses 3-point central differencing to approximate the partial derivatives in this equation, then the resulting difference equation can be written as:
a
cc
T
cc
=a
w
T
w
a
e
T
e
+a
s
T
s
+a
n
T
n
−f
cc;
where the coefficients are expressed in terms of the physical Cartesian coordinates of the w, e, s and n points. This equation can be solved iteratively for the value of T at the cell centroid, assuming we have previous iteration values for Tw, TeTs and Tn.
Step 1: Create a mesh for the region of interest. Label all nodes N0, N1, N2, etc. (
Step 2: Select any node in the mesh, and determine the cells sharing that node. For example, in the diagram below, P is a node in the solid region and Q is a node in the fluid region. The cells surrounding P are P-N1-N4, P-N4-N6, P-N6-N7-N8-N9, etc. (as shown in
Step 3: For each cell surrounding P (or Q), determine the coordinates of the cell centroids cc1, cc2, etc. (
Step 4: Within each cell surrounding P (or Q), create a stencil centred at the cell centroid with arms parallel to the x, y, coordinate directions defined by the fixed reference frame, intersecting the cell faces at points w, e, s and n. For example, for node P refer to the cell formed by nodes P-N13-N1 with cell centre cc1. For node Q refer to the cell formed by nodes Q-N17-N24-N25. As an alternative to using cell centroids in Steps 3 and 4, it is possible to determine the coordinates of the point cc′ in the cell which has the property that the length of the line segments w-cc′ and cc′-e are equal and the length of the line segments s-cc′ and cc′-n are equal (
Step 5: For each cell surrounding P (or Q), determine the coordinates of the face intersection points w, c, s and n.
Step 6: Repeat Steps 2-5 for all nodes in the mesh.
Step 7: Select a node P in the mesh at which the dependent variable (T) is to be evaluated, and collect all the cells surrounding P. This node P may be in the solid region, in the fluid region, or on the interface boundary curve.
Step 8: For each cell surrounding node P, apply the appropriate mathematical equation (e.g., PDE for solids, or PDE for fluids), defined by the medium in which the cell lies, at the cell centre. Approximate the continuous derivatives in the mathematical equations by standard finite difference formulae, applied on the stencils created in Step 4, to formulate a discrete approximation to the continuous equations. For each cell, this will result in a finite difference equation of the form
a
cc
T
cc
+a
w
T
w
+a
e
T
e
+a
s
T
s
+a
n
T
n
=S
cc (1)
if the cell is a solid cell, and of the same mathematical form
a
cc
T
cc
+a
w
T
w
+a
e
T
e
+a
s
T
s
+a
n
T
n
=S
cc (1)
if the cell is a fluid cell. In these equations the subscripts cc, w, etc., refer to the cell centre, face intersection point w, etc. The coefficients acc, aw, ac, as, an, and the source term Scc in equations (1) and (2) are not the same. These quantities depend on the nature of the continuous model equation (i.e., whether describing the solid motion or the fluid motion), the differencing scheme used, the cell topology and the coordinates of the face intersection points. Thus, in particular, the physical attributes of the medium, such as thermal conductivity, density, Young's modulus, Poisson's Ratio or modulus of elasticity for a solid cell, or such as kinematic viscosity, density, thermal conductivity or specific heat for a fluid cell, are embedded in these coefficients. From the computer's perspective, for each cell these coefficients are fixed constants and the solution process is identical, regardless of whether the cell is solid or fluid.
Step 9: The quantities Tw, Te, Ts and Tn in equation (1) or (2) are approximated using an appropriate interpolation scheme based on neighbouring nodal and/or centroid values. These terms are taken to the right-hand side of the equation, and equation (1) or (2) is now approximated by
a
cc
T
cc
=S
cc
−a
w
T
w
*−a
e
T
e
*−a
s
T
s
*−a
n
T
n* (3)
where the superscript * refers to the approximate value obtained from the interpolation above.
Step 10: Equation (3) is solved for the quantity Tcc:
Step 11: Repeat Steps 8-10 for each cell surrounding P, obtaining the value of T at all surrounding cell centres.
Step 12: Determine the value of T at node P by interpolation of the surrounding cell centre values.
Step 13: Select a new node P in the mesh and repeat Steps 8-12. Continue until all nodes in the mesh have been updated. This completes one sweep of the mesh.
The solution process described above] is iterative. Nodal values are repeatedly updated until some prescribed convergence criterion is satisfied.
The present system thus provides a preferred partial differential equations procedure shown in the process algorithm of
a. find all the cells that share the current node (i.e. node P).
b. for each one of these cells;
i. calculate the cc coordinates, and the coordinates of w, s, e and n intersections.
ii. calculate Tc by weighted averaging between the two cc's that share e (i.e. cc1 and cc2). Similarly, evaluate Tn, Tw and Ts.
iii. evaluate Tcc from the discretized CCFDM form of the model equation.
c. update node P by weighted averaging from all adjacent cell centres.
The calculations start with an initial guess at P, which is then updated iteratively until the convergence criterion is satisfied.
In
Different meshes are shown for the unit square. In
A second example was conducted with a coarse mesh and fine mesh for a Poisson equation on a unit disk with Dirichlet boundary conditions. The coarse mesh is shown in FIG. 10A and the fine mesh is shown in
When run, the results were compared to the exact solution. In particular, the relative error (RE) and root mean square error (RMSE) for the above example is shown in Table 1:
The third example was conducted on a square with Dirichlet and Neumann boundary conditions according to the following equations:
As shown, CCFDM and TFDM provide similar numerical approximations.
In
In
In particular, CCFDM may be used to solve both compressible fluids and non-compressible fluids in the same equation.
The extension of the CCFDM to 3-dimensional problems is straightforward. Consider, for example, the tetrahedral cell shown in
For 3 Dimensional problems, the preferred procedure is as follows:
1. Given the coordinates of A, B and C, calculate the coordinates of the centroid cc of the cell.
2. Draw a line through cc parallel to the z-axis, extending it until it intersects two faces of the cell, at points n (on face ABC) and s (on face OAB) in the figure. Determine the coordinates of n and s.
3. Draw a line through cc parallel to the y-axis, extending it until it intersects two faces of the cell, at points w (on face OCA) and e (on face ABC) in the figure. Determine the coordinates of w and e.
4. Draw a line through cc parallel to the x-axis, extending it until it intersects two faces of the cell, at points f (on face ABC) and b (on face OBC) in the figure. Determine the coordinates of f and b.
5. Use three 1D mappings to map the non-uniform stencil in the physical domain to a computational stencil which has uniform spacing in each direction.
6. Apply the appropriate finite difference formulas at the cell centroid to discretize the governing PDEs.
7. Use interpolation formulae to evaluate the dependent variables at the points n, s, w, e, f and b.
8. Use the values obtained in #7 and the discretized equations in #6 to determine the values of the dependent variables at the cell centroid.
To determine the solution at a node in 3D space, all cells that share that node are first identified. The above procedure is applied to each of these cells to determine the values at the centroids of these cells. Then, a weighted average of the cell centroid values can be used to determine the nodal value.
Embodiments of the invention may include various steps as set forth above. While described in a particular order, it should be understood that a different order may be taken, as would be understood by a person skilled in the art. Furthermore, the steps may be embodied in machine-executable instructions. The instructions can be used to cause a general-purpose or special-purpose processor to perform certain steps. Alternatively, these steps may be performed by specific hardware components that contain hardwired logic for performing the steps, or by any combination of programmed computer components and custom hardware components.
Elements of the present invention may also be provided as a machine-readable medium for storing the machine-executable instructions. The machine-readable medium may include, but is not limited to, floppy diskettes, optical disks, CD-ROMs, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, magnetic or optical cards, propagation media or other type of media/machine-readable medium suitable for storing electronic instructions. For example, the present invention may be downloaded as a computer program which may be transferred from a remote computer (e.g., a server) to a requesting computer (e.g., a client) by way of data signals embodied in a carrier wave or other propagation medium via a communication link (e.g., a modem or network connection).
As well, the procedure described above can be implemented on any arbitrary cell topology, ie., any polyhedral shape, and any combination of cell shapes, referred to as hybrid meshes.
The CCFDM method described above is designed to be applicable to a number of physical problems that can be mathematically modeled by partial differential equations with associated initial conditions (for time-dependent problems) and/or boundary conditions. These include, but are not limited to providing output data and/or the manual or automated computer modelling and/or control of at least the following potential applications:
Although this disclosure has described and illustrated certain preferred embodiments of the invention, it is also to be understood that the invention is not restricted to these particular embodiments rather, the invention includes all embodiments which are functional, or mechanical equivalents of the specific embodiments and features that have been described and illustrated herein. Furthermore, the various features and embodiments of the invention may be combined or used in conjunction with other features and embodiments of the invention as described and illustrated herein. The scope of the claims should not be limited to the preferred embodiments set forth in the examples, but should be given the broadest interpretation consistent with the description as a whole.
As used herein, the aforementioned acronyms shall have the following meanings:
This application claims the benefit under 35 USC §119(e) to U.S. Provisional Application No. 61/457,589, filed on Apr. 26, 2011, the contents of which are hereby incorporated by reference in their entirety.
Number | Date | Country | |
---|---|---|---|
61457589 | Apr 2011 | US |