Search arXiv⌕ Search

arXiv subjects

Johan Roenby

Publications and source records attributed to Johan Roenby.

11 recordsLinked to original sources

Consistent interfacial flow numerics - Part I: The gravity force term

The OpenFOAM solver interFoam for incompressible two-phase flows combines the single-phase PISO/PIMPLE algorithm for the pressure-velocity coupling with an interface advection step. It relies on the standard finite volume discretisation of the momentum equation, which assumes smooth fields, but across a water-air interface the density jumps by a factor of about 1000. The geometric Volume-of-Fluid method isoAdvector, used in interIsoFoam, made the advection step consistent with a sharp interface, but spurious velocities near it remain due to the momentum discretisation. This series revisits it term by term. Here we treat the gravity term, which acts only at the interface and depends on the local interface height. Both solvers crudely assign this height using the face centre positions. We show that this is a key source of the spurious air velocities. Taking the height from the reconstructed interface instead gives an exact discrete balance between pressure and gravity for a horizontal interface on any mesh. We implement this geometric gravity model in a new solver, interIsoGoam. In a tilted box of still water, where the original solvers give air speeds of metres per second, it keeps the velocity of order $10^{-9}$ m/s. This holds for density ratios up to $10^7$ and, with a hydrostatic initial pressure, on skewed and locally refined meshes. In a progressive wave, interIsoGoam has the lowest maximum velocity of the three solvers. At maximum Courant numbers of 0.1 and below it therefore needs up to 43 % fewer steps and up to 38 % less wall-clock time. At 0.5 the wave grows by up to 12 % over 15 periods, so we recommend 0.1 or less. One error remains, namely an overprediction of the horizontal water velocity below the wave crest. All three solvers exhibit this error, which grows steadily with time. In Part II we trace this error to the implicit discretisation of the momentum convection term.

physics.flu-dyn↗

Consistent interfacial flow numerics - Part II: The momentum convection term

The two-phase Volume-of-Fluid solvers of OpenFOAM overpredict the horizontal water velocity near the crest of a water wave, and the error grows as the wave propagates. Part I of this series removed the spurious air velocities caused by the gravity term but left this error unchanged. Here we show that it is caused by the momentum convection term. Its mass flux is computed in the interface advection step from the velocity at the start of the time step, whereas the convected velocity is taken at the end of the step, because convection is discretised implicitly. In a progressive wave, where the horizontal and vertical velocities are 90 degrees out of phase, this time lag produces an upward flux of horizontal momentum, proportional to the time step, which accumulates in a spurious current near the surface. The same mismatch makes the response to a force depend on the density at the wrong time level. Explicit convection removes the lag and makes the response consistent with the gravity force, but requires the convected face velocity at the interface to be taken from the upwind cell. Only then is the new velocity of a cell a weighted average of old velocities, whatever the density ratio. We demonstrate both requirements with prescribed flows and with the full solver. For a progressive wave, explicit convection with upwind face velocities at the interface reduces the overprediction of the crest velocity from 26-31 % to within 1 % and removes the near-surface current. The resulting solver, fluxinator, is meant for maximum Courant numbers of 0.1 and below, where it keeps the wave height within 1.5 % over 15 periods on meshes with six or more cells per wave height. Because the spurious velocities that limit the time step are removed, it needs 34-42 % less wall-clock time than interFoam for the tested wave.

physics.flu-dyn↗

Directional focused wave group response of a Floating Wind Turbine: Harmonic separation in experiment and CFD

The offshore wind sector relies on floating foundations for deeper waters but faces challenges from harsh conditions, nonlinear dynamics, and low-frequency resonant motions caused by second-order hydrodynamic loads. We analyze these dynamics and extract higher harmonic motions for a semisubmersible floating foundation under extreme wave conditions using experimental and numerical approaches. Two focused wave groups, with and without spreading, are considered, and experimental data is obtained from scaled physical model tests using phase-shifted input signals for harmonic decomposition of the wave responses. The responses are reproduced numerically using a novel CFD-based rigid body solver, FloatStepper, achieving good agreement. The study quantifies the effects of wave severity, spreading, and steepness on odd and even harmonics of the surge and pitch responses and mooring line tensions. A stronger sea state notably increased odd harmonics in surge and pitch. Additionally, the pitch subharmonic response, less noticeable in milder states, became apparent. Wave spreading influenced the overall response, with pronounced effects on odd and even superharmonic responses. The results reveal a front-back asymmetry in mooring line tensions, with the back lines experiencing greater tension. Increasing wavegroup amplitude caused shifts in subharmonic and superharmonic responses, transitioning from low-frequency surge-dominated behavior to coupled surge-pitch interaction. The cause of this pitch dominance is identified and discussed via CFD.

