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

[Commercial meshers] ANSA to OpenFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 11, 2011, 02:51
Default ANSA to OpenFoam
  #1
Senior Member
 
Join Date: Mar 2011
Posts: 158
Rep Power: 15
tH3f0rC3 is on a distinguished road
Dear all,

I want to create a simulation in ANSA, solve it with OpenFoam and ParaView as the Post-Processor.
I want to simulate a flow. Now I have several questions:
- Do I have to be careful with the selection of element types? Has OpenFoam problems with, for example tetras,...?
- Can I set all boundary conditions in ANSA and "just" solve with OpenFoam or are there several setting OpenFoam needs to solve?
- What is the best data file I should choose for the export file from ANSA to OpenFoam?

I have studied several tutorials, also the bend_pipe tutorial, where the solver controls (controlDict, fvSchemes, fvSolution etc) are used.
- What are these solver controls? Can I use them for my simulation too, or do I first have to understand and edit them?

I hope someone can helpe me. If there are any point where I have to get more precise, please let me know.

EDIT:
The result of the simulation should be to know how the air streams and to describe the heat transfer to a surface overflown by the air.
- Which OpenFoam-solver is the best to choose?

The three directories required to run an application are constant, system and time - directories. Is one of them created by ANSA, f.ex. the constant?


Regards,
tH3f0rC3

Last edited by tH3f0rC3; March 11, 2011 at 03:32.
tH3f0rC3 is offline   Reply With Quote

Old   March 11, 2011, 15:29
Default
  #2
Senior Member
 
Vangelis Skaperdas
Join Date: Mar 2009
Location: Thessaloniki, Greece
Posts: 287
Rep Power: 21
vangelis is on a distinguished road
Hi Dirk,

The mesh type depends on the complexity of your geometry.
If it is simple, use hexa mesh. If more complex use tetras.
I suggest of course that you also create suitable boundary layer elements
as they are important especially when heat transfer is involved.

Regarding the solver have a look at
http://www.openfoam.com/features/standard-solvers.php

to decide which is the best solver to use (heat transfer)

Then go to the tutorials section of OpenFOAM installation and
study the corresponding tutorials of that solver.
See the settings specified in controlDict fvschemes fvsolutions etc

Let me know if you need help with ANSA.

Best regards,

Vangelis
vangelis is offline   Reply With Quote

Old   March 12, 2011, 03:49
Default
  #3
Senior Member
 
Join Date: Mar 2011
Posts: 158
Rep Power: 15
tH3f0rC3 is on a distinguished road
Hi,

I still have read through the list of solvers, but can I use a solver from the group "Heat transfer and buoyancy-driven flows", if I have no buoyancy-driven flows?
I have a flow caused by a ventilator, thus forced convection (I suppose very turbulent)

Thanks for your answer.
If there are some more information and advices you or others want to tell me, please do so.

Regards,
Dirk
tH3f0rC3 is offline   Reply With Quote

Old   March 13, 2011, 06:37
Default
  #4
Senior Member
 
Join Date: Mar 2011
Posts: 158
Rep Power: 15
tH3f0rC3 is on a distinguished road
Hi,

does someone know a tutorial, which describes the procedure to put in the data from ANSA (geometry, boundary conditions,...) to ParaFoam?

Regards,
tH3f0rC3
tH3f0rC3 is offline   Reply With Quote

Old   March 14, 2011, 11:18
Default
  #5
Senior Member
 
Join Date: Mar 2011
Posts: 158
Rep Power: 15
tH3f0rC3 is on a distinguished road
Quote:
Originally Posted by tH3f0rC3 View Post
Hi,

does someone know a tutorial, which describes the procedure to put in the data from ANSA (geometry, boundary conditions,...) to ParaFoam?

Regards,
tH3f0rC3
I have found the pipe_bend Tutorial. It describes that procedure very good. Some of your collegues has suggested to do so in another thread.

But I have exported my data for a little test-modell and there was no blockmesh-file.
- So there's the question if ANSA made a mistake or ih ANSA does not create a blockmeshfile.
- Than it is my job to create his file. But I tried and it failed.

-> So my question if someone does know who made the mistake in this case. Was it me or was is ANSA? :-)

