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

Only wall boundary conditions work in separating different dynamic mesh regions

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 28, 2021, 16:28
Default Only wall boundary conditions work in separating different dynamic mesh regions
  #1
New Member
 
Salah Gaffar
Join Date: Dec 2016
Posts: 6
Rep Power: 9
salahgaffar is on a distinguished road
Hello Foamers,

To start with, the problem I am working on a 4-stroke internal combustion engine problem using Openfoam v2012 (the dot com solver branch). I have managed to solve the physics part of the problem well, however, the current issue is mesh motion. I am currently using velocityLaplacian motion solver.


To model my real engine problems, I need to use the following grid structure:

(refer to image 1 - complex problem topology)


P.S. The engine geometry libraries available in v2012 (e.g. engine valve and engine piston) were useful initially but will not give me enough controllability over the mesh quality for the grid topology I am currently using.

As an initial simple problem to get things going, I started working on the following topology:

(refer to image 2 - very simplified topology)



To connect the fluid across the different regions in my topology, it was required to use cyclicAMI boundary conditions.

At the cyclicAMI boundary, a uniform fixed value of 0 was explicitly specified for the velocity.
However, the AMI seems to have allowed the pointMotionU solution to propagate to the second region (port region) and caused the solution to not allow my uniform value BC, as shown in the following image:

(refer to image 4 - image 4 - AMI vs Wall case to separate different motion regions)


This was remedied when a wall boundary condition was used at this interface. However this is not feasible when solving the physics (not only the motion).

My questions are as follows:

1) do you guys have any solution to provide a boundary condition that acts like a wall when solving the motion and acts as a cyclicAMI when solving the flow variables? Or do you think the solution might be to separate the different cell zones and solve each separately?

P.S. I tried using multibody motion solver but I hit a brick wall when I was unable to define the motion of the liner (side wall which has a slip BC).

2) Do you have any other alternatives for slip boundary condition at the liner, since I noticed that the slip boundary condition sometimes need to be confined to a certain component (velocityComponentLaplacian in z works fine but velocityLaplacian with BCs specified in z doesnt work for certain geometries (boundary starts bulging from the sides irregularly), as shown in image 5 below:


I have attached the run folders for the 2 cases being discussed in these links:


Case 1 - highlighting the problem with the wall vs AMI issue
---------------------------------------------------------------------
https://drive.google.com/file/d/17gb...ew?usp=sharing

Case 2 - highlighting the slip boundary condition issue
---------------------------------------------------------------------
https://drive.google.com/file/d/19Ip...ew?usp=sharing

Last edited by salahgaffar; March 1, 2021 at 13:29. Reason: to refer to the missing images
salahgaffar is offline   Reply With Quote

Old   March 1, 2021, 13:27
Default Missing images from post
  #2
New Member
 
Salah Gaffar
Join Date: Dec 2016
Posts: 6
Rep Power: 9
salahgaffar is on a distinguished road
The images are attached below
salahgaffar is offline   Reply With Quote

Old   March 2, 2021, 09:10
Default
  #3
Member
 
Join Date: Sep 2018
Posts: 53
Rep Power: 7
tecmul is on a distinguished road
Hello,

1. From a brief look at the images, I don't understand why you need a cyclicAMI condition at all. As far as I know, the cyclicAMI condition is used for sliding meshes.

2. I had a problem similar to yours. The "fixedNormalSlip" boundary condition allows you to specify a normal vector for the boundary. The displacement of the mesh nodes will then always be perpendicular to that normal vector.
tecmul is offline   Reply With Quote

Old   March 2, 2021, 10:26
Default
  #4
New Member
 
Salah Gaffar
Join Date: Dec 2016
Posts: 6
Rep Power: 9
salahgaffar is on a distinguished road
Hello tecmul,

First of all, thanks for taking the time to answer my questions

1) the cyclicAMI was needed in order to allow non-conformal zones to be used in the mesh, similar to the first two attached images (e.g. refer to image 2, where it would be much better to generate a grid for the port alone and the cylinder alone). Also, in the more complex problem (shown in image 1), I would need to use a sliding interface (cyclicAMI) to allow for the valve motion within the deformable yellow region while maintaining the head tetras region (red) stagnant.

2) As for the fixedNormalSlip, from what I understand, it requires a unit normal vector (n). In the case of a round cylinder, the direction of this normal will differ from each point to the next. My current guess is that i'd have to figure out a way to use the face normal for each boundary in the code for that purpose.

Please feel free to correct me if Im wrong and again, I really appreciate your feedback!!
salahgaffar is offline   Reply With Quote

Old   March 2, 2021, 10:57
Default
  #5
Member
 
Join Date: Sep 2018
Posts: 53
Rep Power: 7
tecmul is on a distinguished road
1) Ok I see now. Just off the top of my head, maybe specify high diffusivity around the cyclic patch? Hopefully someone with more experience will comment.

2) Yes you're right. My case was 2D so a single normal vector worked. Maybe look at how the fixedNormalSlip boundary condition works and use that to write a new condition that limits node displacement to a certain direction? The Z axis in your case.
tecmul is offline   Reply With Quote

Reply

Tags
cyclicami not working, dynamic mesh, engine motion, separating motion regions, slip b.c.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
foam-extend-4.1 release hjasak OpenFOAM Announcements from Other Sources 19 July 16, 2021 05:02
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 05:15
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
Low Mixing time Problem Mavier CFX 5 April 29, 2013 00:00
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55


All times are GMT -4. The time now is 11:41.