physics.flu-dyn↗

Instabilities of ring-rivulets: Impact of substrate wettability

Rivulets and droplets are naturally appearing shapes when small amounts of liquid are deposited on a partially wettable substrate. Here we study, by means of numerical simulations, the dewetting dynamics of a ring-rivulet on substrates with various contact angles and wettability patterns. In particular, we consider, beyond the homogeous case, an annular band of lower contact angle as compared to the background and a constant radial gradient of contact angle, pointing either inward or outward from the centre. We show that by tuning the parameters characterizing the patterns, it is possible to control not only the stability of the rivulet, i.e. its breakup/collapse dynamics and the associated time scales, but also the dewetting morphology, in terms of number and position of the formed droplets.

physics.flu-dyn↗

A robust algorithm for computational floating body dynamics

We present a non-iterative algorithm, FloatStepper, for coupling the motion of a rigid body and an incompressible fluid in computational fluid dynamics (CFD) simulations. The purpose of the algorithm is to remove the so-called added mass instability problem, which may arise when a light floating body interacts with a heavy fluid. The idea underlying the presented coupling method is to precede every computational time step by a series of prescribed probe body motions in which the fluid response is determined, thus revealing the decomposition of the net force and torque into two components: 1) An added mass contribution proportional to the instantaneous body acceleration, and 2) all other forces and torques. The algorithm is implemented and released as an open source extension module to the widely used CFD toolbox, OpenFOAM, as an alternative to the existing body motion solvers. The accuracy of the algorithm is investigated with several single-phase and two-phase flow benchmark cases. The benchmarks demonstrate excellent stability properties, allowing simulations even with massless bodies. They also highlight aspects of the implementation, such as the mesh motion method, where more work is needed to further enhance the flexibility and predictive capabilities of the code.

physics.flu-dyn↗

To coalesce or not to coalesce: Droplets and surface tension gradients

We numerically study the coalescence dynamics of two sessile droplets with radii $R_0$. The droplets are placed on top of a rigid substrate with a contact angle of $θ_{eq.} = π/9$. Having a highly wettable substrate ($θ_{eq} \ll π/2$) theory predicts that the bridge height ($h_0$) scales according to $h_0(t) \sim t^{2/3}.$ This behavior can be altered with e.g. surface tension gradients ($\partial_xγ\neq 0$). These gradients appear for example with heat transfer, surfactants or having different but miscible liquids. Instead of coalescence, these gradients can lead to a stable two droplet state. In this work, we focus on two aspects of this problem. The first one is the concrete choice of the surface tension, therefore making it spatially correlated. The second one is the reduction of scale towards a regime in which the disjoining pressure becomes important. We find that coalescence can be suppressed, given that there is a sharp gradient in surface tension. If this gradient is smeared, we find an intermediate agreement with the $2/3$ power-law. In the limit of large smearing width, we observe an asymmetric coalescence.

physics.flu-dyn↗

TwoPhaseFlow: An OpenFOAM based framework for development of two phase flow solvers

One of the prevailing challenges in Computational Fluid Dynamics is accurate simulation of two-phase flows involving heat and mass transfer across the fluid interface. This is currently an active field of research, which is to some extend impaired by a lack of a common programming framework for implementing and testing new models. Here we present a new OpenFOAM based open-source framework allowing fast implementation and test of new phase change and surface tension force models. Capitalizing on the runtime-selection mechanism in OpenFOAM, the new models can easily be selected and compared to analytical solutions and existing models. As a start, the framework includes the following curvature calculation methods for surface tension: height function, parabolic fit, and reconstructed distance function method. As for phase change, interface heat resistance and direct heat flux models are available. These can be combined with three solvers covering the range from isothermal, incompressible flow to non-isothermal, compressible flow with conjugated heat transfer. By design, addition of new models and solvers is straightforward and users are invited to contribute their specific models, solvers, and validation cases to the library.

physics.flu-dyn↗

Accurate and efficient surface reconstruction from volume fraction data on general meshes

