CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

New proSTAR%2360OpenFOAM conversion utilities

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 16, 2006, 08:51
Default New pro-STAR (STAR-CD) to/from
  #1
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
New pro-STAR (STAR-CD) to/from OpenFOAM utilities to boost inter-operability
between Star-CD and OpenFOAM. The newer pro-STAR formats can also be used as
a meta-format for converting shape-based meshes to/from OpenFOAM.

Tested with OpenFOAM v1.3
star4ToFoam+utils.tar.gz

More details are available in
starToFoam-ug.pdf

Quick highlights:

All three-dimensional pro-STAR cell shapes are supported: hexa, tetra,
prism, pyra- mid and N-sided polyhedra. With the recent addition of
polyhedral cells to Star-CD, trimmed cells have become unnecessary.

Arbitrary and integral couples are no longer supported by the converter (nor
by the STAR-CD solver itself).

Baffles elements (i.e., zero-thickness elements inserted into the fluid
domain) are now supported by the converter.

The star4ToFoam converter retains the pro-STAR cell type information.

FOAM/Star (fStar) utilities

fStar-cellTable
Extract STAR-CD cell table information from the pro-STAR input file into a
form suitable for creating a constant/cellTable file.

fStar-cellSets
Use the contents of 0/cellTableId and constant/cellTable to create
constant/polyMesh/sets/... cellSets.

fStar-coordinates
Extract STAR-CD coordinate system information from the input file into a
form suitable for creating a constant/coordinateSystems file for future use
(e.g., with porosities or rotating systems).


foamMeshToStar
Export OpenFOAM mesh into pro-STAR format.
Using the star4ToFoam and foamMeshToStar converters, OpenFOAM support can be
quickly added for many other formats. For example, import/export for I-deas
universal files can be realized with fewer than 100 lines of Perl code for
each direction.
olesen is offline   Reply With Quote

Old   November 10, 2006, 14:07
Default foamMeshToStar works brilliant
  #2
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 12
eugene is on a distinguished road
foamMeshToStar works brilliantly. Thanks for a great tool.
eugene is offline   Reply With Quote

Old   November 13, 2006, 09:20
Default The attached http://www.cfd-o
  #3
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
The attached starMeshReader.C.gz file is a drop-in replacement for the existing code. It avoids a typo in the previous code that sometimes caused problems with face sorting. It also partially addresses problems with empty polyhedra faces that may arise from the pro-STAR csimplify command.
olesen is offline   Reply With Quote

Old   January 19, 2007, 06:50
Default sorry about the silly question
  #4
clo
Member
 
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 8
clo is on a distinguished road
sorry about the silly question but what have I to do to run star4ToFoam? I put the star4ToFoam in my
OpenFOAM/OpenFOAM-1.3/applications/utilities/mesh/conversion
directory and then run star4ToFoam but the message is

star4ToFoam: command not found

thanx
clo is offline   Reply With Quote

Old   January 19, 2007, 07:10
Default did you use wmake to compile t
  #5
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
did you use wmake to compile the utility?
olesen is offline   Reply With Quote

Old   January 19, 2007, 07:15
Default ...I tried allways with make..
  #6
clo
Member
 
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 8
clo is on a distinguished road
...I tried allways with make...sorry now it work!
thanx
clo is offline   Reply With Quote

Old   June 12, 2007, 05:41
Default hello, I compiled star4ToFo
  #7
mayank
Guest
 
Posts: n/a
hello,

I compiled star4ToFoam utility with wmake on openFoam 1.4 but I get the following error:

Making dependency list for source file meshReader.C
Making dependency list for source file meshReaderAux.C
Making dependency list for source file starMeshReader.C
Making dependency list for source file calcPointCells.C
Making dependency list for source file createPolyCells.C
Making dependency list for source file createPolyBoundary.C
Making dependency list for source file star4ToFoam.C
SOURCE=meshReader.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/mgo/OpenFOAM/OpenFOAM-1.4/src/finiteVolume/lnInclude -I/home/mgo/OpenFOAM/OpenFOAM-1.4/src/meshTools/lnInclude -IlnInclude -I. -I/home/mgo/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc4DPOpt/meshReader.o
meshReader.C: In member function 'void Foam::meshReader::volFieldCellTableId(Foam::fvMesh &)':
meshReader.C:88: error: no matching function for call to 'Foam::GeometricField<double,>::write(Foam::IOstre am::streamFormat, double, Foam::IOstream::compressionType)'
/home/mgo/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/regIOobject.H:188: note: candidates are: virtual bool Foam::regIOobject::write() const
make: *** [Make/linux64Gcc4DPOpt/meshReader.o] Error 1

Can anybody help me in this regard.
  Reply With Quote

Old   June 12, 2007, 09:23
Default meshReader.C:88: error: no mat
  #8
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
Quote:
meshReader.C:88: error: no matching function for call to 'Foam::GeometricField<double,>::write(Foam::IOstre am::streamFormat, double, Foam::IOstream::compressionType)'
The API changed a little in v1.4:
For calls with arguments, use the 'writeObject' method instead of the 'write' method (ie, your compile error).

I have yet another version in the works, but still need some time before I can release it.
So you'll have to patch this one youself.

