commit:2009:05_20
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
commit:2009:05_20 [2009/05/20 09:04] – jchamps | commit:2009:05_20 [2016/03/30 15:23] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Commit 2009-05-20 ====== | ||
+ | ===== Modifs ===== | ||
+ | |||
+ | ==== Exec Matlab ==== | ||
+ | |||
+ | Pour Newac, on a besoin de calculer des fréquences propres d'une aube en rotation qui frotte sur un carter. Or, qui dit fréquence propre, dit fft. Comme Matlab fait très bien les fft, je me suis dit avec Romain et Luc que ce serait mieux que ce soit lui (Matlab) et pas moi qui le fasse. J'ai donc, à partir d'un truc de Romain pour ses cas-tests Arcelouille, | ||
+ | |||
+ | J'ai fait de la sortie Matlab une fonction objectif, comme ça, on a un extracteur qui vérifie qui l' | ||
+ | |||
+ | |||
+ | ==== Classes python de création de géométrie ==== | ||
+ | |||
+ | Le problème était le suivant: quand on appelait la fonction '' | ||
+ | |||
+ | Tout ça pour essayer d'en venir au fait que Romain a commencé à réécrire '' | ||
+ | |||
+ | Avant, on écrivait: | ||
+ | |||
+ | from toolbox.meshedGeometry3D import createCube | ||
+ | createCube(domain, | ||
+ | 0, 0, 0, 0, 0, 0, 0, 0, 0, op) | ||
+ | |||
+ | Bonjour la lisibilité! Si on veut ajouter l' | ||
+ | |||
+ | Maintenant, on écrit: | ||
+ | |||
+ | from toolbox.genCube import CubeGenerator | ||
+ | cube = CubeGenerator(geometry) | ||
+ | cube.setNbElms(p[' | ||
+ | cube.setLength(p[' | ||
+ | cube.setOperatorList(op) | ||
+ | cube.execute() | ||
+ | |||
+ | C'est beaucoup plus clair et plus lisible. Si on veut mettre des tétras, on écrit maintenant simplement: | ||
+ | |||
+ | |||
+ | cube.setTetra(True) | ||
+ | |||
+ | Facile sans tout polluer! Et si on veut ajouter une nouvelle fonctionnalité, | ||
+ | |||
+ | J'ai refait quelques cas-tests selon ce nouveau modèle pour encourager les gens à écrirre leur futurs cas-tests de la même façon bien propre. | ||
+ | |||
+ | ==== Cas-tests ==== | ||
+ | |||
+ | * Comme j'en avais plein le dos de devoir corriger mes cas-tests de thèse (flambement d' | ||
+ | |||
+ | * Je suis aussi retombé par hasard sur un jeu de données de la thèse de Laurent Adam (le célèbre '' | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Fichiers ajoutés/ | ||
+ | |||
+ | A toolbox/ | ||
+ | A toolbox/ | ||
+ | |||
+ | A sonaca/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A newac/ | ||
+ | A newac/ | ||
+ | A newac/ | ||
+ | A newac/ | ||
+ | A sonaca/ | ||
+ | A sonaca/ | ||
+ | A sonaca/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | A techspace/ | ||
+ | R techspace/ | ||
+ | R techspace/ | ||
+ | R techspace/ | ||
+ | R techspace/ | ||
+ | R techspace/ | ||
+ | |||
+ | --- // |