8th Floor CFD@FSB
8th Floor CFD@FSB
  • 18
  • 87 247
Basic OpenFOAM Programming Tutorial: Writing a Custom Boundary Condition
This tutorial presents a step by step guide on implementing a boundary condition derived from fixed value which updates the value based on the average value of the internal field. In this tutorial, you will learn about:
- Creating and compiling your own dynamically linked library (shared object library),
- Basic steps regarding the compilation process of a library,
- Basic details regarding class organisation in OpenFOAM,
- Running a sample simulation with the new boundary condition in the new library dynamically linked in controlDict.
Note: this tutorial does not include the details regarding templates (only scalar specialisation is considered) as this is more advanced topic.
All comments and suggestions are more than welcome.
Author: Vuko Vukcevic, vuko.vukcevic@fsb.hr
มุมมอง: 24 328

วีดีโอ

Basic OpenFOAM Programming Tutorial: Adding Passive Scalar Transport Equation to icoFoam
มุมมอง 27K8 ปีที่แล้ว
This tutorial presents a step by step guide on implementing a passive scalar transport equation in icoFoam, where you will learn about: - Creating and compiling your own top level solver based on existing solver, - Basic steps regarding the compilation process, - Basic details regarding code organisation in OpenFOAM, - Some details regarding the functions (discretisation operators) in fvm and f...
Seakeeping simulation of a sailing boat in regular head waves using OpenFOAM
มุมมอง 4.8K8 ปีที่แล้ว
Solver: navalFoam Methodology: Implicit relaxation zones for potential flow/CFD coupling Interface capturing: Volume of Fluid with interface compression Two-phase treatment: Embedded free surface approach with implicit jump conditions Body Motion: 6 DOF rigid body dynamics equations with quaternion based rotations Validation: Comparison with experimental measurements (Delft Systematic Yacht Hul...
Steady resistance sailing boat simulation with dynamic sinkage and trim in OpenFOAM
มุมมอง 3.4K8 ปีที่แล้ว
Solver: navalFoam Methodology: Implicit relaxation zones for potential flow/CFD coupling Interface capturing: Volume of Fluid with interface compression Two-phase treatment: Embedded free surface approach with implicit jump conditions Body Motion: 6 DOF rigid body dynamics equations with quaternion based rotations Validation: Comparison with experimental measurements (Delft Systematic Yacht Hul...
Harmonic Balance simulation of NACA2412 pitching airfoil using OpenFOAM
มุมมอง 3.6K8 ปีที่แล้ว
Animation consists of three parts: 1. Convergence; 2. Pressure contours for 2 periods; 3. Velocity contours for 2 periods. Results are obtained using 3 harmonics. Solver: harmonicBalanceFoam Body Motion: sine law pitching with amplitude of 6 degrees and frequency 0.1 Hz Grid size: 6060 hexahedral cells Author: Gregor Cvijetic, gregor.cvijetic@gmail.com Reference: Jasak, H. and Cvijetic G.: Impl...
Seakeeping simulation of a container ship in following waves using OpenFOAM
มุมมอง 1.2K8 ปีที่แล้ว
Solver: swenseFoam Methodology: SWENSE solution decomposition with implicit relaxation zones Interface capturing: Implicitly redistanced Level Set derived from Phase Field Equation Two-phase treatment: Embedded free surface approach with implicit jump conditions Body Motion: 6 DOF rigid body dynamics equations with quaternion based rotations Validation and verification: Grid and periodic uncert...
Seakeeping simulation of a container ship in quartering waves using OpenFOAM
มุมมอง 4K8 ปีที่แล้ว
Solver: swenseFoam Methodology: SWENSE solution decomposition with implicit relaxation zones Interface capturing: Implicitly redistanced Level Set derived from Phase Field Equation Two-phase treatment: Embedded free surface approach with implicit jump conditions Body Motion: 6 DOF rigid body dynamics equations with quaternion based rotations Validation and verification: Grid and periodic uncert...
Seakeeping simulation of a container ship in beam waves using OpenFOAM
มุมมอง 1K8 ปีที่แล้ว
Solver: swenseFoam Methodology: SWENSE solution decomposition with implicit relaxation zones Interface capturing: Implicitly redistanced Level Set derived from Phase Field Equation Two-phase treatment: Embedded free surface approach with implicit jump conditions Body Motion: 6 DOF rigid body dynamics equations with quaternion based rotations Validation and verification: Grid and periodic uncert...
Seakeeping simulation of a container ship in bow waves using OpenFOAM
มุมมอง 1.5K8 ปีที่แล้ว
Solver: swenseFoam Methodology: SWENSE solution decomposition with implicit relaxation zones Interface capturing: Implicitly redistanced Level Set derived from Phase Field Equation Two-phase treatment: Embedded free surface approach with implicit jump conditions Body Motion: 6 DOF rigid body dynamics equations with quaternion based rotations Validation and verification: Grid and periodic uncert...
Directional freak wave impact on a full scale container ship in OpenFOAM
มุมมอง 1.6K8 ปีที่แล้ว
Solver: swenseFoam Methodology: SWENSE solution decomposition with implicit relaxation zones Interface capturing: Implicitly redistanced Level Set derived from Phase Field Equation Grid size: 1.2 million Two-phase treatment: Embedded free surface approach with implicit jump conditions Body Motion: 6 DOF rigid body dynamics equations with quaternion based rotations Wave modelling: Fully non-line...
Directional freak wave impact on a full scale barge in OpenFOAM
มุมมอง 7728 ปีที่แล้ว
Solver: swenseFoam Methodology: SWENSE solution decomposition with implicit relaxation zones Interface capturing: Implicitly redistanced Level Set derived from Phase Field Equation Grid size: 110 000 cells CPU Time: 53 h on Intel Core2 Quad CPU Q6600 @ 2.40GHz Two-phase treatment: Embedded free surface approach with implicit jump conditions Body Motion: 6 DOF rigid body dynamics equations with ...
Directional wave spectrum propagated using Higher Order Spectrum method in OpenFOAM
มุมมอง 1.2K8 ปีที่แล้ว
Solver: hosFoam Methodology: Nonlinear, spectral, potential flow method for solving nonlinear free surface boundary conditions. Grid: 256 x 512 nodes Domain: 1 km x 1 km Author: Inno Gatin, inno.gatin@gmail.com Reference: I. Gatin, V. Vukcevic, H. Jasak. Implementation of Higher Order Spectrum Method for nonlinear wave propagation in OpenFOAM. In 10th OpenFOAM Workshop, June 2015.
Seakeeping simulation of a container ship in head waves using OpenFOAM
มุมมอง 9118 ปีที่แล้ว
Solver: swenseFoam Methodology: SWENSE solution decomposition with implicit relaxation zones Interface capturing: Implicitly redistanced Level Set derived from Phase Field Equation Two-phase treatment: Embedded free surface approach with implicit jump conditions Body Motion: 6 DOF rigid body dynamics equations with quaternion based rotations Validation and verification: Grid and periodic uncert...
Steady resistance container ship simulation with dynamic sinkage and trim in OpenFOAM
มุมมอง 2.2K8 ปีที่แล้ว
Solver: navalFoam Methodology: Implicit relaxation zones for potential flow/CFD coupling Interface capturing: Volume of Fluid with interface compression Two-phase treatment: Embedded free surface approach with implicit jump conditions Body Motion: 6 DOF rigid body dynamics equations with quaternion based rotations Validation and verification: Grid, iterative and overall simulation uncertainty a...
Freak wave impact on a full scale offshore platform with OpenFOAM
มุมมอง 5K8 ปีที่แล้ว
Solver: swenseFoam Methodology: SWENSE solution decomposition with implicit relaxation zones Interface capturing: Implicitly redistanced Level Set derived from Phase Field Equation Grid size: 1.5 million control volumes CPU time: 4.5 hours per peak period on 4 cores: Intel Core i7-4820K @ 3.7GHz Author: Vuko Vukcevic, vuko.vukcevic@fsb.hr Reference: V. Vukcevic, H. Jasak. Decomposition Model fo...
Drift simulation of an offshore platform in regular waves using OpenFOAM
มุมมอง 9018 ปีที่แล้ว
Drift simulation of an offshore platform in regular waves using OpenFOAM
Regular wave loads on a vertical truncated cylinder using OpenFOAM
มุมมอง 9368 ปีที่แล้ว
Regular wave loads on a vertical truncated cylinder using OpenFOAM
Dam break impact on a square column with OpenFOAM
มุมมอง 2.8K8 ปีที่แล้ว
Dam break impact on a square column with OpenFOAM