{"title":"Implementation of a Modified Lid Driven Cavity in OpenFOAM","authors":"G. Tabor","doi":"10.51560/ofj.v2.54","DOIUrl":"https://doi.org/10.51560/ofj.v2.54","url":null,"abstract":"The standard lid-driven cavity test case is one of the most used validation cases in CFD. Whilst comparisons with experimental and particularly DNS simulations are possible, there is no analytical solution, and the case is ill-posed when considering the boundary conditions. A modified lid driven cavity (MLDC) case exists in the literature in which the lid velocity is non-uniform and which introduces a spatially varying body force, and for which there is a closed-form analytical solution to the Navier-Stokes equations which is a function of the Reynolds number. In this paper I present an implementation of the MLDC as a modification of the standard OpenFOAM case, using run time coding for the boundary conditions and fvOptions, and show how convergence to the solution is affected by numerical parameters ofsimpleFoam such as choice of matrix inversion. The existance of an analytical solution also allows the investigation of the relation between the solver residual and the true solution error.","PeriodicalId":252778,"journal":{"name":"OpenFOAM® Journal","volume":"26 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2022-03-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"129397407","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Artificial Compressibility with Riemann Solvers: Convergence of Limiters on Unstructured Meshes","authors":"S. Leakey, V. Glenis, C. Hewett","doi":"10.51560/ofj.v2.49","DOIUrl":"https://doi.org/10.51560/ofj.v2.49","url":null,"abstract":"Free-surface flows and other variable density incompressible flows have numerous important applications in engineering.One way such flows can be modelled is to extend established numerical methods for compressible flows to incompressible flows using the method of artificial compressibility. Artificial compressibility introduces a pseudo-time derivative for pressure and, in each real-time step, the solution advances in pseudo-time until convergence to an incompressible limit - a fundamentally different approach than SIMPLE, PISO, and PIMPLE, the standard methods used in OpenFOAM. Although the artificial compressibility method is widespread in the literature, its application to free-surface flows is not. In this paper, we apply the method to variable density flows on 3D unstructured meshes for the first time, implementing a Godunov-type scheme with MUSCL reconstruction and Riemann solvers, where the free surface gets captured automatically by the contact wave in the Riemann solver. The critical problem in this implementation lies in the slope limiters used in the MUSCL reconstruction step. It is well-known that slope limiters can inhibit convergence to steady state on unstructured meshes; the problem is exacerbated here as convergence in pseudo-time is required not just once, but at every real-time step. We compare the limited gradient schemes included in OpenFOAM with an improved limiter from the literature, testing the solver against dam-break and hydrostatic pressure benchmarks. This work opens OpenFOAM up to the method of artificial compressibility, breaking the mould of PIMPLE and harnessing high-resolution shock-capturing schemes that are easier to parallelise.","PeriodicalId":252778,"journal":{"name":"OpenFOAM® Journal","volume":"19 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2022-03-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"130651341","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"An Integrated OpenFOAM Membrane Fluid-Structure Interaction Solver","authors":"S. Wagner, M. Münsch, Antonio Delgado","doi":"10.51560/ofj.v2.45","DOIUrl":"https://doi.org/10.51560/ofj.v2.45","url":null,"abstract":"The scope of this paper is to present the design and verification of an integrated OpenFOAM membrane fluid-structure interaction (FSI) solver for small deflections, which employs the finite volume method (FVM) for solving the flow field and the finite area method (FAM) for solution of the membrane deflection. A key feature is that both the fluid and the solid solver operate on a common mesh geometry and are included into a single executable. Although the scope of applicability is narrow due to limitations of the membrane solver at its current state, positive verification results prove the practicability of the design, which allows for lightweight implementation as well as simple data transfers and post-processing.","PeriodicalId":252778,"journal":{"name":"OpenFOAM® Journal","volume":"63 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2022-03-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"133221448","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Comparison of Overset Mesh with Morphing Mesh: Flow Over a Forced Oscillating and Freely Oscillating 2D Cylinder","authors":"M. Alletto","doi":"10.51560/ofj.v2.47","DOIUrl":"https://doi.org/10.51560/ofj.v2.47","url":null,"abstract":"Fluid structural interactions involve temporal change of the boundaries of the computational domain as a result of the fluid forces acting on the solid structure. In order to take into account this change, OpenFOAM offers two different methods: the overset method and the morphing mesh method. The morphing mesh method takes into account the boundary movement by changing the topology of the mesh but keeping the connectivity between cells unchanged. The overset methods consists in non overlapping meshes which are moving relative to a background mesh. Usually the meshes do not change the topology. The coupling between meshes is achieved by interpolation of the variables between the meshes. Both methods are compared with each other and reference experiments and simulation by taking a two-dimensional laminar flow around a cylinder. The results are found to agree reasonable well with the references. Both mesh types give similar results for similar number of cells.","PeriodicalId":252778,"journal":{"name":"OpenFOAM® Journal","volume":"91 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2022-01-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"125164601","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"A Head Loss Pressure Boundary Condition for Hydraulic Systems","authors":"J. Fahlbeck, H. Nilsson, S. Salehi","doi":"10.51560/ofj.v2.69","DOIUrl":"https://doi.org/10.51560/ofj.v2.69","url":null,"abstract":"Despite the increase in computational power of HPC clusters, it is in most cases not possible to include the entire hydraulic system when doing detailed numerical studies of the flow in one of the components in the system. The numerical models are still most often constrained to a small part of the system and the boundary conditions may in many cases be difficult to specify. The headLossPressure boundary condition is developed in the present work for the OpenFOAM open-source CFD code to include the main effects caused by a large hydraulic system onto a component in the system. The main motivation is to provide a boundary condition for hydraulic systems where known properties are specified by the user and unknown properties are calculated. This paper is a guide to the developed headLossPressure boundary condition. It is based on the extended Bernoulli equation to calculate the kinematic pressure on the patch. An arbitrary number of minor and friction losses are considered to describe the system in terms of head losses. The boundary condition also provides the opportunity to specify the head in relation to a reference elevation. System changes during operations are modelled through Function1 variables, which enables time-varying inputs. The developments are validated against experimental test data, where the varying head between two free surfaces and a valve closing and opening sequence are modelled with the boundary condition. The main effects of the system are well captured by the headLossPressure boundary condition. It is thus a useful and trustworthy boundary condition for incompressible hydraulic system simulations.","PeriodicalId":252778,"journal":{"name":"OpenFOAM® Journal","volume":"1746 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2022-01-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"129458684","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"OpenFOAM for Francis Turbine Transients","authors":"S. Salehi, H. Nilsson","doi":"10.51560/ofj.v1.26","DOIUrl":"https://doi.org/10.51560/ofj.v1.26","url":null,"abstract":"The flexibility and fast responsiveness of hydropower systems make them a reliable solution to overcome the intermittency of renewable energy resources and balance the electrical grid. Therefore, investigating the complex flow fields during such operation is essential to increase the reliability and lifetime of future hydropower systems. The current article concerns the utilization of OpenFOAM for the numerical study of Francis turbines during transient load change operations. The details of employed models and numerical schemes are thoroughly explained. The Laplacian smoothing algorithm is applied for the deformation of the guide vane domain. The impact of different mesh diffusivity parameters on both load rejection and acceptance operations is studied. It is shown that general slip boundary conditions cannot be used for slipping points on the guide vane upper and lower surfaces. Instead, different alternatives are introduced and compared. The developed framework is tested on a high-head Francis turbine. Different transient operations are simulated and results are compared to the experimental data. It is shown that OpenFOAM can be employed as a trustworthy CFD solver for numerical investigation of Francis turbines transient operations.","PeriodicalId":252778,"journal":{"name":"OpenFOAM® Journal","volume":"1 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2021-11-17","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"130902920","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
J. Bohácek, J. Kominek, A. Vakhrushev, E. Karimi-Sibaki, Taewoo Lee
{"title":"Sequential Inverse Heat Conduction Problem in OpenFOAM","authors":"J. Bohácek, J. Kominek, A. Vakhrushev, E. Karimi-Sibaki, Taewoo Lee","doi":"10.51560/ofj.v1.33","DOIUrl":"https://doi.org/10.51560/ofj.v1.33","url":null,"abstract":"The solution of the inverse heat conduction problem (IHCP) is commonly found with the sequential algorithm known as the function specification method with explicit updating formulas and sensitivity coefficients of heat flux. This paper presents a different approach namely a direct mathematical optimization of minimizing the least squares norm between experimental data and simulation. A CFD open-source code OpenFOAM is used together with NLOPT and DLIB optimization libraries. To guarantee credibility of the simulation tool developed herein, real experimental data is used from spray cooling of a fast-moving hot steel plate. As the IHCP is inherently an ill-posed problem, the proposed sequential algorithm is stabilized using future time stepping and thereof the optimal number is explained. An assumption about the profile of thermal boundary condition during future steps must be made. It is shown that assuming a linear change of the heat transfer coefficient during each sequence of future time steps yields more accurate results than setting a constant value. For the problem size considered with less than 10k cells, the preconditioned conjugate gradient (FDIC) linear solver converges faster than the multigrid solver (GAMG). However, the latter performs better as the accuracy is concerned. Concerning the best choice of minimizer, the BOBYQA algorithm (quadratic approximation) is found superior to other methods. The proposed IHCP solver is compared with the well-established one.","PeriodicalId":252778,"journal":{"name":"OpenFOAM® Journal","volume":"27 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2021-10-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"134479603","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Open-Source CFD Analysis of Nasal Flows","authors":"Luka Balatinec, T. Uroić, H. Jasak","doi":"10.51560/ofj.v1.38","DOIUrl":"https://doi.org/10.51560/ofj.v1.38","url":null,"abstract":"The complex anatomical structure of the nose and the internal soft tissue, which forms the nasal cavity, make it extremely difficult to generalise and understand the exact mechanism of nasal breathing. Deeper insight into phenomena associated with nasal flows may prove vital for better understanding of various conditions that affect breathing and may help in the selection of appropriate medical treatments. More recently, as studying the transmission of airborne particles and the effect of filtration devices became of pronounced importance, having the ability to visualise nasal flows and perform numerical analyses may prove to be an invaluable resource.This paper presents a detailed overview of a procedure developed for analysis of nasal flows. Every step of the procedure, from creating the computational model to airflow simulation, is based on freely available and open-source tools, thus providing a widely available framework for investigation of nasal flows. The framework consists of extracting a computational model from computed tomography (CT) or magnetic resonance imaging (MRI) scans, model refinement and numerical simulations performed using OpenFOAM - an open-source toolbox for computational fluid dynamics simulations. Finally, the framework is used on real medical data (CT scans) of the nasal cavity, the resulting simulations are analysed and the relevant data is discussed.","PeriodicalId":252778,"journal":{"name":"OpenFOAM® Journal","volume":"135 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2021-09-16","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"125787136","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}