CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

How to bound fields...

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 1, 2013, 02:29
Default How to bound fields...
  #1
New Member
 
Abhiroop
Join Date: Jun 2013
Posts: 26
Rep Power: 5
AB08 is on a distinguished road
Hi people......I need your help ,,,its a bit urgent,,,,,,,

I have a TEqn defined as --

volScalarField mu1=0.62*1.82*pow(a,2)*g*pow(T,2)*pow(0.68-T,-1);
volScalarField mu2=0.41*pow(a,2)*g*T;
volScalarField mu3=0.41*pow(a,2)*T*T;
Info<< "Solving for T " << nl << endl;
solve
(
fvm::div(phi, T)
//- fvm::laplacian(nu, T)
- fvm::laplacian(mu1, T)
- fvm::laplacian(mu2, T)
==
fvc::laplacian(mu3, g)
);

My UEqn is---

tmp<fvVectorMatrix> UEqn
(
fvm::div(phi, U)
- fvm::laplacian(nu*pow((1-T/0.68),(-1.82)), U)
);

UEqn().relax();

fvOptions.constrain(UEqn());

solve(UEqn() == -fvc::grad(p));

So the value of T has to be between 0 and 0.68......How can I do this in OpenFoam..???
AB08 is offline   Reply With Quote

Old   July 1, 2013, 11:04
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,186
Blog Entries: 1
Rep Power: 15
nimasam is on a distinguished road
its some how like this
Code:
dimensionedScalar MaxT ("MaxT",dimT, 0.68);
dimensionedScalar MinT ("MinT",dimT, 0.0);

T = max (min(T,MaxT), MinT);
__________________
Telegram channel (https://telegram.me/openfoam4Iranian)
My Weblog (http://openfoam.blogfa.com/)
Training Course on OpenFOAM at (http://www.isme.ir/)
nimasam is offline   Reply With Quote

Old   July 1, 2013, 13:01
Default
  #3
New Member
 
Abhiroop
Join Date: Jun 2013
Posts: 26
Rep Power: 5
AB08 is on a distinguished road
Thanx .. but plz tell me where exactly do i put this.......... plz dont mind i m very new to openFoam...
AB08 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Utilities: post average turbulence fields and create turbulence fields for LES Hanzo OpenFOAM Running, Solving & CFD 6 June 20, 2016 05:22
a reconstructPar issue immortality OpenFOAM Post-Processing 8 June 16, 2013 11:25
an odd(at least for me!) reconstructPar error on a field immortality OpenFOAM Running, Solving & CFD 3 June 3, 2013 22:36
Missing fields in reconstructPar flowris OpenFOAM 1 July 9, 2010 02:48
PostChannel maka OpenFOAM Post-Processing 5 July 22, 2009 09:15


All times are GMT -4. The time now is 03:54.