ANSA to OpenFoam
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.
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?
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
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.
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.
does someone know a tutorial, which describes the procedure to put in the data from ANSA (geometry, boundary conditions,...) to ParaFoam?
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? :-)
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.
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!
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)
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?
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?
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
in file cfdTools/general/findRefCell/findRefCell.C at line 115
FOAM exiting __________________________________________________ ___________________________________
|All times are GMT -4. The time now is 18:35.|