CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

Units problem and boundary conditions with potentialFoam

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

LinkBack Thread Tools Display Modes
Old   February 14, 2014, 14:31
Default Units problem and boundary conditions with potentialFoam
New Member
Carlos Zelayeta
Join Date: Dec 2013
Posts: 1
Rep Power: 0
Calu is on a distinguished road
Sponsored Links
I have a problem that I think involves some mixed up units and/or a problem in the boundary conditions.
I am trying to solve a compressible flow through a nozzle. The geometry and boundary conditions are copied from the tutorial of Ansys Fluent called Unsteady Compressible Flow.
As a first step, I import the fluent mesh to OpenFoam using fluentMeshToFoam. This mesh is written in meters, that is, it's values range in X axis is -.1 to 0.3 m. As such, I import the mesh without specifying scale. Then I run potentialFoam using the boundary conditions specified in the tutorial. My guess (maybe I'm wrong) is that I should obtain a similar velocity distribution to that obtained after using hybrid initialization in fluent. In fluent I get a maximum value of 60 m/s (U magnitude). But, in potentialfoam, although the distributions is quite similar, the maximum value is around 57000 m/s. Comparing both velocities field with contour plots I see that all the values are multiplied by around 1000.

Then, if I import the mesh using the option -scale 1000 (fluentMeshToFoam -scale 1000) the values range in the imported mesh is -100 to 200. With such mesh I run potentialFoam (using the same BCs, i.e. same T, p and U file than before) and I get correct values of velocity (around 57 m/s as maximum value).

I understand that the points file in polyMesh folder is assumed to be in meters. Is it correct? (Maybe I should ask that particular point in the mesh subforum).

Maybe my BCs are wrong. Can potentialFoam be used with my boundary conditions? I prescribe pressure fixed values at inlet and outlet and the velocity is zeroGradient at inlet and outlet.

I uploaded the files here in case anyone is interested. The polyMesh folder contains the mesh imported without scale option, but I include the original fluent mesh so my problem can be fully replicated.

I will appreciate any hint.
Calu is offline   Reply With Quote
Sponsored Links



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
Wind turbine simulation Saturn CFX 45 February 8, 2016 05:42
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44
Low Mixing time Problem Mavier CFX 5 April 29, 2013 00:00
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 05:05
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 16:55

Sponsored Links

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