|
[Sponsors] |
sourcesProperties with Openfoam to create swirl |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 15, 2015, 02:57 |
sourcesProperties with Openfoam to create swirl
|
#1 |
Member
Michu
Join Date: Jun 2015
Location: PA, USA
Posts: 32
Rep Power: 0 |
Hello,
I am trying to create a vortex. The setting is in a square box with an inlet of flow on the left side and an outflow on the right side. The box has points (-10,-10) (10,-10) (-10,10) and (10,10) all with z=0. It also has four more points at the same x and y but with z=0.001. The program uses the function pimpleFoam and I have written another case for pisoFoam. I am trying to use the sourcesProperties to create the swirl/radial velocity/axial velocity. In Figure A attached below is the script for the sourcesProperties. From my understanding it should create a swirl at the point (0.05,0,0) with a speed of 100000000 with a radius of 5 meters. When I run the program nothing happens. I use the functions in this order: blockMesh - checkMesh - pimpleFoam - paraFoam or blockMesh - checkMesh - pisoFoam - paraFoam. Is there some other function I have to identify first for the program to use the sourcesProperties script? If not can someone help me learn what the problem is and how to initiate this swirling motion? Thank you, ~Michu Last edited by michu; August 1, 2015 at 20:19. |
|
August 1, 2015, 20:19 |
|
#2 |
Member
Michu
Join Date: Jun 2015
Location: PA, USA
Posts: 32
Rep Power: 0 |
Can anyone help please?
I also tried to run the example pitzDailyWithSwirl and I realized that the simpleFoam command wasn't telling the program to use the SourceProperties script. If the simpleFoam command was telling the program to use the SourceProperties script, it should have shown up in the pictures below. Does this mean its a mistake in my installation or is this some other error? Thanks ~Michu Last edited by michu; August 4, 2015 at 03:42. |
|
August 5, 2015, 09:28 |
|
#3 |
Member
Michu
Join Date: Jun 2015
Location: PA, USA
Posts: 32
Rep Power: 0 |
Hi All,
I am trying to use swak4Foam with openfoam. I installed Openfoam 2.3 and the most recent swak4Foam. I try to run the example pitzDailyWithSwirl and as shown in the images below, the program does not read the swirl from the sourceProperties script. I ran ./Allwmake and I attached the output below: Code:
goodswak@goodswak-VirtualBox:~/OpenFOAM/OpenFOAM-2.3.0/swak4Foam_2.x$ ./Allwmake Previously compiled for OpenFOAM 2.3.0 /home/goodswak/OpenFOAM/OpenFOAM-2.3.0/swak4Foam_2.x/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison) Reading variables from 'swakConfiguration' swakConfiguration: line 1: python-config: command not found swakConfiguration: line 2: python-config: command not found swakConfiguration: line 13: [: : integer expression expected Checking swak4Foam-version and generating file abort: no repository found in '/home/goodswak/OpenFOAM/OpenFOAM-2.3.0/swak4Foam_2.x' (.hg not found)! Swak version is 0.3.2 Bison is version 2.7.12-4996 Flex is version 2.5.35 (Minor version: 35) OpenFOAM-version: Major 2 Minor 3 Patch 0 (-1 == x / 0) No change to swak4FoamParsers/foamVersion4swak.H '/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so' is up to date. '/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/lib/libswakLagrangianParser.so' is up to date. '/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/lib/libgroovyBC.so' is up to date. '/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/lib/libswakFunctionObjects.so' is up to date. '/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/lib/libsimpleFunctionObjects.so' is up to date. '/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/lib/libsimpleLagrangianFunctionObjects.so' is up to date. '/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/lib/libsimpleSearchableSurfaces.so' is up to date. '/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/lib/libsimpleSwakFunctionObjects.so' is up to date. '/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/lib/libswakTopoSources.so' is up to date. '/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/lib/libswakSourceFields.so' is up to date. Compiling swakFvOptions '/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/lib/libswakFvOptions.so' is up to date. '/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/lib/libgroovyStandardBCs.so' is up to date. SWAK_PYTHON_INCLUDE not defined .... no Python-Integration. Most people are fine without it '/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/lib/libswakChemistryModelFunctionPlugin.so' is up to date. '/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/lib/libswakFvcSchemesFunctionPlugin.so' is up to date. '/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/lib/libswakLagrangianCloudSourcesFunctionPlugin.so' is up to date. '/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/lib/libswakLocalCalculationsFunctionPlugin.so' is up to date. '/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/lib/libswakMeshQualityFunctionPlugin.so' is up to date. '/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/lib/libswakMeshWaveFunctionPlugin.so' is up to date. '/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/lib/libswakRadiationModelFunctionPlugin.so' is up to date. '/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/lib/libswakRandomFunctionPlugin.so' is up to date. '/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/lib/libswakSurfacesAndSetsFunctionPlugin.so' is up to date. '/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/lib/libswakThermoTurbFunctionPlugin.so' is up to date. '/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/lib/libswakTransportTurbFunctionPlugin.so' is up to date. '/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/lib/libswakVelocityFunctionPlugin.so' is up to date. '/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/lib/libswakCoalCloudAdaptor.so' is up to date. If you have your own function-plugins you can specify them using the SWAK_USER_PLUGINS environment variable and they would be compiled now. If you don't know what this means: don't bother. You propably don't need it SWAK_PYTHON_INCLUDE not defined .... no Python-Integration. Utility funkyPythonPostproc not compiled make[1]: `/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/bin/calcNonUniformOffsetsForMapped' is up to date. make[1]: `/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/bin/fieldReport' is up to date. make[1]: `/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/bin/funkyDoCalc' is up to date. make[1]: `/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/bin/funkySetBoundaryField' is up to date. make[1]: `/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/bin/funkySetLagrangianField' is up to date. make[1]: `/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/bin/replayTransientBC' is up to date. make[1]: `/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/bin/funkySetFields' is up to date. make[1]: `/home/goodswak/OpenFOAM/goodswak-2.3.0/platforms/linux64GccDPOpt/bin/funkyWarpMesh' is up to date. goodswak@goodswak-VirtualBox:~/OpenFOAM/OpenFOAM-2.3.0/swak4Foam_2.x$ I was wondering if something did not properly install and if so can anyone help me fix the error? Thank you, ~Michu Last edited by wyldckat; August 10, 2015 at 10:10. Reason: Added [CODE][/CODE] markers |
|
August 10, 2015, 01:59 |
|
#4 |
Member
Michu
Join Date: Jun 2015
Location: PA, USA
Posts: 32
Rep Power: 0 |
Or if anyone has any ideas on other tests that I could do that would show me what went wrong or what section of the program is causing a problem?
Thanks, ~Michu |
|
August 10, 2015, 11:23 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Michu,
The problem is that the tutorial "pitzDailyWithSwirl" was created for an older OpenFOAM version, at least as far as I can figure out. If you look at the tutorial "incompressible/simpleFoam/turbineSiting" that is available in OpenFOAM, there are a few things missing from the "pitzDailyWithSwirl" tutorial:
In addition, you need to study the "README" file in swak4Foam's folder, and look for the occurrences of "fvOptions", so that you can learn more about how the current swak4Foam version uses it. Best regards, Bruno
__________________
|
|
August 12, 2015, 01:50 |
|
#6 | |||||
Member
Michu
Join Date: Jun 2015
Location: PA, USA
Posts: 32
Rep Power: 0 |
Hello Bruno,
Thank you so much for your help. I greatly appreciate it. I am currently looking into how to define the list of cells and then I will also look at the fvOptions and turbine example. Just a really quick question. When I type in ./Allwmake there is one section of the code that I think may be causing problems. Quote:
Quote:
Thank you so much, ~Michu Update: For anyone having trouble with: Quote:
Quote:
As for line 13, I think my swakConfiguration may be missing a number or something. I attached my swakConfiguration file below. If possible could I see yours swakConfiguration file Bruno? Quote:
~Michu Last edited by michu; August 12, 2015 at 15:17. |
||||||
August 12, 2015, 16:54 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: "swakConfiguration" is optional and it's not needed unless you do need Python integration into swak4Foam
I'll try to write instructions about this today or tomorrow. |
|
August 12, 2015, 18:39 |
|
#8 |
Member
Michu
Join Date: Jun 2015
Location: PA, USA
Posts: 32
Rep Power: 0 |
Hi Bruno,
That would be awesome, I really appreciate your help in this matter greatly! Thank you so much, ~Michu |
|
August 21, 2015, 18:18 |
|
#9 | |
Member
Michu
Join Date: Jun 2015
Location: PA, USA
Posts: 32
Rep Power: 0 |
Hello Bruno,
I really appreciate your help in this matter. I am still getting the Quote:
I just want to say I appreciate your answer from before greatly and am looking forward to seeing what you are going to say about the swakConfiguration issue. Thank you, ~Michu |
||
August 30, 2015, 04:17 |
|
#10 |
Member
Michu
Join Date: Jun 2015
Location: PA, USA
Posts: 32
Rep Power: 0 |
Hello Bruno,
I am looking forward to your response, but to help better describe what is going wrong, I made a short 2 minute video on the issue I have. https://www.youtube.com/watch?v=YmwIOLTzcmk I have been working on this for nearly two months and still cannot figure out what is going wrong. I am desperate for help. I really need to solve this problem. Any help you can provide will be greatly appreciated and I will owe you big time! Thank you, ~Michu |
|
August 30, 2015, 18:21 |
|
#11 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Michu,
Delete the file "swakConfiguration". It's not explicitly needed for building swak4Foam. The issue about ".hg" is normal and can be ignored. Quote:
Nonetheless, although the video does help explain a few things, please attach the test case folder you created:
As for the problem with funkySetFields (shown in the video), that's a normal response, because you're not running inside a case folder. Please check the section "Further information" on the wiki page: http://openfoamwiki.net/index.php/Co...er_information - and follow the presentations. Best regards, Bruno
__________________
|
||
August 30, 2015, 22:44 |
|
#12 |
Member
Michu
Join Date: Jun 2015
Location: PA, USA
Posts: 32
Rep Power: 0 |
Hello Bruno,
Thank you so much. I deleted the swakConifugration folder, but the problem persists. Attached below is the test case after running the foamCleanTutorials command. As for funkySetFields, I just believe that the message meant that the swak4Foam fully installed, but I wasn't 100% sure if thats what it meant. Thank you so much for your help. I really greatly appreciate it! If I can help you in any way please let me know. Thank you so much! Thank you, ~Michu |
|
September 1, 2015, 18:29 |
|
#13 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Michu,
Regarding the build of swak4Foam, my only guess is that perhaps you removed the wrong file. I don't have much more time to go into details for the case itself, so here's in a nutshell:
Bruno
__________________
|
|
September 2, 2015, 19:10 |
|
#14 |
Member
Michu
Join Date: Jun 2015
Location: PA, USA
Posts: 32
Rep Power: 0 |
Hi Bruno,
Thank you so much for your help! It is working wonderfully now. I greatly appreciate your help. Thank you so much, ~Michu |
|
Tags |
axial velocity, openfoam, radial velocity, sourcesproperties, swirl |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 12:58 |
How to Create .msh file so that when converted to OpenFOAM will have some BC | jaypatel | OpenFOAM | 13 | November 9, 2017 08:44 |
Create an script for a Local Application of OpenFOAM | RTom | OpenFOAM Programming & Development | 3 | November 11, 2013 06:36 |
how to create cyclic from 2 boundaries in Openfoam 1.7.1 | vsflap | OpenFOAM | 4 | April 26, 2013 04:30 |
how to create the sediment transport using openfoam | hxxxmu | OpenFOAM | 0 | April 2, 2013 23:49 |