|
[Sponsors] |
November 14, 2015, 15:58 |
printing uwall
|
#1 |
Member
Reza
Join Date: Feb 2012
Posts: 67
Rep Power: 14 |
Hello All,
I am working on the dynamic contact angle in two phase flow, interFoam. I want to print out the Code:
uwall PHP Code:
Thank you very much and looking forward to hear from you |
|
November 18, 2015, 05:28 |
|
#2 |
Member
Nicole Andrew
Join Date: Sep 2014
Location: Pretoria, South Africa
Posts: 58
Rep Power: 11 |
Hi Reza,
What is uwall? Is it a field like volVectorField, volScalarField, or a single value such as a scalar or dimensionedScalar? Sorry, I am not familiar with this solver or what uwall is. |
|
November 18, 2015, 05:43 |
|
#3 |
Member
Reza
Join Date: Feb 2012
Posts: 67
Rep Power: 14 |
Hi Nicole,
It is a scalar field and it is sort of velocity of closest cell to the wall. but I don't know how to print it out. Thanks |
|
November 18, 2015, 06:45 |
|
#4 |
Member
Nicole Andrew
Join Date: Sep 2014
Location: Pretoria, South Africa
Posts: 58
Rep Power: 11 |
Hi Reza,
I just used grep to search for uwall inside the solver code and it is not there. Where is this velocity calculated? Can you not use paraview to visualise it? |
|
November 18, 2015, 18:42 |
|
#5 |
New Member
Matej Muller
Join Date: Oct 2011
Location: Slovenia
Posts: 25
Rep Power: 14 |
Hi!
Have you tried the wallGradU utility? I think it gives the near wall U values. Otherwise, you can use the R utility and use this thread to calculate u+ (If you're looking for the u+ values, this is u+=U/U_tau) http://www.cfd-online.com/Forums/mai...ar-stress.html Hope this helped, matej |
|
December 11, 2015, 13:54 |
|
#6 | |
Member
Reza
Join Date: Feb 2012
Posts: 67
Rep Power: 14 |
Quote:
As it is here: PHP Code:
thanks |
||
December 11, 2015, 13:58 |
|
#7 | |
Member
Reza
Join Date: Feb 2012
Posts: 67
Rep Power: 14 |
Quote:
I will try to see how can I get it with GradU, because it is not exactly the GradU close to the surface, actually it is: inner product of normal to wall and Uwall. Thanks |
||
December 11, 2015, 14:02 |
|
#8 |
Member
Nicole Andrew
Join Date: Sep 2014
Location: Pretoria, South Africa
Posts: 58
Rep Power: 11 |
Hi Reza,
This is probably an awful hack.... but what I would try is to declare uwall in createFields and see if this brings it into the scope of the solver. If that fails you could try also copy that file you shared into your solver so that you include it from there directly which might make the variable available to you. But this is definitely an awful hack way of doing it, hopefully someone who knows c++ better can tell me what an awful idea this is and give you some better help |
|
December 13, 2015, 13:31 |
|
#9 |
Senior Member
|
Well by taking a look at the code, uWall is used in member function which calculates theta:
Code:
Foam::tmp<Foam::scalarField> Foam::dynamicAlphaContactAngleFvPatchScalarField::theta ( const fvPatchVectorField& Up, const fvsPatchVectorField& nHat ) const { if (uTheta_ < SMALL) { return tmp<scalarField>(new scalarField(size(), theta0_)); } const vectorField nf(patch().nf()); // Calculated the component of the velocity parallel to the wall vectorField Uwall(Up.patchInternalField() - Up); Uwall -= (nf & Uwall)*nf; // Find the direction of the interface parallel to the wall vectorField nWall(nHat - (nf & nHat)*nf); // Normalise nWall nWall /= (mag(nWall) + SMALL); // Calculate Uwall resolved normal to the interface parallel to // the interface scalarField uwall(nWall & Uwall); return theta0_ + (thetaA_ - thetaR_)*tanh(uwall/uTheta_); } Code:
Foam::tmp<Foam::scalarField> Foam::dynamicAlphaContactAngleFvPatchScalarField::uWall ( const fvPatchVectorField& Up, const fvsPatchVectorField& nHat ) const { const vectorField nf(patch().nf()); // Calculated the component of the velocity parallel to the wall vectorField Uwall(Up.patchInternalField() - Up); Uwall -= (nf & Uwall)*nf; // Find the direction of the interface parallel to the wall vectorField nWall(nHat - (nf & nHat)*nf); // Normalise nWall nWall /= (mag(nWall) + SMALL); // Calculate Uwall resolved normal to the interface parallel to // the interface return nWall & Uwall; } Best.
__________________
Learn OpenFOAM in Persian SFO (StarCCM+ FLUENT OpenFOAM) Project Team Member Complex Heat & Flow Simulation Research Group If you can't explain it simply, you don't understand it well enough. "Richard Feynman" |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
3D printing | sarahtuvia | STAR-CCM+ | 0 | July 1, 2014 21:24 |
Printing Chart | Aloise | CFX | 1 | November 15, 2006 06:51 |
Looking for a commerical software to model screen printing (rheology) | Donghun Lee | CFX | 1 | September 22, 2000 03:00 |
Printing from GAMBIT | Hakeem | FLUENT | 3 | July 25, 2000 14:43 |
Looking for a commerical software to model screen printing (rheology) | Donghun Lee | FLUENT | 1 | July 12, 2000 16:25 |