Of course you can use this as a post-processing too.
Just use the velocity field U of your steady-state simulation and calculate your fluxes. Then just solve the equation of AoA. Finished (: |
Quote:
HTML Code:
functionObject HTML Code:
controlDict HTML Code:
functions HTML Code:
pimpleFoam |
Hi,
you have to make a new solver which solves this equation. Just modify the scalarTransportFoam. |
Quote:
Is there any reason that one has to make a new solver and not to use the function object? Using FO seems easier and I see no difference. Is there anything I am missing? Best. |
It should work too :)
The problem is a bit older. When I made the first solver there was no possibility to do it with functions. Hence, I never tried it. |
Hello foamers.
I recently switched my working field to the thermal comfort analyses and I when I searched about that in OpenFOAM I find this code: https://sourceforge.net/projects/openfoamadd-ons/ And by reading the code I noticed that it can calculate the mean age of air and the ventilating efficiency and some other thermal comfort indicators (PMV, PPD, etc). But I didn't found any example of using it or weather it could be used in the steady state cases or what, so if any one used it or have any knowledge about something similar it would be great to share that with us Regards. |
Hi,
here is a link for the download: comfortFoam https://bitbucket.org/shor-ty/comfor...AM-4.x#commits Bye Tian Sent from my iPhone using CFD Online Forum mobile app |
Hi Mr Tain
Please bear with me because I have a lot of questions. I'm using OpenFOAM 2.3.0 on Ubuntu 14.04 and after pasting the cloning code into my terminal inside the openFOAM directory, a new folder named "comfortFoam" created containing only a readme file with the same containing of the web site. Now the web site says: NOT IMPLEMENTED TILL NOW (so we can't use it ?, if so, when we can use it?) How to compile it - use git for cloning (and I think that I did that, correct?) - change to the branch (is that means to select 2.3.x ?, if so, how I can do that?, if not, what is that means ?) - compile with wmake (so it is not a dynamic library, correct?, so how we can use it? is it calculates the AoA, PMV, ... etc for the calculated results so I should use it after the simulation is finished? is this simulation is a steady state or transient one? And thanks for your time Regards Ahmad |
Hi,
That is correct. This is a post processing tool. You run it after your solution. Age of Air can run during your simulation via controlDict. No need to do it in comfortFoam. I think comfortFoam is running under 4 version and 16+, too. Bye ä Thomas Sent from my iPhone using CFD Online Forum mobile app |
Hi,
You download via website or git. Than only run: wmake. It create a new tool: comfortFoam. Bye Thomas Sent from my iPhone using CFD Online Forum mobile app |
Compile error
Dear tian
I copied the files from the site and I got this error when I tried to compile it, Code:
a-habib@ahmad-PC:~/OpenFOAM/a-habib-4.x/comfortfoam$ wmake Thanks in advance |
Quick random guess:
What is your gcc version? |
Dear Habib,
it seems that you installed OpenFOAM either you compiled it yourself, right? The message of the compiler is not related to the application you try to compile it is an essential packaged that is missing on your system for c++. It is a standard library that you need to compile the application. I am too lazy to search for your but »here we go« ... It is not really polite, I know, but as a supporter I want that the questioner thinks about the problem :P. Good luck. PS: By the way it is TIAN not TAIN. PPS: In addition, you have to switch to the branch for your OpenFOAM version. That is my fault because I have no time to update the readme till now. Code:
git checkout |
|
I'm really sorry for my mistake, I corrected it
I'm using a precompiled OP from http://rheologic.net and i know that i needed some packages to complete but my experience is not enough to figure it out PS I don't have any experience in git that's why I rely on others in that I'll try again Thanks a lot |
For git you need to do the following:
Code:
git checkout <tab><tab> Code:
git checkout OpenFOAM-4.x Code:
sudo apt-get install build-essential flex bison git-core cmake zlib1g-dev libboost-system-dev libboost-thread-dev libopenmpi-dev openmpi-bin gnuplot libreadline-dev libncurses-dev libxt-dev |
It worked
Dear Tobias
Thanks a lot for your effort and I'm really sorry for being such a lazy one I had to install a lot of things after some updating Code:
sudo apt-get update Code:
sudo apt-get install libx32gcc-4.8-dev |
Some Questions
Dear Tobi,
I tried to use the comfortFoam tool on the hotRoom tutorial using buoyantBoussinesqPimpleFoam (as a rough start) and -thanks to you- it worked as it says in its description, and in the end i got this message (No AoA file found in last time dictionary Skip calculation of AoA) when the { if (AoAHeader.headerOk())} wasn't satisfied, so, as it's obvious I need the AOA filed in the case files. could it be like this? (not in the hotRoom case, I mean generally) Code:
/*--------------------------------*- C++ -*----------------------------------*\ Does it calculate the AOA only in the last time step? because I saw that it is reading the AOAHeader and creating the volScalarField nut and solving the AOAEqn only if (i+1==endTime) Code:
//- If last time, calcualte AoA At last, I noticed that you had uncommented the calculation of the mid, max AOA and the AE, so if I recommented these lines back it should work, correct? or you'r blanning to modify some thing? Code:
if (count > 500) Regards, Ahmad. |
Dear Ahmad,
first of all thank you for the feedback but the fruits should go more to Thomas Tian because he programmed it and asked me if I can extend it and or host it. Till now I just changed a few things like:
You are right, if you want to calculate the mean time of the air you have to put a file to the last time step which looks like you had. The 500 times is like that we calculate the matrix 500 times in order to get an accurate solution. This implementation is stupid and I wanted to change it some when but no time. Now, I even think the whole calculation of AoA is not correct because it does not make sense for me at the moment :P. I will not work on that code till a new version is out and I have to re-build it for the new FOAM-version (if necessary). In addition, I should split the code into more files. PS: If you think about the equation AoAEqn, you will understand that it should be definitely wrong, right? But I have to check. |
Ok dear Tobi
Thanks for the response and I'll keep looking into it and waiting for the update [emoji4] Sent from my iPhone using CFD Online Forum mobile app |
All times are GMT -4. The time now is 19:04. |