CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[waves2Foam] Sealevel and pd (dynamic pressure)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 26, 2014, 10:24
Default Sealevel and pd (dynamic pressure)
  #1
New Member
 
Zaibin Lin
Join Date: May 2013
Location: Aberdeen, Scotland
Posts: 4
Rep Power: 13
auaries is on a distinguished road
Dear Niels,

As I tested your brilliant waves2Foam, a problem on pd in 0 file or any result files (I guess it is dynamic pressure) appears when I modify sealevel in waveProperties.input to any number except 0. It means that the pd value is fixed to [rho*g* (sealevel) + calculated pd value] and depends on the sealevel I chose so that I cannot modify the sealevel to any value I want.

Besides, I re-code your setWaveField.C and set the p_[celli] = 0; however, the results of pd shows the same problem as indicated above when changing sealevel to nonzero.

So can you please help me to address this problem that modifying this model to suit any sealevel?

Thank you so much.

Best regards,
Zaibin
auaries is offline   Reply With Quote

Old   May 26, 2014, 14:04
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hallo Zaibin,

The interFoam solver - and conseqently waveFoam - comes with a reference level for hydrostatic pressure. To compensate for this, the dynamic pressure is finite, if the still water level is not placed at 0. Are you experiencing problems, besides the offset in pd?

You can always adjust the code to take a reference level different from zero.

Kind regards,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   May 29, 2014, 10:50
Smile RE
  #3
New Member
 
Zaibin Lin
Join Date: May 2013
Location: Aberdeen, Scotland
Posts: 4
Rep Power: 13
auaries is on a distinguished road
Quote:
Originally Posted by ngj View Post
Hallo Zaibin,

The interFoam solver - and conseqently waveFoam - comes with a reference level for hydrostatic pressure. To compensate for this, the dynamic pressure is finite, if the still water level is not placed at 0. Are you experiencing problems, besides the offset in pd?

You can always adjust the code to take a reference level different from zero.

Kind regards,

Niels
Hi Niels,

That's all problem i encountered, thank you very much. And may I ask you when the waves2foam solver for foam-3.0 will be published? I appreciate that it is a very tough work for modifying original code to suit a new foam. Many thanks for your work indeed.

Kind regards,
Zaibin
auaries is offline   Reply With Quote

Old   May 30, 2014, 13:52
Default
  #4
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Zaibin,

I have a couple of bug-reports, which I need to take care of this weekend, so I hope that I will also be able to push a version of waveFoam for foam-extend into that work.

Have a nice weekend,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj 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



All times are GMT -4. The time now is 01:19.