CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Advice for waveFoam, using exported stl meshes

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 31, 2016, 01:03
Default Advice for waveFoam, using exported stl meshes
  #1
Member
 
Chia
Join Date: Jan 2016
Location: Singapore
Posts: 30
Rep Power: 10
chia87 is on a distinguished road
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!
chia87 is offline   Reply With Quote

Old   March 31, 2016, 23:08
Default ask for help
  #2
New Member
 
Maoyanjun
Join Date: Jan 2016
Posts: 20
Rep Power: 10
Maoyanjun is on a distinguished road
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
Maoyanjun is offline   Reply With Quote

Old   April 3, 2016, 23:16
Default
  #3
Member
 
Chia
Join Date: Jan 2016
Location: Singapore
Posts: 30
Rep Power: 10
chia87 is on a distinguished road
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
chia87 is offline   Reply With Quote

Old   April 3, 2016, 23:18
Default
  #4
Member
 
Chia
Join Date: Jan 2016
Location: Singapore
Posts: 30
Rep Power: 10
chia87 is on a distinguished road
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
chia87 is offline   Reply With Quote

Old   April 12, 2016, 23:48
Default
  #5
New Member
 
Maoyanjun
Join Date: Jan 2016
Posts: 20
Rep Power: 10
Maoyanjun is on a distinguished road
Quote:
Originally Posted by chia87 View Post
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
Dear Chia,
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
Maoyanjun is offline   Reply With Quote

Old   April 13, 2016, 02:23
Default
  #6
Member
 
Chia
Join Date: Jan 2016
Location: Singapore
Posts: 30
Rep Power: 10
chia87 is on a distinguished road
Welcomed! I also managed to solve my problem as well, seems that there is problem with my snappyhexmesh dict,
chia87 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


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