|
[Sponsors] |
October 7, 2015, 01:08 |
How to run the case in swak4Foam
|
#1 |
Member
Zhifang Hu
Join Date: Sep 2015
Location: Brisbane
Posts: 54
Rep Power: 10 |
Hi there.
I am new to swak4Foam. With some attempts, I believe that I've succeed in installing swak4Foam as funkySetFields works for me and showing swakVersion 0.3.2. I am using OpenFoam 2.4.0 btw. What i really confused now is how to test the cases using swak4Foam. There are lots stuff inside the Examples folder and i dont know whats/are the solver(s) for them. (For instance, in OpenFoam, if i tried to solve a case, i will do setField, then use the solver such as interFoam etc and view the results in paraview). I am not sure if its the same case for swak4Foam, i've looked up in OpenFoam wiki, but dont have any success till now. Anyone can give me some suggestions? Cheers |
|
October 9, 2015, 03:37 |
|
#2 |
Member
Join Date: Feb 2015
Posts: 39
Rep Power: 11 |
Usually there is some *.sh or AllRun file. If not, you usually run blockMesh, snappyHexMesh (of found in /system) and then your solver (have a look at /system/controlDict and look for the value under "application").
Since my answer sounds like very basic OF stuff, did I get your question right? Do you have a specific tutorial case that you are unsure about? |
|
October 10, 2015, 13:00 |
|
#3 |
Senior Member
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 11 |
Hi Zhifang,
You can start with swak4Foam with simple case such as parabolic velocity profile in channels of pipes. Don't worry it's very easy |
|
October 11, 2015, 19:29 |
|
#4 | |
Member
Zhifang Hu
Join Date: Sep 2015
Location: Brisbane
Posts: 54
Rep Power: 10 |
Quote:
Can i ask you a more specific question that is there any articles about wave generation/absorption methods applied in swak4Foam. Basically thats the main goal of me using swak4Foam, to simulate a wave propagation. |
||
October 11, 2015, 19:35 |
|
#5 |
Member
Zhifang Hu
Join Date: Sep 2015
Location: Brisbane
Posts: 54
Rep Power: 10 |
Thanks for the reply. Do you mean the case of simpleBendedPipe ? The example cases swak4Foam is a bit mess for me (see the attachments) and some of them have really weird solver like 'oodles', i dont know if that's a bug or not.
|
|
October 19, 2015, 03:31 |
|
#6 | |
Member
Join Date: Feb 2015
Posts: 39
Rep Power: 11 |
Quote:
Source: http://www.cfd-online.com/Forums/ope...tml#post286419 |
||
December 19, 2017, 11:20 |
Implementing a velocity profile with groovy on OpenFoam
|
#7 |
New Member
Nima k
Join Date: Mar 2009
Location: Tehran
Posts: 8
Rep Power: 17 |
Hi everybody
I am working with OpenFoam version 4 and I want to set specific equation as inlet boundary condition for velocity. I installed swak4foam. then used this library in my controlDict file. libs ( "libOpenFOAM.so" "libgroovyBC.so" "libsimpleSwakFunctionObjects.so" "libswakFunctionObjects.so" ); and this command in u file in folder 0 inlet { type groovyBC; value uniform (0.1 0 0); variables "yp=mag(pos().y-4.);vel=0.55+0.5*tanh(2.5*(1-2*yp));"; valueExperssion "vector(vel,0,0)"; } Then I checked the domain after some simulation, it seems that it impose 0 for all velocity. Can you please help about that and tell me what I did wrong? I checked the syntax with several reference and it seems correct and I do not know what else should I check. Best regards |
|
December 19, 2017, 11:38 |
|
#8 |
Member
Join Date: Feb 2015
Posts: 39
Rep Power: 11 |
Hi,
the first thing that catches my eyes is: valueExperssion Pretty sure there is a typo - if you did a copy/paste you might want to check that out. Otherwise what usually helps me is to crack down the problem to something very simple and gradually add the mathematical expressions. You could also try to put all in the last line without the variables. At least in an old version of OF it sometimes messed up my calculations. Let me know whawt worked for you Henning |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to run the 3dTube case in parallel (foam-extend 3.1 with FSI from Zagreb)? | Warlord | OpenFOAM Running, Solving & CFD | 1 | January 27, 2018 14:48 |
Some questions about a multi region case run in parallel | zfaraday | OpenFOAM Running, Solving & CFD | 5 | February 23, 2017 10:25 |
cannot run naca0012 case using JST | paulocaveman | SU2 | 0 | December 26, 2016 01:08 |
damBreak case parallel run problem | behzad-cfd | OpenFOAM Running, Solving & CFD | 5 | August 2, 2015 17:18 |
Use XiFoam to run a laminar spherical flame case. | fcrl-zxr | OpenFOAM Running, Solving & CFD | 0 | June 8, 2015 11:11 |