/mark
olesen is offline   Reply With Quote

Old   May 14, 2008, 07:37
Default Hi Mark, Any news on how yo
  #9
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 12
eugene is on a distinguished road
Hi Mark,

Any news on how your Foam->Star->Foam utilities are coming along?
eugene is offline   Reply With Quote

Old   May 14, 2008, 08:39
Default Still a work-in-progress, but
  #10
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
Still a work-in-progress, but I don't believe they'd compile against the stock 1.4.1 or the 1.4.1-dev sources anyhow.
olesen is offline   Reply With Quote

Old   July 15, 2008, 03:44
Default Here is an update on the aux u
  #11
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
Here is an update on the aux utility star-inpToFoam - it combines the previous fStar-{cellTable,coordinates} utilities. The fStar-cellSet is considered obsolete.
olesen is offline   Reply With Quote

Old   July 15, 2008, 03:52
Default Here is a small example of exp
  #12
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
Here is a small example of exporting the coordinate systems by using the star-inpToFoam utility from within pro-STAR.

! create OpenFOAM {constant/}coordinateSystems
!
cdsa,-1,-1,-1,tmp._2cmd,-1
system
star-inpToFoam -f coordinateSystems -w tmp._2cmd
! done
olesen is offline   Reply With Quote

Old   August 30, 2008, 06:14
Default I see these tools have made th
  #13
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 471
Rep Power: 11
bastil is on a distinguished road
I see these tools have made their way to 1.5. Great. On the other hand ccm26ToFoam has been skipped, right?

Regards.
bastil is offline   Reply With Quote

Old   September 9, 2008, 12:22
Default Hi, I had a problem with st
  #14
New Member
 
matteo cerutti
Join Date: Mar 2009
Location: Florence, Tuscany, Italy
Posts: 10
Rep Power: 8
matteoc is on a distinguished road
Hi,

I had a problem with star4ToFoam...

I post the case, in which a very simple mesh has been created with starccm+, then imported in star4, finally exported to allow conversion to foam...

The case may be found at:

http://www.htc.de.unifi.it/docpub/st...oam_bug.tar.gz

Thank u for any suggestion

Regards
matteoc is offline   Reply With Quote

Old   September 25, 2008, 07:37
Default ccm26ToFoam is still part of t
  #15
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
ccm26ToFoam is still part of the distribution.
Use the following git commands to find it quickly in your OpenFOAM-1.5.x git repository:

git-ls-files --cached | grep ccm26
olesen is offline   Reply With Quote

Old   September 25, 2008, 07:42
Default Matteo, I tested your case
  #16
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
Matteo,

I tested your case with OpenFOAM-1.5.x, both before and after applying the lastest bugfix (commit d6b201bb...) and it worked without complaint.

According to your log file, you were using OpenFOAM-1.3 - it might be time to upgrade!
olesen is offline   Reply With Quote

Old   November 20, 2008, 07:21
Default How do I get the results from
  #17
kgs
New Member
 
Kasper Skriver
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 4
Rep Power: 8
kgs is on a distinguished road
How do I get the results from OpenFoam back to Star-CD in order to compare and process results in Star-CD?
kgs is offline   Reply With Quote

Old   November 20, 2008, 11:35
Default Hi Kasper, Are you using ST
  #18
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
Hi Kasper,

Are you using STAR-CD 3.26 or 4.x?
Have you already contacted OpenCFD about it?
What about exporting both to EnSight format and going from there?
olesen is offline   Reply With Quote

Old   June 22, 2010, 03:07
Default
  #19
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
Quote:
Originally Posted by olesen View Post
New pro-STAR (STAR-CD) to/from OpenFOAM utilities to boost inter-operability between Star-CD and OpenFOAM.
Note that star4ToFoam is now part of the standard OpenFOAM distribution. Thus the previously posted programs are now considered obsolete.

The previously posted fStar-cellTable, fStar-cellSets, fStar-coordinates programs are now superseded by the attached Perl program that combines similar functionality.
Code:
usage:  star-inpToFoam [OPTION] <file1.inp> ... <fileN.inp>

options:
  -h        usage
  -f FUNC   limit writing to FUNC (eg, cellTable, boundaryRegion)
  -w        write constant/boundaryRegion
                  constant/cellTable
                  constant/coordinateSystems
            (only write to subdir if it already exists)

extract information from pro-STAR input file(s) into a form suitable for
OpenFOAM
The usual disclaimer applies:
The program is provided as is, without warranty, of completeness, accuracy, usability, fitness for a particular purpose.
Attached Files
File Type: gz star-inpToFoam.gz (3.9 KB, 3 views)
olesen is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make utilities Parallel aware philippose OpenFOAM 5 October 20, 2011 09:41
Proposal for an extension for the timeoptions of Utilities gschaider OpenFOAM Bugs 5 August 26, 2008 19:13
Problem with foam utilities in foamx alan_fergus OpenFOAM Bugs 2 January 15, 2008 07:38
New Utilities coops OpenFOAM Post-Processing 1 July 4, 2007 04:21
Utilities to download for research/programmers For those who favor open-source Main CFD Forum 0 September 21, 2006 16:03


All times are GMT -4. The time now is 18:00.