Simulations involving free surfaces and fluid interfaces are important in many areas of engineering. There is, however, still a need for improved simulation methods. Recently, a new efficient geometric VOF method called isoAdvector for general polyhedral meshes was published. We investigate the interface reconstruction step of isoAdvector, and demonstrate that especially for unstructured meshes the applied isosurface based approach can lead to noisy interface orientations. We then introduce a novel computational interface reconstruction scheme based on calculation of a reconstructed distance function (RDF). By iterating over the RDF calculation and interface reconstruction, we obtain second order convergence of both the interface normal and position within cells even with a strict $L_{\infty}$ error norm. In 2D this is verified with reconstruction of a circle on Cartesian meshes and on unstructured triangular and polygonal prism meshes. In 3D the second order convergence is verified with reconstruction of a sphere on Cartesian meshes and on unstructured tetrahedral and polyhedral meshes. The new scheme is combined with the interface advection step of the isoAdvector algorithm. Significantly reduced absolute advection errors are obtained, and for CFL number 0.2 and below we demonstrate second order convergence on all the mentioned mesh types in 2D and 3D. The implementation of the proposed interface reconstruction schemes is straightforward and the computational cost is significantly reduced compared to contemporary methods. The schemes are implemented as an extension to the Computational Fluid Dynamics (CFD) Open Source software package, OpenFOAM. The extension module and all test cases presented in this paper are released as open source.

physics.flu-dyn↗

A Sharp Free Surface Finite Volume Method Applied to Gravity Wave Flows

This paper presents a sharp free surface method for fully nonlinear flow of two immiscible phases for wave propagation problems in the Finite Volume framework. The method resolves a sharp interface between two phases by combining the geometric reconstruction Volume-of-Fluid scheme isoAdvector for accurate advection of the free surface with the Ghost Fluid Method for the consistent treatment of density and pressure gradient discontinuities at the free surface. The method uses a compact computational stencil irrespective of cell shape and is formally second-order accurate in time and space. The primary focus of this work is to present the combined method and verify and validate it for wave-related problems in ocean sciences, marine and coastal engineering, by considering the following test cases: i) wave propagation of a two-dimensional wave with moderate steepness, ii) green water (water-on-deck) simulations for a ship model with violent free surface flow patterns. The method is implemented in OpenFOAM, an open source software for Computational Fluid Dynamics.

physics.flu-dyn↗

Performance of interFoam on the simulation of progressive waves

The performance of interFoam (a widely-used solver within the popular open source CFD package OpenFOAM) in simulating the propagation of a nonlinear (stream function solution) regular wave is investigated in this work, with the aim of systematically documenting its accuracy. It is demonstrated that over time there is a tendency for surface elevations to increase, wiggles to appear in the free surface, and crest velocities to become (severely) overestimated. It is shown that increasing the temporal and spatial resolution can mitigate these undesirable effects, but that a relatively small Courant number is required. It is further demonstrated that the choice of discretization schemes and solver settings (often treated as a "black box" by users) can have a major impact on the results. This impact is documented, and it is shown that obtaining a "diffusive balance" is crucial to accurately propagate a surface wave over long distances without requiring exceedingly high temporal and spatial resolutions. Finally, the new code isoAdvector is compared to interFoam, which is demonstrated to produce comparably accurate results, while maintaining a sharper surface. It is hoped that the systematic documentation of the performance of the interFoam solver will enable its more accurate and optimal use, as well as increase awareness of potential shortcomings, by CFD researchers interested in the general CFD simulation of free surface waves.

physics.flu-dyn↗

A Computational Method for Sharp Interface Advection

We devise a numerical method for passive advection of a surface, such as the interface between two incompressible fluids, across a computational mesh. The method is called isoAdvector, and is developed for general meshes consisting of arbitrary polyhedral cells. The algorithm is based on the volume of fluid (VOF) idea of calculating the volume of one of the fluids transported across the mesh faces during a time step. The novelty of the isoAdvector concept consists in two parts: First, we exploit an isosurface concept for modelling the interface inside cells in a geometric surface reconstruction step. Second, from the reconstructed surface, we model the motion of the face-interface intersection line for a general polygonal face to obtain the time evolution within a time step of the submerged face area. Integrating this submerged area over the time step leads to an accurate estimate for the total volume of fluid transported across the face. The method was tested on simple 2D and 3D interface advection problems both on structured and unstructured meshes. The results are very satisfactory both in terms of volume conservation, boundedness, surface sharpness, and efficiency. The isoAdvector method was implemented as an OpenFOAM(R) extension and is published as open source.

physics.flu-dyn↗