CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Error with diffusivity Keyword in dynamicMeshDict Using displacementLaplacian

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Krapf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 26, 2024, 18:21
Exclamation Error with diffusivity Keyword in dynamicMeshDict Using displacementLaplacian
  #1
New Member
 
Azad
Join Date: Nov 2019
Posts: 8
Rep Power: 7
azad_786 is on a distinguished road
Hello OpenFOAM Community,

I am working on implementing dynamic mesh motion for a case in OpenFOAM-extend 4.0.
My objective is to enable displacement-based mesh adjustments using displacementLaplacian with dynamicMotionSolverFvMesh.
However, I have been encountering persistent issues, particularly with configuring diffusivity in the dynamicMeshDict file.

Implementation Strategy:
Solver Modification: My setup involves modifying the solver to handle dynamic mesh operations, specifically by applying dynamicFvMesh (later extending to dynamicMotionSolverFvMesh). solver compiles
Mesh Motion Solver: I have e selected displacementLaplacian as the motion solver within dynamicMotionSolverFvMesh to manage displacement-based mesh modifications.

ERROR:

Create dynamic mesh for time = 0

Selecting dynamicFvMesh dynamicMotionSolverFvMesh
Selecting motion solver: displacementLaplacian


--> FOAM FATAL IO ERROR:
keyword diffusivity is undefined in dictionary "/home/app/foam/app-4.0/sharedRun/foamcases/mesh_moving_directional/1_planar_case/constant/dynamicMeshDict"

file: /home/app/foam/app-4.0/sharedRun/foamcases/mesh_moving_directional/1_planar_case/constant/dynamicMeshDict"t from line 11 to line 24.

From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 395.

FOAM exiting
my constant/dynamicmeshdict file looks like this
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object dynamicMeshDict;
}

// Load the necessary library
libs ("libfvMotionSolvers.so");

// Specify the type of dynamic mesh
dynamicFvMesh dynamicMotionSolverFvMesh;

// Define the solver type
solver displacementLaplacian;

// Define the coefficients for the dynamic motion solver
dynamicMotionSolverFvMeshCoeffs
{
displacementLaplacianCoeffs
{
diffusivity uniform 1.0;
}
}

and 0/pointDisplacement;
FoamFile
{
version 2.0;
format ascii;
class pointVectorField;
location "0";
object pointDisplacement;
}

dimensions [0 1 0 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
left
{
type fixedValue;
value uniform (0 0 0); // Fixed boundary with no movement
}
right
{
type uniformFixedValue;
uniformValue (4e-8 0 0); // Uniform displacement on the right boundary
}
up
{
type zeroGradient;
}
down
{
type zeroGradient;
}
frontAndBack
{
type empty;
}
}

If anyone has experience with configuring displacementLaplacian for dynamic mesh motion, please advice to fix this error.

Thank you
Attached Images
File Type: jpg error.jpg (45.4 KB, 1 views)
azad_786 is offline   Reply With Quote

Old   October 27, 2024, 05:47
Default
  #2
Senior Member
 
Join Date: Oct 2017
Posts: 133
Rep Power: 9
Krapf is on a distinguished road
The error message indicates that you are defining “diffusivity” in the wrong place. It does not belong in the "dynamicMotionSolverFvMeshCoeffs"/"displacementLaplacianCoeffs" subdictionary, but on the first level, like “dynamicFvMesh” and “solver”, for example. See also: https://github.com/Unofficial-Extend...icMeshDict#L23.
azad_786 likes this.
Krapf is offline   Reply With Quote

Old   October 27, 2024, 08:18
Default
  #3
New Member
 
Azad
Join Date: Nov 2019
Posts: 8
Rep Power: 7
azad_786 is on a distinguished road
Thank you so much. It worked
azad_786 is offline   Reply With Quote

Reply

Tags
dynamicmeshdict, dynamicmotionsolverfvmesh, foamextend-4.0, openfoam


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[mesh manipulation] custom Diffusivity in dynamicMeshDict rangure OpenFOAM Meshing & Mesh Conversion 0 June 19, 2023 19:17
dynamicMeshDict diffusivity zhxter OpenFOAM Programming & Development 7 May 21, 2020 11:09
Disable Mass Diffusivity and Enable UDS Diffusivity antoinel FLUENT 0 July 26, 2017 18:27
Diffusivity model in dynamicMeshDict of movingCone xuezhj OpenFOAM Running, Solving & CFD 0 October 2, 2012 23:11
GGI dynamicMeshDict keyword 'direction' lordvon OpenFOAM Running, Solving & CFD 0 April 14, 2012 21:31


All times are GMT -4. The time now is 06:42.