CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   New proSTAR%2360OpenFOAM conversion utilities (http://www.cfd-online.com/Forums/openfoam/60739-new-prostar-2360openfoam-conversion-utilities.html)

olesen October 16, 2006 08:51

New pro-STAR (STAR-CD) to/from
 
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
http://www.cfd-online.com/OpenFOAM_D...hment_icon.gif star4ToFoam+utils.tar.gz

More details are available in
http://www.cfd-online.com/OpenFOAM_D...s/mime_pdf.gif 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.

eugene November 10, 2006 14:07

foamMeshToStar works brilliant
 
foamMeshToStar works brilliantly. Thanks for a great tool.

olesen November 13, 2006 09:20

The attached http://www.cfd-o
 
The attached http://www.cfd-online.com/OpenFOAM_D...hment_icon.gif 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.

clo January 19, 2007 06:50

sorry about the silly question
 
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

olesen January 19, 2007 07:10

did you use wmake to compile t
 
did you use wmake to compile the utility?

clo January 19, 2007 07:15

...I tried allways with make..
 
...I tried allways with make...sorry now it work!
thanx

mayank June 12, 2007 05:41

hello, I compiled star4ToFo
 
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.

olesen June 12, 2007 09:23

meshReader.C:88: error: no mat
 
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

eugene May 14, 2008 07:37

Hi Mark, Any news on how yo
 
Hi Mark,

Any news on how your Foam->Star->Foam utilities are coming along?

olesen May 14, 2008 08:39

Still a work-in-progress, but
 
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 July 15, 2008 03:44

Here is an update on the aux u
 
Here is an update on the aux utility http://www.cfd-online.com/OpenFOAM_D...hment_icon.gif star-inpToFoam - it combines the previous fStar-{cellTable,coordinates} utilities. The fStar-cellSet is considered obsolete.

olesen July 15, 2008 03:52

Here is a small example of exp
 
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

bastil August 30, 2008 06:14

I see these tools have made th
 
I see these tools have made their way to 1.5. Great. On the other hand ccm26ToFoam has been skipped, right?

Regards.

matteoc September 9, 2008 12:22

Hi, I had a problem with st
 
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

olesen September 25, 2008 07:37

ccm26ToFoam is still part of t
 
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 September 25, 2008 07:42

Matteo, I tested your case
 
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!

kgs November 20, 2008 07:21

How do I get the results from
 
How do I get the results from OpenFoam back to Star-CD in order to compare and process results in Star-CD?

olesen November 20, 2008 11:35

Hi Kasper, Are you using ST
 
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 June 22, 2010 03:07

1 Attachment(s)
Quote:

Originally Posted by olesen (Post 193658)
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.


All times are GMT -4. The time now is 03:10.