CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Non-dimensionzalized icoFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By Cyp
  • 1 Post By Tushar@cfd

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 21, 2013, 11:00
Default Non-dimensionzalized icoFoam
  #1
New Member
 
OFghost
Join Date: Feb 2013
Location: Canada
Posts: 8
Rep Power: 13
umar82088 is on a distinguished road
Hi All,
I am trying to perform non-dimensionalization of icoFoam. Please have a look of attached file which is modification which I am having now.
I have turned-off dimensional consistency check as solver always complains about it. Calculations are performed but in my view they are not physically meaningful.
1 ) I am wondering whether solver is not itself not correct, having some mistake??
2) Non-dimensionaliztion of geometry is also needed, as far as I know, then how it could be implemented??
Any help regarding this, would be highly appreciated.
Many Thanks
Umar
Attached Files
File Type: c myIcoFoamB.C (3.1 KB, 24 views)
umar82088 is offline   Reply With Quote

Old   May 21, 2013, 16:58
Default
  #2
Cyp
Senior Member
 
Cyprien
Join Date: Feb 2010
Location: Stanford University
Posts: 299
Rep Power: 18
Cyp is on a distinguished road
Quote:
Originally Posted by umar82088 View Post
Hi All,
I am trying to perform non-dimensionalization of icoFoam. Please have a look of attached file which is modification which I am having now.
I have turned-off dimensional consistency check as solver always complains about it. Calculations are performed but in my view they are not physically meaningful.
1 ) I am wondering whether solver is not itself not correct, having some mistake??
2) Non-dimensionaliztion of geometry is also needed, as far as I know, then how it could be implemented??
Any help regarding this, would be highly appreciated.
Many Thanks
Umar

Hello Umar,

I had a glance at your enclosed file. First of all, you can not get rid of the temporal term. Indeed, you attempt to modify a PISO loop and this latter is created to solve an unsteady problem ! If you really need a steady solver, have a look at simpleFoam.

Second point, instead of turning-off the dimensions check, I will have defined new dimensionedScalar (for example unit1) that is equal to 1 and have suitable dimensions and write : unit1*fvm::div(phi,U).

Regards,
Cyp
umar82088 and 6863523 like this.
Cyp is offline   Reply With Quote

Old   May 22, 2013, 05:12
Default
  #3
Senior Member
 
T. Chourushi
Join Date: Jul 2009
Posts: 321
Blog Entries: 1
Rep Power: 17
Tushar@cfd is on a distinguished road
Quote:
Originally Posted by umar82088 View Post
Hi All,
I am trying to perform non-dimensionalization of icoFoam. Please have a look of attached file which is modification which I am having now.
I have turned-off dimensional consistency check as solver always complains about it. Calculations are performed but in my view they are not physically meaningful.
1 ) I am wondering whether solver is not itself not correct, having some mistake??
2) Non-dimensionaliztion of geometry is also needed, as far as I know, then how it could be implemented??
Any help regarding this, would be highly appreciated.
Many Thanks
Umar
Hi Umar,

I would really like to appreciate you for working with non-dimensional form of equation.
I totally agree with Cyp, it appears that you are not using the transient term in your equation. So, try with simpleFoam.

I would rather write the equation like this...

(
fvm::div(phi, U)
- fvm::laplacian(1/Re, U)
);

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

Anyways, you need to be careful about the extra dimensions, see the weblink for better explanation:

http://www.cfd-online.com/Forums/ope...variables.html
umar82088 likes this.
Tushar@cfd is offline   Reply With Quote

Old   May 22, 2013, 13:25
Default
  #4
New Member
 
OFghost
Join Date: Feb 2013
Location: Canada
Posts: 8
Rep Power: 13
umar82088 is on a distinguished road
Hi Tushar,
First of all thanks for replying on the post. I made a mistake that I commented over the temporal term, which I didn't intend to do. My Problem needs to be solved in transient way. I have modified the code as you mentioned, now problem is arising with the discritization part. As we have to modify that part accordingly. Any suggestion to trick with that issue. And secondly how to non-dimensionalize geometry??

Thanks
Umar
Quote:
Originally Posted by Tushar@cfd View Post
Hi Umar,

I would really like to appreciate you for working with non-dimensional form of equation.
I totally agree with Cyp, it appears that you are not using the transient term in your equation. So, try with simpleFoam.

I would rather write the equation like this...

(
fvm::div(phi, U)
- fvm::laplacian(1/Re, U)
);

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

Anyways, you need to be careful about the extra dimensions, see the weblink for better explanation:

http://www.cfd-online.com/Forums/ope...variables.html
umar82088 is offline   Reply With Quote

Old   May 23, 2013, 00:57
Default
  #5
Senior Member
 
T. Chourushi
Join Date: Jul 2009
Posts: 321
Blog Entries: 1
Rep Power: 17
Tushar@cfd is on a distinguished road
Quote:
Originally Posted by umar82088 View Post
Hi Tushar,
First of all thanks for replying on the post. I made a mistake that I commented over the temporal term, which I didn't intend to do. My Problem needs to be solved in transient way. I have modified the code as you mentioned, now problem is arising with the discritization part. As we have to modify that part accordingly. Any suggestion to trick with that issue. And secondly how to non-dimensionalize geometry??

Thanks
Umar
Hi,

I think you need to follow either of the procedure described on the forum:

(1) http://www.cfd-online.com/Forums/ope...variables.html
(2) http://www.cfd-online.com/Forums/ope...-mesh-etc.html

I haven't tried any of these but it seems both the procedure will do the job.
Tushar@cfd is offline   Reply With Quote

Old   June 5, 2013, 12:12
Default
  #6
Member
 
Sami
Join Date: Nov 2012
Location: Cap Town, South Africa
Posts: 87
Rep Power: 13
Mehrez is on a distinguished road
Hi Umar

Did you resolve your problem ?

In order to non-dimensionalize your geometry you need to divide all the dimensions by a characteristic length that you will choose and this characteristic length will appear in your Re number.
Then, you can enter this dimensions in your OpenFoam file (MeshDict).


Mehrez
Mehrez is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
icoFoam crash with unreasonable velocity. Bylund OpenFOAM Running, Solving & CFD 2 November 20, 2011 20:48
Density in icoFoam Densidad en icoFoam manuel OpenFOAM Running, Solving & CFD 8 September 22, 2010 04:10
IcoFoam Not Installed and blockMesh command not found cesarbz OpenFOAM Installation 6 July 4, 2008 04:44
Kubuntu uses dash breaks All scripts in tutorials platopus OpenFOAM Bugs 8 April 15, 2008 07:52
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58


All times are GMT -4. The time now is 13:30.