|
[Sponsors] |
[waves2Foam] relaxationZoneLayout Coordinates shifted by 1 cell length at refined region |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 9, 2023, 12:43 |
relaxationZoneLayout Coordinates shifted by 1 cell length at refined region
|
#1 |
New Member
Nian
Join Date: Jun 2019
Posts: 15
Rep Power: 7 |
Hello,
As I am viewing the relaxationZoneLayout to check on the relaxation setup, I have realised the zone seems to be shifted slightly in my refined region. I meshed the domain in 3 parts, aiming to have finer mesh close to the water surface level, however, the middle region seems to have been shifted 1 cell length in the +X direction as shown in the attached photo. I am not sure why this is the case. There have also been some numerical instabilities, where floating point exception error, or extremely small time steps would occur after a few sections into the simulation, with diverging velocity towards the outlet relaxation zone. I am unsure if this might be the cause. Please find my definition of the relaxation zone below: Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.5 | | \\ / A nd | Web: http://www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object environmentalProperties; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // seaLevel 0.00; // A list of the relaxation zones in the simulation. The parameters are given // in <name>Coeffs below. relaxationNames (inlet outlet); initializationName outlet; inletCoeffs { // Wave type to be used at boundary "inlet" and in relaxation zone "inlet" waveType stokesSecond; // Ramp time of 2 s Tsoft 0.513; // Water depth at the boundary and in the relaxation zone depth 0.4; // Wave period period 0.513; // Phase shift in the wave phi 0.000000; // Wave number vector, k. direction (1.0 0.0 0.0); // waveNumber (0.3314 0 0); // Wave height height 0.00395; // stokesSecond specific debug off; // Specifications on the relaxation zone shape and relaxation scheme relaxationZone { relaxationScheme Spatial; relaxationShape Rectangular; beachType Empty; relaxType INLET; startX (-2.46 -0.001 0.0); endX (-0.41 0.001 0.0); orientation (1.0 0.0 0.0); } }; outletCoeffs { waveType potentialCurrent; U (0 0 0); Tsoft 0.513; relaxationZone { relaxationScheme Spatial; relaxationShape Rectangular; beachType Empty; relaxType OUTLET; startX (0.82 -0.001 0.0); endX (2.46 0.001 0.0); orientation (1.0 0.0 0.0); } }; // ************************************************************************* // Thank you! |
|
Tags |
diverge after mesh refine, relaxationzone, waves2foam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
chtMultiRegionFoam speed up | qwertz | OpenFOAM Running, Solving & CFD | 8 | September 18, 2021 07:16 |
[Commercial meshers] Using starToFoam | clo | OpenFOAM Meshing & Mesh Conversion | 33 | September 26, 2012 05:04 |
[Other] StarToFoam error | Kart | OpenFOAM Meshing & Mesh Conversion | 1 | February 4, 2010 05:38 |
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Meshing & Mesh Conversion | 2 | July 15, 2005 05:15 |
[Gmsh] Import gmsh msh to Foam | adorean | OpenFOAM Meshing & Mesh Conversion | 24 | April 27, 2005 09:19 |