|
[Sponsors] |
Advice for waveFoam, using exported stl meshes |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 31, 2016, 01:03 |
Advice for waveFoam, using exported stl meshes
|
#1 |
Member
Chia
Join Date: Jan 2016
Location: Singapore
Posts: 30
Rep Power: 10 |
All is fine and running, BUT, when I double check my wave elevation results, the wave elevation results are fishy, and when I went to look at paraFoam, i found out that the wave doesn't move an inch.
Commands used 1) blockMesh 2) surfaceFeatureExtract 3) snappyHexMesh -overwrite 4) setWaveParameters 5) setWaveField 6) waveGaugesNProbes (to set wave probes) 7) decomposePar 8) nohup mpirun -np 60 waveFoam -parallel 2>&1 | tee log.waveFoam Wavesproperties.input seaLevel -24.0; relaxationNames ( inlet outlet ); initializationName outlet; inletCoeffs { waveType stokesFifth; stokesDrift 0.0; Tsoft 15; depth 336; period 15.56; direction ( 1 0 0 ); phi 0; height 30; waveNumber (0.01574 0 0); omega 0.4038; relaxationZone { relaxationScheme Spatial; relaxationShape Rectangular; beachType Empty; relaxType INLET; startX (-800 -168 -360); endX (-400 168 120 ); orientation ( 1 0 0 ); } } outletCoeffs { waveType stokesFifth; stokesDrift 0.0; Tsoft 15; depth 336; period 15.56; direction ( 1 0 0 ); phi 0; height 30; waveNumber (0.01574 0 0); omega 0.4038; relaxationZone { relaxationScheme Spatial; relaxationShape Rectangular; beachType Empty; relaxType OUTLET; startX (400 -168 -360 ); endX (800 168 120 ); orientation ( 1 0 0 ); } } Any help is appreciated! thanks! |
|
March 31, 2016, 23:08 |
ask for help
|
#2 |
New Member
Maoyanjun
Join Date: Jan 2016
Posts: 20
Rep Power: 10 |
Hello Chia:
sorry for can't help you.But I have a question ask for you.I change the default seaLevel 0.0 to 1.0. But it goes wrong.the error information is"keyword seaLevelAsReference is undefined in dictionary "/home/maozhuxi/OpenFOAM/maozhuxi-2.4.0/applications/utilities/waves2Foam/tutorials/waveFoam/wavestationstructure/constant/waveProperties". The second problem is when I use snappyHexMesh to create a 2D mesh, I create the stl model in negtive axis,but when I view it in paraFoam,It always in the positive axis. so if I set the seaLevel 0.0. I can't put the model in the water. Have you ever meet these problems.or could you give me some suggestions. Thanks Last edited by Maoyanjun; March 31, 2016 at 23:18. Reason: replenish |
|
April 3, 2016, 23:16 |
|
#3 |
Member
Chia
Join Date: Jan 2016
Location: Singapore
Posts: 30
Rep Power: 10 |
Dear Mao,
Initially when i used starccm mesh to export to OpenFOAM, I have similar problems The mesh in starCCM has different x,y,z orientation, In my case, StarCCM mesh was set gravity at z level, and my default settings for openfoam, gravity was at y level, so the waves was in a wrong direction, I would suggest going into paraFoam and look at the coordinates of the wave tank boundaries and as well as your stl mesh coordinates.. did you change your water depth accordingly when you change seaLevel? P.S - Im a beginner in OpenFOAM , sorry if i cant help much |
|
April 3, 2016, 23:18 |
|
#4 |
Member
Chia
Join Date: Jan 2016
Location: Singapore
Posts: 30
Rep Power: 10 |
Dear all,
After seeking some external help, its found that, my snappyHexMesh could have been not well defined, Hence, guess I will have to redo my snappy.. if I could have some additional guidance, I would greatly appreciate it much! Thanks |
|
April 12, 2016, 23:48 |
|
#5 | |
New Member
Maoyanjun
Join Date: Jan 2016
Posts: 20
Rep Power: 10 |
Quote:
sorry for reply you late,thanks for your advice.After reading the src.I find in my dev 2.4.0 of Foam.It needs to define a referenceSeaLevel coefficient behind the seaLevel. So after defining it .It works well when I change the seaLevel,Hope that will be useful for other beginners, and hope we can keep in touch and exchange our experience. Last edited by Maoyanjun; April 12, 2016 at 23:51. Reason: wrong spell |
||
April 13, 2016, 02:23 |
|
#6 |
Member
Chia
Join Date: Jan 2016
Location: Singapore
Posts: 30
Rep Power: 10 |
Welcomed! I also managed to solve my problem as well, seems that there is problem with my snappyhexmesh dict,
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ICEM] Using STL Data with ICEM CFD/AI-Environment | Shawn Givler | ANSYS Meshing & Geometry | 18 | March 11, 2019 14:03 |
[snappyHexMesh] orthogonality problem with raw STL file | tellico | OpenFOAM Meshing & Mesh Conversion | 1 | April 16, 2013 04:18 |
Hex and Tet meshes - simplefoam comparison | danvica | OpenFOAM Running, Solving & CFD | 10 | January 4, 2013 02:18 |
Meshing complex white-light/GOM based STL models | jola | Main CFD Forum | 13 | January 30, 2012 02:35 |
[snappyHexMesh] SnappyHexMesh meshes inside and outside of an STL geometry | villier | OpenFOAM Meshing & Mesh Conversion | 17 | June 15, 2010 20:51 |