# Units problem and boundary conditions with potentialFoam

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

 February 14, 2014, 14:31 Units problem and boundary conditions with potentialFoam #1 New Member   Carlos Zelayeta Join Date: Dec 2013 Posts: 1 Rep Power: 0 Hi. 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. Regards,

 Tags potentialfoam

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Saturn CFX 34 October 16, 2014 05:27 volo87 CFX 5 June 14, 2013 17:44 Mavier CFX 5 April 29, 2013 00:00 Pankaj CFX 9 November 23, 2009 05:05 Mark CFX 6 November 15, 2004 16:55

All times are GMT -4. The time now is 00:09.