|
[Sponsors] |
What is the difference between alpha.water and alpha.water.orig in the files of the i |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 15, 2024, 04:02 |
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 |
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 |
|
February 15, 2024, 04:24 |
|
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29 |
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 |
|
February 15, 2024, 06:07 |
|
#3 | |
New Member
onurlands
Join Date: Feb 2024
Posts: 25
Rep Power: 2 |
Quote:
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? |
||
February 15, 2024, 06:27 |
|
#4 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29 |
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? |
|
February 15, 2024, 06:36 |
|
#5 | |
New Member
onurlands
Join Date: Feb 2024
Posts: 25
Rep Power: 2 |
Quote:
|
||
February 15, 2024, 06:48 |
|
#6 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29 |
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. |
|
February 15, 2024, 07:03 |
|
#7 | |
New Member
onurlands
Join Date: Feb 2024
Posts: 25
Rep Power: 2 |
Quote:
|
||
February 15, 2024, 07:09 |
|
#8 | |
New Member
onurlands
Join Date: Feb 2024
Posts: 25
Rep Power: 2 |
Quote:
|
||
February 15, 2024, 07:18 |
|
#9 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29 |
Let me know if I understand well: you want to compute the motion of your object free falling, right?
|
|
February 15, 2024, 07:19 |
|
#10 |
New Member
onurlands
Join Date: Feb 2024
Posts: 25
Rep Power: 2 |
||
February 15, 2024, 07:20 |
|
#11 |
New Member
onurlands
Join Date: Feb 2024
Posts: 25
Rep Power: 2 |
||
February 15, 2024, 08:01 |
|
#12 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29 |
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. |
|
Tags |
alpha.water, alpha.water.orig, interfoam, setfieldsdict |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
alpha.water boundary condition | wjchoi | OpenFOAM | 1 | January 18, 2022 08:55 |