|
[Sponsors] |
[Salome] how to setFields in openFOAM when you have imported mesh from salome or other package |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 9, 2014, 15:35 |
how to setFields in openFOAM when you have imported mesh from salome or other package
|
#1 |
Member
Muhammad Usman
Join Date: Feb 2014
Posts: 91
Rep Power: 0 |
i am working on a project in which i generated mesh using salome and converted it into openfoam format but after converting it i found that i have to use setFields utility to set two separate fluids in their positions anyone plz help me in doing that.... i would be grateful to you
|
|
August 29, 2014, 05:11 |
|
#2 |
New Member
Join Date: Jul 2014
Posts: 22
Rep Power: 12 |
Hello,
this shouldn't be difficult. Just take a setField from a tutorial and edit it with your wished positions. Code:
boxToCell { box (0.5 -3.7 -0.75) (22 -2 15); fieldValues ( volScalarFieldValue alpha.water 1 ); } Best regards, Mike |
|
April 7, 2015, 02:07 |
setFields for 2 phase_3D_imported_ICEMCFD
|
#3 | |
New Member
Join Date: Mar 2015
Posts: 15
Rep Power: 11 |
Quote:
I have a case with 2 phases as i attached in a picture. I have meshed it in ICEMCFD and converted the model to OpenFOAM. Now i have to define field values using setFieldsDict but the problem is how find the box values (like box (0.5 -3.7 -0.75) (22 -2 15) from converted model is the question. I am new to OpenFOAM. Could you please help me? Regards, Sam |
||
April 7, 2015, 03:36 |
|
#4 |
Member
Join Date: Sep 2014
Location: Germany
Posts: 88
Rep Power: 12 |
Your system of coordinates should be the same as in ICEM, just keep in mind that OpenFOAM works in meters, maybe you have to transfer the units.
The box values are the coordinates of the starting and ending point of the diagonal line of the box. So, you can either take the points from ICEM or you open your mesh in paraview, for example, and take the coordinates from there. |
|
April 7, 2015, 05:58 |
co-ordinate points in paraview
|
#5 | |
New Member
Join Date: Mar 2015
Posts: 15
Rep Power: 11 |
Quote:
Could you please suggest me how to know the co-ordinated of the point in paraview ? regards, Sangamesh hosur |
||
April 7, 2015, 06:05 |
|
#6 |
Member
Join Date: Sep 2014
Location: Germany
Posts: 88
Rep Power: 12 |
You can use the Ruler under Sources to get your coordinates.
|
|
April 7, 2015, 09:16 |
Can not see alphs in paraview
|
#7 |
New Member
Join Date: Mar 2015
Posts: 15
Rep Power: 11 |
||
April 7, 2015, 13:10 |
|
#8 |
Member
Muhammad Usman
Join Date: Feb 2014
Posts: 91
Rep Power: 0 |
Thank you all i have solved problem using blockMesh
|
|
February 28, 2017, 10:26 |
|
#9 |
New Member
ahr
Join Date: Feb 2017
Posts: 4
Rep Power: 9 |
I have create a field for temperature.
but I do not know where to write the value for the field. Im new in openfoam stuff. |
|
April 30, 2019, 04:24 |
|
#10 |
New Member
Akshay Ravi
Join Date: Apr 2019
Posts: 4
Rep Power: 7 |
Can you tell me, how u solved the problem?
|
|
November 25, 2020, 17:42 |
|
#11 |
Member
Deutschland
Join Date: Sep 2020
Posts: 69
Rep Power: 6 |
Hey,
I and trying to use setField on a background cuboid which I created using Salome. you can find the file in https://drive.google.com/file/d/10BI...ew?usp=sharing. I want to know the dimensions of the cuboid and coordinate of the edges which I created so that I can apply setFields to make it part water and part air. Can anyone suggest me how to obtain it? Thank you in advance for the help Kind regards vava10 |
|
May 18, 2022, 08:30 |
How to use STL file as a setField?
|
#12 |
New Member
Afshin Davarpanah
Join Date: Oct 2021
Posts: 5
Rep Power: 5 |
Hello
Everyone I want to perform a simulation with interfoam and I need to define the setField (with a STL file)? How can I do it? Thanks |
|
Tags |
mesh generation, openfoam, salome, setfields |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 19:57 |
[snappyHexMesh] No layers in a small gap | bobburnquist | OpenFOAM Meshing & Mesh Conversion | 6 | August 26, 2015 10:38 |
PorousZone using Mesh imported from Salome | Rapha | OpenFOAM | 4 | November 12, 2013 12:57 |
using METIS functions in fortran | dokeun | Main CFD Forum | 7 | January 29, 2013 05:06 |
[ICEM] Unstructure Meshing Around Imported Plot3D Structured Mesh ICEM | kawamatt2 | ANSYS Meshing & Geometry | 17 | December 20, 2011 12:45 |