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

[waves2Foam] Changing the alphaExponent value in the relaxationSchemeSpatial.C file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 11, 2016, 10:14
Default Changing the alphaExponent value in the relaxationSchemeSpatial.C file
  #1
Senior Member
 
ArielJ
Join Date: Aug 2015
Posts: 127
Rep Power: 10
arieljeds is on a distinguished road
Hi all,

I want to try changing the alphaExponent value in the relaxationSchemeSpatial.C file and then re-run a simulation with the different value. I went in and changed the value in the code and then tried to compile with wmake and got the following error:

Code:
In file included from relaxationZone/relaxationScheme/spatial/relaxationSchemeSpatial.C:27:0:
relaxationZone/relaxationScheme/spatial/relaxationSchemeSpatial.H:43:30: fatal error: relaxationScheme.H: No such file or directory
compilation terminated.
make: *** [Make/linux64GccDPOpt/relaxationSchemeSpatial.o] Error 1
This is my first time trying to modify any code in OpenFOAM or waves2Foam so I'm not even sure if this is the correct approach to modifying the source code. Can anyone offer some feedback on how to do this?

Thanks in advance
Ariel
arieljeds is offline   Reply With Quote

Old   September 12, 2016, 08:45
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Ariel,

You should use the ./Allwmake command. It is the only way to make sure that cross version compatibility is handled; no matter how little a change you make.

Furthermore, if I understand correctly, what you want, then the shape factor (alpha) is given a default value of 3.5, but you can change it by providing the correct keyword. Please consult the source code, as I do not have access to it at present.

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   September 12, 2016, 08:55
Default
  #3
Senior Member
 
ArielJ
Join Date: Aug 2015
Posts: 127
Rep Power: 10
arieljeds is on a distinguished road
Hi Niels,

Thanks for your quick response. Ok that makes sense then. I should have realised I could just add the alphaExponent value. I'll give this a go and see how I get on.

In a related question, I've noticed that the use of relaxation zones seems to affect the free surface elevation further up the domain, resulting in lower free surface elevation than expected. Is this something to do with the implementation of the relaxation zones?

Thanks,
Ariel
arieljeds 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
OpenFoam "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 06:47
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 09:07
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 16:02
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 02:52.