|
[Sponsors] |
New proSTAR%2360OpenFOAM conversion utilities |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 41 ![]() ![]() |
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 ![]() More details are available in ![]() 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. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 22 ![]() |
foamMeshToStar works brilliantly. Thanks for a great tool.
|
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 41 ![]() ![]() |
The attached
![]() |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Member
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 18 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 41 ![]() ![]() |
did you use wmake to compile the utility?
|
|
![]() |
![]() |
![]() |
![]() |
#6 |
Member
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 18 ![]() |
...I tried allways with make...sorry now it work!
thanx |
|
![]() |
![]() |
![]() |
![]() |
#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. |
|
![]() |
![]() |
![]() |
#8 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 41 ![]() ![]() |
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 |
||
![]() |
![]() |
![]() |
![]() |
#9 |
Senior Member
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 22 ![]() |
Hi Mark,
Any news on how your Foam->Star->Foam utilities are coming along? |
|
![]() |
![]() |
![]() |
![]() |
#10 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 41 ![]() ![]() |
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.
|
|
![]() |
![]() |
![]() |
![]() |
#11 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 41 ![]() ![]() |
Here is an update on the aux utility
![]() |
|
![]() |
![]() |
![]() |
![]() |
#12 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 41 ![]() ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#13 |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 21 ![]() |
I see these tools have made their way to 1.5. Great. On the other hand ccm26ToFoam has been skipped, right?
Regards. |
|
![]() |
![]() |
![]() |
![]() |
#14 |
New Member
matteo cerutti
Join Date: Mar 2009
Location: Florence, Tuscany, Italy
Posts: 10
Rep Power: 18 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#15 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 41 ![]() ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#16 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 41 ![]() ![]() |
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! |
|
![]() |
![]() |
![]() |
![]() |
#17 |
New Member
Kasper Skriver
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 4
Rep Power: 18 ![]() |
How do I get the results from OpenFoam back to Star-CD in order to compare and process results in Star-CD?
|
|
![]() |
![]() |
![]() |
![]() |
#18 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 41 ![]() ![]() |
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? |
|
![]() |
![]() |
![]() |
![]() |
#19 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 41 ![]() ![]() |
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 | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to make utilities Parallel aware | philippose | OpenFOAM | 5 | October 20, 2011 10:41 |
Proposal for an extension for the timeoptions of Utilities | gschaider | OpenFOAM Bugs | 5 | August 26, 2008 20: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 05:21 |
Utilities to download for research/programmers | For those who favor open-source | Main CFD Forum | 0 | September 21, 2006 17:03 |