|
[Sponsors] |
[swak4Foam] Sinusoidal initial liquid free surface using funkySetFields |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 28, 2016, 01:25 |
Sinusoidal initial liquid free surface using funkySetFields
|
#1 |
New Member
Join Date: Jul 2015
Posts: 12
Rep Power: 11 |
Hello,
My apologies for initially posting this question in Main CFD forum, which i could not redirect to OpenFoam forum. I'm trying to have a sinusoidal initial liquid free surface in Sloshing tank problems. Presently i'm using setFields with boxToCell function to create a flat liquid surface. While checking for setting different initial free surface conditions, i came to know about swak4Foam application which i could install. I'm using OF2.3.1. I could not understand what "constant-value surfaceField" is, produced by "surf" function, which is explained in "https://openfoamwiki.net/index.php/Contrib_funkySetFields" I want to have an expression a*cos(k*x) ( where a-amplitude of wave, k-wave number, x-variable along the length of tank), for the liquid free surface at time=0. Kindly help me to do this. Thank you. |
|
January 28, 2016, 02:58 |
Error message while trying with sine function
|
#2 |
New Member
Join Date: Jul 2015
Posts: 12
Rep Power: 11 |
Hi,
I tried with the following command line expression for a linear slope free surface which worked correctly. funkySetFields -time 0 -field alpha.water -expression "faceAverage(fpos().y <= surf(0.2)*fpos().x+surf(0.5) ? surf(1.0) : surf(0.))" But while trying with, funkySetFields -time 0 -field alpha.water -expression "faceAverage(fpos().y <= surf(0.2)*sin(fpos().x) ? surf(1.0) : surf(0.))" I'm getting the following error message, " Create time fileName::stripInvalid() called for invalid fileName funkysetfieldsine~ For debug level (= 2) > 1 this is considered fatal Aborted (core dumped) " Please correct me to have sinusoidal initial liquid surface. I saw some old threads related to free surface, but the conversations were not complete. |
|
September 28, 2023, 07:25 |
File names with spaces
|
#3 |
New Member
Join Date: Apr 2019
Posts: 7
Rep Power: 7 |
you have a file with spaces in its name inside the directory and OpenFOAM commands do not run while those are existing.
it seems like in your case, there is a file named sth like "funkysetfieldsine~" but with spaces ofc... In general, try to avoid including spaces while naming files in Linux. Use underscores or hyphens instead. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
chtMultiRegionSimpleFoam: maximum number of iterations excedeed. | Nkl | OpenFOAM Running, Solving & CFD | 19 | October 10, 2019 03:42 |
Free surface issues with interDyMFoam for hydroturbine | oumnion | OpenFOAM Running, Solving & CFD | 0 | October 6, 2017 15:05 |
Floating point exception error | lpz_michele | OpenFOAM Running, Solving & CFD | 53 | October 19, 2015 03:50 |
simpleFoam error - "Floating point exception" | mbcx4jc2 | OpenFOAM Running, Solving & CFD | 12 | August 4, 2015 03:20 |
should Courant number always be kept below 1? | wc34071209 | OpenFOAM Running, Solving & CFD | 16 | March 9, 2014 20:31 |