|
[Sponsors] |
June 18, 2014, 00:49 |
Wave Tank Simulation
|
#21 |
Member
Gautami Erukulla
Join Date: Mar 2009
Posts: 71
Rep Power: 17 |
Dear All,
I am using OpenFOAM version 2.2.0. on SuSE linux 12.2. I have installed swak4Foam (Version for OpenFOAM 2.x).I am trying to simulate wave tank using groovyBC with solver interFOAM. Kindly can anyone let me know where I could find an example case for wave tank simulation. Thank you. Regards Gautami. |
|
June 18, 2014, 10:53 |
|
#22 |
Member
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 12 |
hi
i want to modelling heat transfer in a hot room by groovyBC in one of my room's wall there is windows in this wall i have 4 regions with different temperature how can i do this? can i have different "fractionExpression" and "valueExpression"?????????? thanks |
|
June 18, 2014, 11:03 |
|
#23 | |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
you can define your different Region with its position in value expression and give them different Value or gradient
Also look at following syntax in groovyBC command: Quote:
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
||
June 18, 2014, 11:07 |
|
#24 |
Member
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 12 |
thanks alot
my mean is like bellow....how can i do this? valueExpression "150" valueExpression "45" valueExpression "23" valueExpression "36" . . . fractionExpression 1 "position1..... ? 1:0" fractionExpression 2 "position1..... ? 2:0" fractionExpression 1 "position1..... ? 3:0" fractionExpression 1 "position1..... ? 4:0" |
|
June 18, 2014, 13:09 |
|
#25 |
Member
Gautami Erukulla
Join Date: Mar 2009
Posts: 71
Rep Power: 17 |
Dear All,
I am using OpenFOAM version 2.2.0. on SuSE linux 12.2. I have installed swak4Foam (Version for OpenFOAM 2.x). I am trying to simulate wave tank using groovyBC with solver interFOAM. I have the simulation case of wave tank which I did earlier in version OpenFOAM 1-5. Now I have used the same case file and made changes for pd to p_rgh and gamma to alpha1. I run the case and then I get the following error. #0 Foam::error:rintStack(Foam::Ostream&) in "/opt/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #1 Foam::sigFpe::sigHandler(int) in "/opt/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #2 in "/lib64/libc.so.6" #3 void Foam::MULES::limiter<Foam::geometricOneField, Foam::zeroField, Foam::zeroField>(Foam::Field<double>&, Foam::geometricOneField const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::zeroField const&, Foam::zeroField const&, double, double, int) in "/opt/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/lib/libfiniteVolume.so" #4 void Foam::MULES::limit<Foam::geometricOneField, Foam::zeroField, Foam::zeroField>(Foam::geometricOneField const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>&, Foam::zeroField const&, Foam::zeroField const&, double, double, int, bool) in "/opt/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/lib/libfiniteVolume.so" #5 void Foam::MULES::explicitSolve<Foam::geometricOneField , Foam::zeroField, Foam::zeroField>(Foam::geometricOneField const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>&, Foam::zeroField const&, Foam::zeroField const&, double, double) in "/opt/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/lib/libfiniteVolume.so" #6 Foam::MULES::explicitSolve(Foam::GeometricField<do uble, Foam::fvPatchField, Foam::volMesh>&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>&, double, double) in "/opt/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/lib/libfiniteVolume.so" #7 in "/opt/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/bin/interFoam" #8 __libc_start_main in "/lib64/libc.so.6" #9 at /home/abuild/rpmbuild/BUILD/glibc-2.15/csu/../sysdeps/x86_64/elf/start.S:116 Floating point exception Kindly can somebody help me with this issue.Thank you Regards, Gautami. |
|
June 18, 2014, 13:17 |
|
#26 |
Member
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 12 |
valueExpression " pos().y < 0.18 ? 3000 : 0)","((pos().y > 2.2 && pos().y < 2.9) && ((pos().x > 4.498 && pos().x < 7.502) || (pos().x > 0.498 && pos().x < 3.502)) ? 1000 : 0)" ;
it is not true how can i correct it? |
|
June 18, 2014, 14:09 |
|
#27 | |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
well you should write something like this:
Quote:
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
||
June 18, 2014, 14:24 |
|
#28 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
June 18, 2014, 14:44 |
|
#29 |
Member
Gautami Erukulla
Join Date: Mar 2009
Posts: 71
Rep Power: 17 |
Dear Gschaider,
How are you doing? I am happy to see a reply from you. I am really not able to make out what change is causing the run to blow. I am really sorry for the trouble, kindly could you please have a look at my case files and guide.I am extremely sorry for the trouble,but as always your suggestions are invaluable.Thank you. Please find attached folders: 0 constant and system of my run. Regards, Gautami.0.tar.gz constant.tar.gz system.tar.gz |
|
June 18, 2014, 16:30 |
|
#30 | |
Member
Geir Karlsen
Join Date: Nov 2013
Location: Norway
Posts: 59
Rep Power: 14 |
Quote:
http://www.cfd-online.com/Forums/ope...ywavetank.html |
||
June 18, 2014, 17:27 |
|
#31 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Sorry
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
June 18, 2014, 23:35 |
|
#32 |
Member
Gautami Erukulla
Join Date: Mar 2009
Posts: 71
Rep Power: 17 |
Dear Gschaider,
I totally understand. Thank you. Regards, Gautami. |
|
June 19, 2014, 01:54 |
|
#33 |
Member
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 12 |
thank you very much nima
excuse me i have another questions now i define my different regions with different temperatures in valueExpression but 1.what i difference of these two form ( my means is fractionExpression) type groovyBC; variables "Kwall=0.06;Kglazing=0.06;Qwall=-8.5;Qglazing=-40.8;";// taken from table 3 valueExpression"pos().y < 0.15 ? 37 : (pos().y > 0.198 && pos().y < 0.2) && ((pos().x > 4.498 && pos().x < 7.502) || (pos().x > 0.498 && pos().x < 3.502)) ? 18 : (pos().y > 0.2 && pos().y < 2.2) && ((pos().x > 0.498 && pos().x < 0.5) || (pos().x > 3.5 && pos().x < 3.502) || (pos().x > 4.498 && pos().x < 4.5) || (pos().x > 7.5 && pos().x < 7.502)) ? 18 : (pos().y > 2.2 && pos().y < 2.202) && ((pos().x > 4.498 && pos().x < 7.502) || (pos().x > 0.498 && pos().x < 3.502)) ? 18 0"; gradientExpression "(pos().y > 0.2 && pos().y < 2.2) && ((pos().x > 0.5 && pos().x < 3.5) || (pos().x > 4.5 && pos().x < 7.5)) ? Qglazing/Kglazing : Qwall/Kwall";// in external wall which containts windows, BC is constant negative heat flux fractionExpression "1"; or type groovyBC; variables "Kwall=0.06;Kglazing=0.06;Qwall=-8.5;Qglazing=-40.8;";// taken from table 3 valueExpression"pos().y < 0.15 ? 37 : (pos().y > 0.198 && pos().y < 0.2) && ((pos().x > 4.498 && pos().x < 7.502) || (pos().x > 0.498 && pos().x < 3.502)) ? 18 : (pos().y > 0.2 && pos().y < 2.2) && ((pos().x > 0.498 && pos().x < 0.5) || (pos().x > 3.5 && pos().x < 3.502) || (pos().x > 4.498 && pos().x < 4.5) || (pos().x > 7.5 && pos().x < 7.502)) ? 18 : (pos().y > 2.2 && pos().y < 2.202) && ((pos().x > 4.498 && pos().x < 7.502) || (pos().x > 0.498 && pos().x < 3.502)) ? 18 0"; gradientExpression "(pos().y > 0.2 && pos().y < 2.2) && ((pos().x > 0.5 && pos().x < 3.5) || (pos().x > 4.5 && pos().x < 7.5)) ? Qglazing/Kglazing : Qwall/Kwall";// in external wall which containts windows, BC is constant negative heat flux fractionExpression "0"; 2. what is this error... Time = 1 DILUPBiCG: Solving for Ux, Initial residual = 1, Final residual = 0.00995599, No Iterations 1 DILUPBiCG: Solving for Uy, Initial residual = 1, Final residual = 0.0104898, No Iterations 1 DILUPBiCG: Solving for T, Initial residual = 1, Final residual = 0.0591834, No Iterations 1 DICPCG: Solving for p_rgh, Initial residual = 1, Final residual = 7.1898, No Iterations 1001 time step continuity errors : sum local = 84.0209, global = 0.0235848, cumulative = 0.0235848 #0 Foam::error:rintStack(Foam::Ostream&) in "/home/dell/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #1 Foam::sigFpe::sigHandler(int) in "/home/dell/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #2 in "/lib/x86_64-linux-gnu/libc.so.6" #3 Foam::divide(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&) in "/home/dell/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #4 void Foam::divide<Foam::fvPatchField, Foam::volMesh>(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) in "/home/dell/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so" #5 at kEpsilon.C:0 #6 Foam::incompressible::RASModels::kEpsilon::correct () in "/home/dell/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libincompressibleRASModels.so" #7 in "/home/dell/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/buoyantBoussinesqSimpleFoam" #8 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #9 in "/home/dell/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/buoyantBoussinesqSimpleFoam" Floating point exception (core dumped) i think my problem is that my mesh is very big....because my room is very large ,when i fine my meshs it can not make blockMesh successfully what should i do thanks alot Last edited by imani; June 19, 2014 at 05:12. |
|
June 19, 2014, 12:45 |
|
#34 |
Member
Gautami Erukulla
Join Date: Mar 2009
Posts: 71
Rep Power: 17 |
Dear Gkarlsen,
Thank you very much. I appreciate you providing the link for the wave tank case files.I was able to download the case files and run the simulation. It did not blow . Right now I am working on the post processing. Shall keep you posted. Thank you. Regards, Gautami. |
|
June 19, 2014, 15:50 |
|
#35 |
Member
Gautami Erukulla
Join Date: Mar 2009
Posts: 71
Rep Power: 17 |
Dear All,
I was able to run the wavetank simulation with groovyBC at the inlet(2nd order Stokes waves).Amplitude=0.1 and wavelength=5.The simulation does not blow but the results do not seem to be good. The wave tank length is in x direction ranging from (0 to 30), height is in the z direction ranging from (-1.0 to 1.0) with still water at 0,and the gravity vector is defined as (0 0 -9.81). Case-1 I got the free surface elevation plot near the inlet, shown in the image file (Free Surface Elevation Case-1) (x axis-time and y axiz-surface elevation).It does not seem to be correct.At time=0 the elevation is not zero. Plot of waves at time 15s is shown in image file (waves at time 15s case-1) Case-2 I just changed the coordinates of the wave tank in z direction range to (0.0 to 2.0) with still water at 1.0.The free surface elevation plot near the inlet is not correct shown in the image file (Free Surface Elevation Case-1).Plot of waves at time 15s is shown in image file (waves at time 15s case-1) In both the cases the results look wrong.Just changing the coordinates changed the results drastically.Kindly can somebody please advise me.Thank you. Regards, Gautami. Free Surface Elevation Case-1.png Free Surface Elevation Case-2.png waves at time 15s case-1.jpg waves at time 15s case-2.jpg |
|
July 2, 2014, 15:12 |
Boundary condition implementation
|
#36 |
Senior Member
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18 |
Hello All,
I am trying to solve a Laminar flow problem inside an axisymmetric cylindrical geometry with slip, where the slip length is specified by the user. For this, I am trying to implement, the following boundary condition for velocity at the wall of a cylindrical geometry dUz/dn = Uz/Ls; Ur = 0 everywhere in the domain where Ls: Slip velocity n = normal direction (radial direction in this case) Uz = axial velocity Ur = radial velocity I would like to know if this BC can be implemented using GroovyBC/swak4Foam. Please let me know. Thanks Vishal |
|
July 2, 2014, 19:43 |
|
#37 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
July 2, 2014, 22:39 |
|
#38 |
Senior Member
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18 |
Thanks, Bernhard.
Could you direct me how to implement this robin boundary condition. There is a small correction in my previous post, Ls represents, user specified slip length and not slip velocity. Thanks Vishal |
|
July 3, 2014, 16:11 |
|
#39 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
The problem with what you want is that you want Dirichlet in one direction and Neumann in the other. So probably directtionMixed might be what you want. There is even a groovyBC-Variant for that (groovyMixedBC I think. Haven't used it for some time) See http://www.cfd-online.com/Forums/ope...-mixed-bc.html for a description of what directionMixed/mixed do. In the groovy-variant all described values can be set by expressions
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
July 7, 2014, 18:17 |
|
#40 | |
Member
Geir Karlsen
Join Date: Nov 2013
Location: Norway
Posts: 59
Rep Power: 14 |
Quote:
Regards, Geir |
||
Tags |
groovybc, swak4foam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] groovyBC for oscillatory flow | liybzd | OpenFOAM Community Contributions | 5 | November 12, 2018 08:53 |
[swak4Foam] reactingMultiPhaseEulerFoam problems with groovyBC | zanilu70 | OpenFOAM Community Contributions | 4 | December 13, 2016 07:46 |
[swak4Foam] Change in alpha and U with groovyBC in twoPhaseEulerFoam | dani2702 | OpenFOAM Community Contributions | 0 | November 17, 2016 04:30 |
[swak4Foam] groovyBC issue - k and epsilon | sagnikmazumdar | OpenFOAM Community Contributions | 24 | March 1, 2015 08:16 |
[swak4Foam] groovyBC and Eqn.setReference() | benk | OpenFOAM Community Contributions | 3 | June 2, 2011 09:49 |