|
[Sponsors] |
New proSTAR%2360OpenFOAM conversion utilities |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 16, 2006, 08:51 |
New pro-STAR (STAR-CD) to/from
|
#1 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40 |
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. |
|
November 10, 2006, 13:07 |
foamMeshToStar works brilliant
|
#2 |
Senior Member
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21 |
foamMeshToStar works brilliantly. Thanks for a great tool.
|
|
November 13, 2006, 08:20 |
The attached http://www.cfd-o
|
#3 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40 |
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.
|
|
January 19, 2007, 05:50 |
sorry about the silly question
|
#4 |
Member
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 17 |
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 |
|
January 19, 2007, 06:10 |
did you use wmake to compile t
|
#5 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40 |
did you use wmake to compile the utility?
|
|
January 19, 2007, 06:15 |
...I tried allways with make..
|
#6 |
Member
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 17 |
...I tried allways with make...sorry now it work!
thanx |
|
June 12, 2007, 05:41 |
hello,
I compiled star4ToFo
|
#7 |
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. |
|
June 12, 2007, 09:23 |
meshReader.C:88: error: no mat
|
#8 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40 |
Quote:
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 |
||
May 14, 2008, 07:37 |
Hi Mark,
Any news on how yo
|
#9 |
Senior Member
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21 |
Hi Mark,
Any news on how your Foam->Star->Foam utilities are coming along? |
|
May 14, 2008, 08:39 |
Still a work-in-progress, but
|
#10 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40 |
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.
|
|
July 15, 2008, 03:44 |
Here is an update on the aux u
|
#11 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40 |
Here is an update on the aux utility star-inpToFoam - it combines the previous fStar-{cellTable,coordinates} utilities. The fStar-cellSet is considered obsolete.
|
|
July 15, 2008, 03:52 |
Here is a small example of exp
|
#12 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40 |
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 |
|
August 30, 2008, 06:14 |
I see these tools have made th
|
#13 |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
I see these tools have made their way to 1.5. Great. On the other hand ccm26ToFoam has been skipped, right?
Regards. |
|
September 9, 2008, 12:22 |
Hi,
I had a problem with st
|
#14 |
New Member
matteo cerutti
Join Date: Mar 2009
Location: Florence, Tuscany, Italy
Posts: 10
Rep Power: 17 |
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 |
|
September 25, 2008, 07:37 |
ccm26ToFoam is still part of t
|
#15 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40 |
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 |
|
September 25, 2008, 07:42 |
Matteo,
I tested your case
|
#16 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40 |
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! |
|
November 20, 2008, 06:21 |
How do I get the results from
|
#17 |
New Member
Kasper Skriver
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 4
Rep Power: 17 |
How do I get the results from OpenFoam back to Star-CD in order to compare and process results in Star-CD?
|
|
November 20, 2008, 10:35 |
Hi Kasper,
Are you using ST
|
#18 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40 |
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? |
|
June 22, 2010, 03:07 |
|
#19 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40 |
Quote:
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 program is provided as is, without warranty, of completeness, accuracy, usability, fitness for a particular purpose. |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 06: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 |