|
[Sponsors] |
January 31, 2014, 19:35 |
|
#21 | |
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 |
||
February 7, 2014, 06:21 |
|
#22 | |
Member
Join Date: Jun 2011
Posts: 80
Rep Power: 15 |
Quote:
Best, |
||
February 13, 2014, 19:54 |
|
#23 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Usually the best way is to sit down with a piece of paper "If the flow goes the BC is a Dirichlet condition with this expression else a Neuman with this gradient expression". Implementing this in groovyBC is then pretty straightforward (if you understand the meaning of the phi-field - but this has been explained numerous times here on the MessageBoard and on the Wiki)
__________________
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 |
||
December 2, 2015, 18:32 |
|
#24 |
Member
Mohammad Reza
Join Date: Sep 2015
Posts: 44
Rep Power: 11 |
Hello everyone
I'm facing similar problem, I want to calculate surface integral of velocity multiplied by temperature in order to compute bulk temperature at each longitudinal position of a heated pipe and therefore Nusselt number in flow direction. Do you have any idea how to implement it by swak4foam? Thanks in advance |
|
December 10, 2016, 10:48 |
|
#25 |
Member
a
Join Date: Oct 2014
Posts: 49
Rep Power: 12 |
Dear Bernhard,
I am troubling you again... I want to create a new/derived field and write it at the output time. lets visualize a new volScalarField of mag(U). I found out there three ways to do it--- 1. edit the application/code (I want to omit this option) 2. using Swak4foam with expressionField. I tried the following in controlDict, Quote: velocityMagSquared { type expressionField; //outputControl outputTime; //outputInterval 1; fieldName UMag2; expression "U&U"; autowrite true; } I also get the output file written in the corresponding output/time directory. But problem is paraview do not import thes new field, it do not have this information. (also how do swak4Foam decide weather to create a volScalarfield or volVectorfield ) the last way is using coded function/dynamic code, I tried this, by adding the following lines in controlDict Quote: compute_ptot { functionObjectLibs ( "libutilityFunctionObjects.so" ); type coded; enabled true; redirectType ptot; // outputControl outputTime; // outputInterval 1; code #{ const volVectorField& U = mesh().lookupObject<volVectorField>("U"); volScalarField ptot ( IOobject ( "ptot", mesh().time().timeName(), U.mesh(), IOobject::NO_READ, IOobject::AUTO_WRITE ), mag(U) ); #}; } I neither get any new file in the corresponding output/time directory nor any visualization.. Please give me some suggesions with option 2 or 3. I am trying this in OF 3.x and using following libraries, Quote: libs ( "libOpenFOAM.so" "libsimpleSwakFunctionObjects.so" "libswakFunctionObjects.so" "libgroovyBC.so" "mylibfvOptions.so" ); Thanks, |
|
December 13, 2016, 18:24 |
|
#26 | ||||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Quote:
Quote:
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 21, 2017, 17:10 |
|
#27 |
Member
Join Date: Jun 2011
Posts: 80
Rep Power: 15 |
Hi again Bernhard,
I'd like to integrate a velocity component across an interpolated plane in a 2D, O-grid. I usually dealt with swakExpressions and patch or volumes integrations. In this case, I have to fix the plane where integrating across. Can you tell me how to proceed with your tool? Thanks in advance! Best |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The mysterious _0 fields | stevenvanharen | OpenFOAM Running, Solving & CFD | 2 | January 4, 2011 08:24 |
Missing fields in reconstructPar | flowris | OpenFOAM | 1 | July 9, 2010 03:48 |
domainIntegrate, dieselFoam and Lagrangian Fields | mturcios777 | OpenFOAM | 0 | May 14, 2010 16:16 |
PostChannel | maka | OpenFOAM Post-Processing | 5 | July 22, 2009 10:15 |
[OpenFOAM] Integrate Variables using PAraFoam | nandiganavishal | ParaView | 2 | April 17, 2009 13:38 |