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

What is the difference between alpha.water and alpha.water.orig in the files of the i

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Yann

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 15, 2024, 04:02
Default What is the difference between alpha.water and alpha.water.orig in the files of the i
  #1
New Member
 
onurlands
Join Date: Feb 2024
Posts: 25
Rep Power: 2
onurcanpiskin is on a distinguished road
Hello, I'm new to openfoam. What is the difference between alpha.water and alpha.water.orig in the files of the interfoam decoder and what is setFieldsdict and how can I customize this file?
I will be grateful if you could help me
onurcanpiskin is offline   Reply With Quote

Old   February 15, 2024, 04:24
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hello,

setFields is an utility to initialize fields values. It is typically used with VOF solvers to define a volume of water inside the domain. (eg: set alpha.water to 0 everywhere in the domain, and define a box where you will set alpha.water to 1 in order to have a volume of water as your initial state)

When doing something like this, setFields will update the alpha.water file according to what is defined in system/setFieldsDict. If you want to preserve the original file before it gets updated by setFields, you need to make a copy of it. This is what alpha.water.orig is. The original alpha.water file that you can use to start over.

Cheers,
Yann
onurcanpiskin likes this.
Yann is online now   Reply With Quote

Old   February 15, 2024, 06:07
Default
  #3
New Member
 
onurlands
Join Date: Feb 2024
Posts: 25
Rep Power: 2
onurcanpiskin is on a distinguished road
Quote:
Originally Posted by Yann View Post
Hello,

setFields is an utility to initialize fields values. It is typically used with VOF solvers to define a volume of water inside the domain. (eg: set alpha.water to 0 everywhere in the domain, and define a box where you will set alpha.water to 1 in order to have a volume of water as your initial state)

When doing something like this, setFields will update the alpha.water file according to what is defined in system/setFieldsDict. If you want to preserve the original file before it gets updated by setFields, you need to make a copy of it. This is what alpha.water.orig is. The original alpha.water file that you can use to start over.

Cheers,
Yann
Thank you very much for the information.

I have a complex geometry file with .stl and .step extensions. I want to put this geometry into a boundary volume and perform VOF analysis. I want the object to move in this limit volume. How will I define the complex geometry here into the setFieldsdict file? This is easy for simple geometries, but how can I achieve this in complex geometries?
onurcanpiskin is offline   Reply With Quote

Old   February 15, 2024, 06:27
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
setFields is only used to define fields values, not a geometry.

You will have to mesh your object according to the simulation you want to perform. Depending on the motion of your object, you might need to use different mesh motions techniques and it will have an impact on how you should create your mesh.

Can you elaborate on the simulation you try to achieve?
Yann is online now   Reply With Quote

Old   February 15, 2024, 06:36
Default
  #5
New Member
 
onurlands
Join Date: Feb 2024
Posts: 25
Rep Power: 2
onurcanpiskin is on a distinguished road
Quote:
Originally Posted by Yann View Post
setFields is only used to define fields values, not a geometry.

You will have to mesh your object according to the simulation you want to perform. Depending on the motion of your object, you might need to use different mesh motions techniques and it will have an impact on how you should create your mesh.

Can you elaborate on the simulation you try to achieve?
Consider a boundary volume entirely covered with water, which eventually opens into the atmosphere, or the boundary volume may be half filled with water and half filled with air. I want to place a complex part in the water-filled part of the boundary volume and run this analysis. This piece will move at a certain speed and reach the atmosphere
onurcanpiskin is offline   Reply With Quote

Old   February 15, 2024, 06:48
Default
  #6
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Alright, then I suggest to have a look to dynamic mesh.

There are different techniques implemented in OpenFOAM to deal with object/mesh motion. The proper technique depends on the simulation you want to do. (what kind of motion if involved? Do you want to prescribe the motion of the aircraft or to simulate its motion due to buoyancy?)

Anyway, setFields has nothing to do with that.
Yann is online now   Reply With Quote

Old   February 15, 2024, 07:03
Default
  #7
New Member
 
onurlands
Join Date: Feb 2024
Posts: 25
Rep Power: 2
onurcanpiskin is on a distinguished road
Quote:
Originally Posted by Yann View Post
Alright, then I suggest to have a look to dynamic mesh.

There are different techniques implemented in OpenFOAM to deal with object/mesh motion. The proper technique depends on the simulation you want to do. (what kind of motion if involved? Do you want to prescribe the motion of the aircraft or to simulate its motion due to buoyancy?)

Anyway, setFields has nothing to do with that.
I want to determine the movement of the piece and at the same time I want to view where this piece will fall. So I don't need to define this part in the setfieldsdict file, right? Another question I have is that I am applying the following mesh process in Salome. Do I need to remove my piece from the boundary volume? I would really appreciate it if you could help me and guide me in this context.
onurcanpiskin is offline   Reply With Quote

Old   February 15, 2024, 07:09
Default
  #8
New Member
 
onurlands
Join Date: Feb 2024
Posts: 25
Rep Power: 2
onurcanpiskin is on a distinguished road
Quote:
Originally Posted by Yann View Post
Alright, then I suggest to have a look to dynamic mesh.

There are different techniques implemented in OpenFOAM to deal with object/mesh motion. The proper technique depends on the simulation you want to do. (what kind of motion if involved? Do you want to prescribe the motion of the aircraft or to simulate its motion due to buoyancy?)

Anyway, setFields has nothing to do with that.
Let me explain my problem again. Imagine that the inside of a boundary volume is air, and there is a solid object inside. This object should not be deformed as it moves. I want to calculate where this piece will move and fall within the boundary volume. I want to apply the mesh operation on Salome.
onurcanpiskin is offline   Reply With Quote

Old   February 15, 2024, 07:18
Default
  #9
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Let me know if I understand well: you want to compute the motion of your object free falling, right?
Yann is online now   Reply With Quote

Old   February 15, 2024, 07:19
Default
  #10
New Member
 
onurlands
Join Date: Feb 2024
Posts: 25
Rep Power: 2
onurcanpiskin is on a distinguished road
Quote:
Originally Posted by Yann View Post
Let me know if I understand well: you want to compute the motion of your object free falling, right?
I have a certain speed on the x and y axis, I want to calculate where it will fall.
onurcanpiskin is offline   Reply With Quote

Old   February 15, 2024, 07:20
Default
  #11
New Member
 
onurlands
Join Date: Feb 2024
Posts: 25
Rep Power: 2
onurcanpiskin is on a distinguished road
Quote:
Originally Posted by Yann View Post
Let me know if I understand well: you want to compute the motion of your object free falling, right?
At the same time, I want to display the movement of this object depending on time on paraview.
onurcanpiskin is offline   Reply With Quote

Old   February 15, 2024, 08:01
Default
  #12
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
If you have large motion of the object relatively to your domain, or complex motion, you may have to go for overset (https://doc.openfoam.com/2306/tools/...erics/overset/)

If motion is not to big, morphing mesh might do the job.
Search for dynamic meshes on OpenFOAM, there are some resources online explaining the different techniques.

If you go for overset, the meshing process won't be straightforward and you probably won't find an example doing exactly what you want. If you are totally new to OpenFOAM you will probably have to understand the basics before being able to setup your case.
Yann is online now   Reply With Quote

Reply

Tags
alpha.water, alpha.water.orig, interfoam, setfieldsdict


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
alpha.water boundary condition wjchoi OpenFOAM 1 January 18, 2022 08:55


All times are GMT -4. The time now is 13:54.