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

[Salome] Salome 321 and UNV

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 1, 2006, 15:44
Default Hi, Billy, I believe that S
  #21
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18
hsieh is on a distinguished road
Hi, Billy,

I believe that Salome v3.2.1 supports writing groups in unv format. It will be great if you can get Salome to support OpenFOAM format directly. But, I do not think it will happen soon.

There is a lot of discussions about Open Source codes common format (OpenFOAM, elmer, Code_Aster,..etc.). It looks like this group is in favor of unv format. In this case, even if EDS/SDRC stopped supporinting I-DEAS, the unv format will continue and live in the Open Source world. So, it will not be a waste for this effort. On www.caelinux.com, you can find some disscusions about this.

pei
hsieh is offline   Reply With Quote

Old   September 1, 2006, 16:06
Default I tried to develop it further
  #22
Senior Member
 
Billy
Join Date: Mar 2009
Posts: 167
Rep Power: 17
billy is on a distinguished road
I tried to develop it further but I get a segmentation fault error. I don't know why this happens. I used some information of mshToFoam. Here is a tar of the utility:

unvToFoam.tgz

Billy
billy is offline   Reply With Quote

Old   September 3, 2006, 19:45
Default Hi, This is the latest vers
  #23
Senior Member
 
Billy
Join Date: Mar 2009
Posts: 167
Rep Power: 17
billy is on a distinguished road
Hi,

This is the latest version of unvToFoam. If anyone wants to try it and give me feedback.

unvToFoam.tgz

It only reads tetrahedra and does not read any boundary data. autoPatch can be used to retrieve the patches.
billy is offline   Reply With Quote

Old   September 4, 2006, 12:38
Default Hello Billy I tried your ap
  #24
Senior Member
 
santos's Avatar
 
Jose Luis Santos
Join Date: Mar 2009
Location: Portugal
Posts: 215
Rep Power: 18
santos is on a distinguished road
Send a message via Skype™ to santos
Hello Billy

I tried your application with a simple cube meshed with tetrahedra, and it works fine. Nice work!

Ill keep you updated with further testing.

Regards
José Santos
santos is offline   Reply With Quote

Old   September 4, 2006, 16:20
Default There is another problem: the
  #25
Senior Member
 
Billy
Join Date: Mar 2009
Posts: 167
Rep Power: 17
billy is on a distinguished road
There is another problem: the file can only have two datasets 2411 and 2412. If it has more, it will fail. So you have to edit the file manually and erase other datasets if they exist.
billy is offline   Reply With Quote

Old   September 11, 2006, 12:57
Default In case anyone is interested,
  #26
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
In case anyone is interested, I tossed together two scripts for converting between unv and pro-STAR format, which helps with the import/export from Foam: unv_star_conversion.tar.gz

I've also written a small foamMeshToUnv utility, but does anyone know how the boundary regions are specified in the UNV format?

/mark
olesen is offline   Reply With Quote

Old   September 11, 2006, 13:35
Default I discovered that Elmer also i
  #27
Senior Member
 
Billy
Join Date: Mar 2009
Posts: 167
Rep Power: 17
billy is on a distinguished road
I discovered that Elmer also imports UNV format. I just looked very breifly at the source code. I am not sure they can read regions.

http://www.csc.fi/elmer/

Maybe you can check here:

http://www.sdrl.uc.edu/uff/uff.html
billy is offline   Reply With Quote

Old   September 12, 2006, 16:13
Default Hi Billy, I tried to use y
  #28
Member
 
Michael Page
Join Date: Mar 2009
Location: Quebec, Canada
Posts: 36
Rep Power: 17
micpage18 is on a distinguished road
Hi Billy,

I tried to use your program unvtofoam with OpenFoam 1.2 but I'm not able to make it run. Can you please make a little tutorial where you explain the procedure to use it. Something like the step from the installation of unvtofoam until the conversion of the mesh.

Thank you,

MP
__________________
Michael Page
michael.page@simu-k.com
Simu-K inc.
www.simu-k.com
micpage18 is offline   Reply With Quote

Old   September 12, 2006, 19:17
Default OK. I would do the followin
  #29
Senior Member
 
Billy
Join Date: Mar 2009
Posts: 167
Rep Power: 17
billy is on a distinguished road
OK.

I would do the following:

1. Copy the latest tar to directory: $HOME/OpenFOAM/OpenFOAM-1.2/applications/utilities/mesh/conversion

2. Go to this directory and untar using: tar -xzvf unvToFoam.tgz (This should create a new folder named unvToFoam. In this same directory you have gmshToFoam, mshToFoam, etc.)

3. Still in this directory type: wmake unvToFoam this will compile it and create an executable.

4. If your OpenFOAM installation is correct you should be able to type unvToFoam for example in your home directory and it should run.

5. Create a tetrahedral mesh in Salome and export to unv format (ex: piston.unv). Ensure file has only two datasets 2411 and 2412. You can open the file in a text editor and check it. Datasets start with -1 and then the code of the dataset. ex:
-1
2411
...
-1

6. Then create a new case (ex: piston) in a solver (ex: stressedFoam) using FoamX .

7. Copy the file to the directory of that case.

8. Type: unvToFoam $FOAM_RUN/tutorials/stressedFoam piston $FOAM_RUN/tutorials/stressedFoam/piston/piston.unv

9. You can use autoPatch for example to create new patches.

10. Then use FoamX to assign BC and define the simulation.
billy is offline   Reply With Quote

Reply


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



All times are GMT -4. The time now is 02:25.