Regards,
tH3f0rC3
tH3f0rC3 is offline   Reply With Quote

Old   March 14, 2011, 14:38
Default
  #6
Senior Member
 
Vangelis Skaperdas
Join Date: Mar 2009
Location: Thessaloniki, Greece
Posts: 287
Rep Power: 21
vangelis is on a distinguished road
Hi there

ANSA does not create a blockmesh file

It creates directly the complete polymesh folder that
contains all the information needed for the mesh
description (nodes, boundaries neighbours etc).
You do not need blockmesh.

Regards

Vangelis
vangelis is offline   Reply With Quote

Old   March 14, 2011, 15:38
Default
  #7
Senior Member
 
Join Date: Mar 2011
Posts: 158
Rep Power: 15
tH3f0rC3 is on a distinguished road
Quote:
Originally Posted by vangelis View Post
Hi there

ANSA does not create a blockmesh file

It creates directly the complete polymesh folder that
contains all the information needed for the mesh
description (nodes, boundaries neighbours etc).
You do not need blockmesh.

Regards

Vangelis
Ok, these are exactly the files which where created inmy case, too.
But I think I have read in the OpenFoam User Guide, that OpenFoam needs a blockmesh-file.
But thanks for your answer, i will check tomorrow!

Regards,
tH3f0rC3
tH3f0rC3 is offline   Reply With Quote

Old   March 15, 2011, 01:17
Default
  #8
Senior Member
 
Vangelis Skaperdas
Join Date: Mar 2009
Location: Thessaloniki, Greece
Posts: 287
Rep Power: 21
vangelis is on a distinguished road
The blockmesh file is only needed when there is no polymesh
folder and needs to be generated from the specs that are listed in blockmesh.
So blockmesh is the means to an end (the polymesh folder)
vangelis is offline   Reply With Quote

Old   March 15, 2011, 02:30
Default
  #9
Senior Member
 
Join Date: Mar 2011
Posts: 158
Rep Power: 15
tH3f0rC3 is on a distinguished road
Ok.
When I blockMesh in the tutorials openFoam creates exactly the same files like ANSA outputs. So far so good.
But the fils created from ANSA seemed not to be exactly that what OpenFoam needs to solve them. I recognised that the files (faces.gz, neighbour.gz, owner.gz and points.gz( created from the blockMesh command have the ending .gz what the files created (exported) from ANSA do not have. This fils are shown as ANSA file.

So do I have to edit them, before OpenFoam can read them?
tH3f0rC3 is offline   Reply With Quote

Old   March 15, 2011, 04:43
Default
  #10
Senior Member
 
Join Date: Mar 2011
Posts: 158
Rep Power: 15
tH3f0rC3 is on a distinguished road
I can now specifie my problem:

The files exported from ANSA are not recognized as cpp-files and OpenFoam want files in cpp-format.

I think a problem could be that my ANSA can only export in OpenFoam versions 1.6 and not a higher version. But I'm working with version 1.7

Could this be the problem?
tH3f0rC3 is offline   Reply With Quote

Old   March 15, 2011, 05:24
Default
  #11
Senior Member
 
Join Date: Mar 2011
Posts: 158
Rep Power: 15
tH3f0rC3 is on a distinguished road
ok, no I have checked, that this isn't the mistake.
I will proceed on with checking.

The error message I recieve is the following:
__________________________________________________ ___________________________________
--> FOAM FATAL IO ERROR:
Unable to set reference cell for field p
Please supply either pRefCell or pRefPoint

file: /data/...MEIN VERZEICHNIS.../system/fvSolution::SIMPLE from line 73 to line 73
From function void Foam::setRefCell
(
const volScalarField&,
const volScalarField&,
label& scalar&,
bool
)
in file cfdTools/general/findRefCell/findRefCell.C at line 115
FOAM exiting __________________________________________________ ___________________________________
tH3f0rC3 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
Getting Started with OpenFOAM wyldckat OpenFOAM 25 August 14, 2022 13:55
[Commercial meshers] About the Commercial and Closed Source Meshers discussed here wyldckat OpenFOAM Meshing & Mesh Conversion 3 July 22, 2020 22:09
OpenFOAM course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 08:51
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 09:04
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25


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