viscous layers builder: failed at the very first inflation step
viscous layers builder: failed at the very first inflation step
Hi all,
as the topic i'm having this error when i want to mesh my geometry using viscous layers with netgen3d. I really don't understand what's the problem ! i'm attaching the image of the geometry, if i set to use layers on the cilindrical external boundary the mesh goes very well but i need the layers at the fan walls to reduce my y+ value during simulations with saturne. Any idea?
P.S. you can delete the topic in Development -> how to use saturne, sorry i thought it was the right place
Thank you in advance
Re: viscous layers builder: failed at the very first inflation step
Hello Jim
Try to decrease "Total thickness" of layers.
Probably your case reveals a bug, if could share your model I would try to fix the bug.
Best regards
Edward
Re: viscous layers builder: failed at the very first inflation step
i've tried also with 1e-05 but nothing... i'm attaching you the geometry, really thanks
Re: viscous layers builder: failed at the very first inflation step
Ok, I got the file. Could you also provide your Python script of a Python dump of your study, so that I could assign same hypotheses as you.
Regards
Edward
Re: viscous layers builder: failed at the very first inflation step
I don't have any particular hypotheses, i would like to obtain a layered mesh (of any kind both tetra and hexa ar ok for code_saturne) at the rotor wall. I still don't know the right total lenght of the layer because i need to test the mesh with the solver and evaluate y+. As you can see i'm quite a newbie of meshing, i would like (if the problem is not related to a bug) how to produce layered mesh at the wall.
I can attach you the .hdf file but is a bit complicated (many many geometries and tests with meshes) and i don't have any particular setting for the mesh.. i just would like to succeed 
Thanks
Re: viscous layers builder: failed at the very first inflation step
I have fixed the bug.
I can either (1) provide you with a patched source file so that you to be able to re-build SALOME from sources or (2) transfer you a study with a computed mesh if you specify meshing parameters you require.
If you prefer the option (2) it's better that you transfer me your study where you already adjusted meshing parameters (including Viscous Layers hypothesis) to get a mesh of desired quality, and I only compute the mesh and transfer the study back.
Best regards
Edward
Re: viscous layers builder: failed at the very first inflation step
umh, since i have many mesh to do with such kind of layer i prefer to patch salome in order to solve the problem, how can i do?
really really thanks
Re: viscous layers builder: failed at the very first inflation step
Here are instructions on compilation: http://docs.salome-platform.org/salome_6_6_0/gui/KERNEL/INSTALL.html
Attached is the file (for V 6.6.0) that you should put within SALOME sources to SMESH/src/StdMeshers/StdMeshers_ViscousLayers.cxx and then build SALOME.
Best regards
Edward
Re: viscous layers builder: failed at the very first inflation step
I extracted SMESHsourcesV6.6.0.tar.gz from the debian 6 64 bit wizard in InstallWizard_6.6.0_Debian_6.0_64bit/Products/SOURCES,
than i replaced the file StdMeshers_ViscousLayers.cxx inside /src/StdMeshers/ , then re-zipped the entire folder as SMESHsourcesV6.6.0.tar.gz (overwrite -> yes)
now i've launched the wizard to re-install Salome.
This should be the same as using the source as you suggested right?
Re: viscous layers builder: failed at the very first inflation step
Re: viscous layers builder: failed at the very first inflation step
umh, it doesn't work, same error again,
i'm using :
1D : Wire discretization : automatic length -> fineness = 0,15
2D : Netgen2D , quadrangle preference
3D : Tetrahedron + viscous layers = total length 1e-4 , N layers = 2, stretch factor = 1
Re: viscous layers builder: failed at the very first inflation step
Hello Jim,
I suppose you use "install binaries" mode with SALOME Install Wizard to install SALOME. In this case, SALOME (and all pre-requisites) are installed by unpacking prebuilt binaries from archives.
You, however, need to rebuild SMESH module with the patch applied. You can do in two ways:
1) Use "install sources and build" mode with SALOME Install Wizard. In this way, all pre-requisites and SALOME will be built from source packages. Note that this is a) very time-consuming procedure that might take hours and b) it is not guaranteed that all will be built correctly - some products are supplied to be natively installed on Linux station and if something is missing, installation procedure will most likely fail.
2) Alternative way is to built only SMESH module from sources. To do this:
- Unpack SMESHsourcesV6.6.0.tar.gz to your SALOME installation folder (let's say, it is /users/home/salome_6.6.0).
- Apply the patch to sources.
- Compile SMESH in the following way:
bash
cd /users/home/salome_6.6.0
source ./env_products.sh
./build.sh -b -o -p /users/home/salome_6.6.0 SMESH
Note, that in this way SMESH will be installed to the same folder /users/home/salome_6.6.0/SMESH_6.6.0 in such a way overriding that one installed from Install Wizard.
Regards,
Vadim.
Re: viscous layers builder: failed at the very first inflation step
Thank you Vadim,
i've followed your step 2 with success but again the errore is there, probably i'm doing something worng with the mesh settings values or the approach to the mesh but i really don't know where
Re: viscous layers builder: failed at the very first inflation step
I managed to compute the mesh with Viscous Layers with following parameters:
3D: Tetrahedron (Netgen) + Viscous Layers( thickness = 0.002 )
2D: NETGEN 1D2D with no hypotheses.
To check that you run the updated version, uncomment in the file I sent the line #80 to have it looking as this:
#define __myDEBUG
and re-build SMESH again.
If the patched version is running, you see in terminal the output like this:
execfile('/tmp/viscous.py')
makeLayers_1()
-- geomSize = 0.00387052, stepSize = 0.0007
inflate1_step0()
makeTmpFacesOnEdges1()
smooth1_Ed370_InfStep0()
smooth1_Ed367_InfStep0()
smooth1_Ed362_InfStep0()
smooth1_Ed357_InfStep0()
smooth1_Ed353_InfStep0()
smooth1_Ed350_InfStep0()
smooth1_Ed345_InfStep0()
etc
Regards
Edward
Re: viscous layers builder: failed at the very first inflation step
sorry.. i'm completely a newbie..
i can't compile with step 1 (i'm on Ubuntu 12.04 LTS 64bit) because even if it says finished i have a compile eror :
>>> The following modules will be built:
SMESH
>>> Setting environment
===========================================================================
Starting SALOME build at ven 22 feb 2013, 17.00.33, CET
===========================================================================
>>> Processing SMESH module
... Performing build_configure
... Performing configure
configure: WARNING: undefined CGALHOME variable which specify CGAL library installation directory
configure: WARNING: undefined PADDERHOME variable which specify PADDER installation directory
... Performing make
make: *** [/home/pisa/salome_6.6.0/SMESH_SRC_6.6.0/configure] Errore 1
>>> Finished SMESH module
===========================================================================
SALOME build finished at ven 22 feb 2013, 17.00.55, CET
and if i follow step 1, compiling with source it gives me an error... any suggestion?
Re: viscous layers builder: failed at the very first inflation step
ok, i installed cgal and latex from repository and now the new erro 
>>> The following modules will be built:
SMESH
>>> Setting environment
===========================================================================
Starting SALOME build at ven 22 feb 2013, 17.04.11, CET
===========================================================================
>>> Processing SMESH module
... Performing build_configure
... Performing configure
... Performing make
make: *** [config.status] Errore 2
/home/pisa/salome_6.6.0/SMESH_SRC_6.6.0/configure: line 3916: syntax error near unexpected token `no'
/home/pisa/salome_6.6.0/SMESH_SRC_6.6.0/configure: line 3916: `AC_ENABLE_STATIC(no)'
>>> Finished SMESH module
===========================================================================
SALOME build finished at ven 22 feb 2013, 17.04.15, CET
===========================================================================
Re: viscous layers builder: failed at the very first inflation step
ok, i'v installed libtool from ubuntu repository and now
salome_6.6.0/KERNEL_6.6.0/include/salome/SALOME_KernelServices.hxx:104:1: warning: 'std:
stream& operator<<(std:
stream&, const CORBA::Exception&
' defined but not used [-Wunused-function]
... Performing make install
>>> Finished SMESH module
===========================================================================
SALOME build finished at ven 22 feb 2013, 17.45.57, CET
===========================================================================
but still the same error and any trace of debug...
Re: viscous layers builder: failed at the very first inflation step
Re: viscous layers builder: failed at the very first inflation step
Hello Jim,
Please tar.gz and attach the log files related to building of SMESH module in your salome_6.6.0/LOGS directory (there should be files build_configure_SMESH.log, configure_SMESH.log,make_SMESH.log, make_install_SMESH.log, or at least some of them).
Regards,
Vadim.
Re: viscous layers builder: failed at the very first inflation step
Re: viscous layers builder: failed at the very first inflation step
SOLVED
in Ubuntu if you compile with automake 1.11 you have an error, i removed automake 1.11 and installed 1.10 from synaptic and then the build succeeded, now i'm meshing fine with layers.
Really thanks to you all for the help !!
Re: viscous layers builder: failed at the very first inflation step
Hello,
May I ask when should be released the next version of Salome in which this fixed viscous layer mesher will be implemented?
Thank you very much for the answer,
Best regards,
William
Re: viscous layers builder: failed at the very first inflation step
Hello William,
Next public version of SALOME is expected to be released in April-May 2013.
Regards,
Vadim.
Previously William Tougeron wrote:
Hello,
May I ask when should be released the next version of Salome in which this fixed viscous layer mesher will be implemented?
Thank you very much for the answer,
Best regards,
William
Re: viscous layers builder: failed at the very first inflation step
Dear Jim,
Could you please explain, step by step, what exactly did you do?
I'm read the conversation twice, but I'm little bid confused...
Also, I'm not a linux guru and manual work seems to be beyond my strength.
Next public version of SALOME is expected to be released in April-May 2013, but I need a solution now.
Thank you in advance!
Re: viscous layers builder: failed at the very first inflation step
Re: viscous layers builder: failed at the very first inflation step
hi all,
from ubuntu repository (SYnaptic package manager) i removed automake version 1:1.11 and then installed the 1:1.10 version.
Next I did as Vadim sayd:
- Unpack SMESHsourcesV6.6.0.tar.gz to your SALOME installation folder (let's say, it is /users/home/salome_6.6.0).
- Apply the patch to sources (overwriting the .cxx file in the folder extracted before).
- Compile SMESH in the following way:
bash
cd /users/home/salome_6.6.0
source ./env_products.sh
./build.sh -b -o -p /users/home/salome_6.6.0 SMESH
Note, that in this way SMESH will be installed to the same folder /users/home/salome_6.6.0/SMESH_6.6.0 in such a way overriding that one installed from Install Wizard.
and it worked

