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

linear motion of nozzle with constant velocity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 20, 2024, 06:15
Default linear motion of nozzle with constant velocity
  #1
New Member
 
Mohammad Mesgar
Join Date: Jul 2021
Posts: 13
Rep Power: 5
Mohammadmz is on a distinguished road
Hello friends

In my computational domain, I have a nozzle that moves linearly at a constant velocity. The solver used is InterFoam and the openfoam version is 10. Please guide me in using dynamic mesh for this model.

best regurds.

Last edited by Mohammadmz; May 21, 2024 at 03:10.
Mohammadmz is offline   Reply With Quote

Old   May 21, 2024, 02:08
Default
  #2
New Member
 
Mohammad Mesgar
Join Date: Jul 2021
Posts: 13
Rep Power: 5
Mohammadmz is on a distinguished road
The nozzle is marked with red color in the picture. This nozzle moves at a constant velocity in the Z coordinate positive direction.

nozzle.png

Please help me to solve it.

Thanks & Regards

Last edited by Mohammadmz; May 21, 2024 at 03:11.
Mohammadmz is offline   Reply With Quote

Old   May 24, 2024, 02:53
Default
  #3
New Member
 
Mohammad Mesgar
Join Date: Jul 2021
Posts: 13
Rep Power: 5
Mohammadmz is on a distinguished road
I succeeded in moving the nozzle. But they don't slide on each other with the meshes and they are attached with the mesh in the lower zone. How to create this sliding movement? The images below show this problem.
1.png
2.png

The dynamicMeshDict file that i use:

/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 10
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "constant";
object dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

mover
{
type motionSolver;

libs ("libfvMeshMovers.so" "libfvMotionSolvers.so");

motionSolver motionSolverList;

solvers
{
nozzle
{
motionSolver solidBody;

cellZone nozzle;

solidBodyMotionFunction linearMotion;

velocity (0 0 0.006); // m/s positive z direction
}
};
}


// ************************************************** *********************** //
Mohammadmz is offline   Reply With Quote

Old   September 4, 2024, 05:07
Default
  #4
New Member
 
Mohammad Mesgar
Join Date: Jul 2021
Posts: 13
Rep Power: 5
Mohammadmz is on a distinguished road
??????!!!!!!!!!!!!!
Mohammadmz is offline   Reply With Quote

Old   September 27, 2024, 04:24
Default Help with Non-Conformal Coupling (NCC) in OpenFOAM 10 for Translating Mesh
  #5
New Member
 
Mohammad Mesgar
Join Date: Jul 2021
Posts: 13
Rep Power: 5
Mohammadmz is on a distinguished road
Hello everyone,

I’m working on a case in OpenFOAM 10 where I need to implement Non-Conformal Coupling (NCC) for a case involving linear translation with constant velocity. I’m facing some issues with the setup and would appreciate any guidance from the community.

Case Description:
Solver: Using interFoam coupled with energy, melting, and solidification equations.
Mesh: I have a moving nozzle with a linear motion defined for a specific cell zone. I’ve managed the motion using solidBody motion in fvSolution.
NCC Setup: I’m trying to use Non-Conformal Coupling to handle the interaction between the translating mesh and the fixed part of the domain.
What I’ve Done So Far:

Patches Definition:

I’ve defined two patches, nonCouple1 (atmosphere) and nonCouple2 (bottom of nozzle), for the interaction between the moving and fixed regions of the mesh.
NCC Definition:

In the fvSolution file, I’ve added the following entry:

nonConformalCoupling
{
type nonConformalCoupling;
patch1 nonCouple1;
patch2 nonCouple2;
weightMethod cellVolume;
value uniform 0;
}
Motion Setup:

I’m using solidBody motion with a constant velocity for the nozzle zone. The motion works fine, but I’m not sure if the NCC is correctly applied to couple the two regions.

Questions:
Is it necessary to create a baffle for NCC to work, or can it be done without creating one?
Are there any additional steps to ensure NCC is correctly implemented beyond defining it in fvSolution? Should it also be referenced in boundary or fvSchemes?
How should I handle the boundary conditions for the patches involved in the NCC?
Any advice or examples would be greatly appreciated! I’ve gone through the OpenFOAM user guide, but I’m still unclear on the best practices for setting up NCC, especially for translating meshes.

Thanks in advance for your help!

Best regards,
Mohammad
Mohammadmz is offline   Reply With Quote

Reply

Tags
dynamic mesh, interfoam, linear motion, mesh


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
VELOCITY vs VELOCITY IN STN FRAME vs RELATIVE VELOCITY everest20 FLUENT 1 July 13, 2015 09:35
CFX Velocity after a nozzle k-epsilon CFX 3 October 19, 2014 18:50
fluid flow but temperature raises from nowhere? mxcfd STAR-CCM+ 5 September 16, 2014 06:46
How to use Mesh Motion to define the boundary velocity? ssizz CFX 4 June 17, 2010 01:09
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 10:11


All times are GMT -4. The time now is 10:20.