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. |
foamMeshToStar works brilliant
foamMeshToStar works brilliantly. Thanks for a great tool.
|
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.
|
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 |
did you use wmake to compile t
did you use wmake to compile the utility?
|
...I tried allways with make..
...I tried allways with make...sorry now it work!
thanx |
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. |
meshReader.C:88: error: no mat
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 |
Hi Mark,
Any news on how yo
Hi Mark,
Any news on how your Foam->Star->Foam utilities are coming along? |
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.
|
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.
|
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 |
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. |
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 |
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 |
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! |
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?
|
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? |
1 Attachment(s)
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> 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 21:11. |