Difference between revisions of "Contrib/funkySetFields"

From OpenFOAMWiki
m (Reverted edit of AtsKvh, changed back to last version by Bgschaid)
Line 1: Line 1:
{{VersionInfo}}{{Version1.3}}{{Version1.4}}
+
[http://acoweb.gratizit.info/ Acoweb] [http://alessandromagno.gratizit.info/ Alessandro magno] [http://videocartonisexy.gratizit.info/ Video cartoni sexy] [http://gayhentai.dewais.info/ Gay hentai] [http://fordthe1337.50webs.com/html/congiura-di1/ congiura di spie] [http://chooit.50webs.com/view/una-data9/ una data per ace combat 4] [http://bellecasalinghe.itrome.info/ Belle casalinghe] [http://pencilpimp.50webs.com/small/emule.htm emule 2] [http://fordthe1337.50webs.com/html/victoria-silvested/ victoria silvested] [http://chooit.50webs.com/view/tego-calderon5/ tego calderon guasa guasa] [http://germiloew.50webs.com/resources/in-saecula/ in saecula saeculorum] [http://germiloew.50webs.com/resources/calciomercato/ calciomercato 2004] [http://fotoraccontigay.dewais.info/ Fotoracconti gay] [http://alloggisuoregemelli.gratizit.info/ Alloggi suore gemelli] [http://cumface.itrome.info/ Cum face] [http://fordthe1337.50webs.com/html/auto-1/ auto 3 porte] [http://germiloew.50webs.com/resources/jabra-bt2/ jabra bt800 bluetooth] [http://ampland.gratizit.info/ Ampland] [http://germiloew.50webs.com/resources/download-winzip1/ download winzip] [http://donnesessocavalli.itrome.info/ Donne sesso cavalli] [http://sborrainfaccia.mialn.info/ Sborra in faccia] [http://fordthe1337.50webs.com/html/frasi-romantica1/ frasi romantica inglese] [http://animalsexvideogratis.itrome.info/ Animal sex video gratis] [http://emoticonerotiche.dewais.info/ Emoticon erotiche] [http://fordthe1337.50webs.com/html/linksys-wapgeu/ linksys wap54geu] [http://fordthe1337.50webs.com/html/costruire-macchine/ costruire macchine] [http://disegnidisneycolorati.itrome.info/ Disegni disney colorati] [http://enterococcusfaecalis.dewais.info/ Enterococcus faecalis] [http://decoupagecarte.itrome.info/ Decoupage carte] [http://videodimasturbazionemaschile.gratizit.info/ Video di masturbazione maschile] [http://chooit.50webs.com/view/mimoza/ mimoza] [http://pencilpimp.50webs.com/small/www-laburra.htm www laburra com] [http://luanaborgia.cocki.info/ Luana borgia] [http://donnetroievideo.itrome.info/ Donne troie video] [http://scopateamatoriali.mialn.info/ Scopate amatoriali] [http://fordthe1337.50webs.com/html/volo-san3/ volo san gimignano] [http://fordthe1337.50webs.com/html/pagro/ pagro] [http://itrome.info/index4_250.html site] [http://scaricaremusicaitaliana.mialn.info/ Scaricare musica italiana] [http://rancidfallbackdown.mialn.info/ Rancid fall back down] [http://pencilpimp.50webs.com/small/suoneria-stay.htm suoneria stay] [http://itrome.info/index0_250.html url] [http://videopornoestremi.gratizit.info/ Video porno estremi] [http://cocki.info cocki.info] [http://germiloew.50webs.com/resources/www-cinestar/ www cinestar it] [http://fotocasalinghetroie.dewais.info/ Foto casalinghe troie] [http://vecchiemammetroie.gratizit.info/ Vecchie mamme troie] [http://neretettone.cocki.info/ Nere tettone] [http://chooit.50webs.com/view/teatro-nazionale/ teatro nazionale milano] [http://fordthe1337.50webs.com/html/caern/ caern] [http://pencilpimp.50webs.com/small/providance.htm providance] [http://chooit.50webs.com/view/benq-dc9/ benq dc e43] [http://congressohotel.itrome.info/ Congresso hotel] [http://gratizit.info/index1_500.html site] [http://pornorusse.cocki.info/ Porno russe] [http://wwwlambertucciit.gratizit.info/ Www lambertucci it] [http://germiloew.50webs.com/resources/xgto/ x800gto 256] [http://chooit.50webs.com/view/cover-cd13/ cover cd audio renato zero] [http://dragonballhentay.dewais.info/ Dragonball hentay] [http://fotosailormoonxxx.dewais.info/ Foto sailormoonxxx] [http://chooit.50webs.com/view/basi-a/ basi a chi mi dice] [http://germiloew.50webs.com/resources/musica-italiana4/ musica italiana midi] [http://pencilpimp.50webs.com/small/calzature-per1.htm calzature per donna] [http://pencilpimp.50webs.com/small/www-playboy.htm www playboy com br] [http://melitatoniolonaked.cocki.info/ Melita toniolo naked] [http://fordthe1337.50webs.com/html/i-don44/ i don t wanna know puff daddy] [http://fototransessuali.dewais.info/ Foto transessuali] [http://chooit.50webs.com/view/epson-epln/ epson epln2750] [http://sakurahentay.mialn.info/ Sakura hentay] [http://fordthe1337.50webs.com/html/biglietti-roma/ biglietti roma ramazzotti] [http://fordthe1337.50webs.com/html/tok/ tok] [http://pencilpimp.50webs.com/small/car-audio9.htm car audio mp3 usb] [http://fordthe1337.50webs.com/html/dscp-memory/ dscp200 memory] [http://fordthe1337.50webs.com/html/h-i/ h i t] [http://donnesexy.itrome.info/ Donne sexy] [http://dewais.info/index5_1000.html home] [http://germiloew.50webs.com/resources/caldonazzo/ caldonazzo] [http://trailersgratisporno.gratizit.info/ Trailers gratis porno] [http://sborracalda.mialn.info/ Sborra calda] [http://itrome.info/index0_250.html url] [http://dewais.info/index5_1000.html home] [http://gratizit.info/index1_500.html site] [http://dewais.info/index6_250.html homepage] [http://profumodonna.cocki.info/ Profumo donna] [http://climatizzatorefujiko.itrome.info/ Climatizzatore fujiko] [http://germiloew.50webs.com/resources/neugries-it/ neugries it] [http://cocki.info/index4_250.html site] [http://frasicompleanno50anni.dewais.info/ Frasi compleanno 50 anni] [http://roulottetorino.mialn.info/ Roulotte torino] [http://chooit.50webs.com/view/i-giganti2/ i giganti della tessaglia] [http://chooit.50webs.com/view/mircea/ mircea] [http://anteprimavideolesbo.itrome.info/ Anteprima video lesbo] [http://chooit.50webs.com/view/el-palenque/ el palenque] [http://supersesso.mialn.info/ Super sesso] [http://gratizit.info/ gratizit.info] [http://chooit.50webs.com/view/courier/ courier] [http://chooit.50webs.com/view/www-play3/ www play boy com] [http://fordthe1337.50webs.com/html/cenerentola-innamorata/ cenerentola innamorata masini] [http://pornosexvideo.cocki.info/ Porno sex video] [http://frasidicompleanno.dewais.info/ Frasi di compleanno] [http://motelagipbari.cocki.info/ Motel agip bari] [http://mialn.info/index1_250.html page] [http://bestannunciit.itrome.info/ Bestannunciit] [http://concessionariatoyotapiemonte.itrome.info/ Concessionaria toyota piemonte] [http://fordthe1337.50webs.com/html/nick-berg4/ nick berg video decapitazione] [http://germiloew.50webs.com/resources/terratec-altoparlanti/ terratec altoparlanti] [http://cazzogayinculoporno.itrome.info/ Cazzo gay in culo porno] [http://carrellotendamontanausato.itrome.info/ Carrello tenda montana usato] [http://chooit.50webs.com/view/societa-italiana/ societa italiana sterilizzazione] [http://orlandogreenmeadowspettingfarm.cocki.info/ Orlando green meadows petting farm] [http://pencilpimp.50webs.com/small/traduzione-della4.htm traduzione della canzone don t tell me] [http://fotodonnematuregrasse.dewais.info/ Foto donne mature grasse] [http://gratizit.info/index1_500.html site] [http://pencilpimp.50webs.com/small/pastiglie-moto.htm pastiglie moto] [http://fordthe1337.50webs.com/html/dead-to2/ dead to] [http://raccontiverisesso.mialn.info/ Racconti veri sesso] [http://autonoleggiogrosseto.itrome.info/ Autonoleggio grosseto] [http://ereditarietagrupposanguigno.dewais.info/ Ereditarieta gruppo sanguigno] [http://chooit.50webs.com/view/chio-snake/ chio snake] [http://chooit.50webs.com/view/me-encantas/ me encantas nena] [http://pencilpimp.50webs.com/small/forex.htm forex] [http://pencilpimp.50webs.com/small/pco1.htm pco] [http://evarobinsnuda.dewais.info/ Eva robins nuda] [http://fordthe1337.50webs.com/html/wireless-usb2/ wireless usb 54] [http://pencilpimp.50webs.com/small/te-dejo.htm te dejo libre] [http://transexit.gratizit.info/ Transex it] [http://fordthe1337.50webs.com/html/fk-it1/ fk it di eamon] [http://registrazionenuovoaccountmsn.mialn.info/ Registrazione nuovo account msn] [http://chooit.50webs.com/view/hornet1/ hornet 600 2004] [http://pencilpimp.50webs.com/small/morwa-dla.htm morwa dla s] [http://sessocollant.mialn.info/ Sesso collant] [http://fordthe1337.50webs.com/html/poeti-romantici1/ poeti romantici e luna] [http://troieagrosseto.gratizit.info/ Troie a grosseto] [http://elenasantarellinuda.dewais.info/ Elena santarelli nuda] [http://itrome.info/index2_1000.html map] [http://escortbpadova.dewais.info/ Escort bpadova] [http://germiloew.50webs.com/resources/video-il1/ video il nome dell amore paolo meneguzzi] [http://wwwpornomotoreit.gratizit.info/ Www pornomotore it] [http://tatuaggiofata.mialn.info/ Tatuaggio fata] [http://fordthe1337.50webs.com/html/pipe-di/ pipe di schiuma] [http://fordthe1337.50webs.com/html/Club-hardball1/ club hardball com] [http://scuoladanzamarche.mialn.info/ Scuola danza marche] [http://volosveziagothenburgsaeve.gratizit.info/ Volo svezia gothenburg saeve] [http://fordthe1337.50webs.com/html/mio-fratello2/ mio fratello fuma] [http://fordthe1337.50webs.com/html/tailleur-donna/ tailleur donna bianco] [http://pencilpimp.50webs.com/small/online-auctions.htm online auctions uk] [http://chooit.50webs.com/view/mas-alla1/ mas alla de los] [http://fordthe1337.50webs.com/html/philips-23/ philips  videoproiettore] [http://fotogratisuomininudi.dewais.info/ Foto gratis uomini nudi] [http://sakuraporno.mialn.info/ Sakura porno] [http://mialn.info/index4_250.html index] [http://pencilpimp.50webs.com/small/roms-free.htm roms free download] [http://fordthe1337.50webs.com/html/philips22/ philips 14] [http://pencilpimp.50webs.com/small/sambhar.htm sambhar] [http://pencilpimp.50webs.com/small/tj-mahal.htm tj mahal] [http://troiecinesi.gratizit.info/ Troie cinesi] [http://pencilpimp.50webs.com/small/trucco-pokemon.htm trucco pokemon verde foglia] [http://calendariouomininudi.itrome.info/ Calendario uomini nudi] [http://pornoanimali.cocki.info/ Porno animali] [http://sexysegretarie.mialn.info/ Sexy segretarie] [http://pencilpimp.50webs.com/small/appunti-scuola.htm appunti scuola] [http://gratizit.info/index3_250.html link] [http://chooit.50webs.com/view/rammstein-asche/ rammstein asche zu asche] [http://wwwgiochiwinxit.gratizit.info/ Www giochi winx it] [http://scopare.mialn.info/ Scopare] [http://fotonuderubate.dewais.info/ Foto nude rubate] [http://germiloew.50webs.com/resources/vendite-all/ vendite all asta] [http://scarpaadidasbambino.mialn.info/ Scarpa adidas bambino] [http://germiloew.50webs.com/resources/kvm-hp/ kvm hp 8] [http://storiecuckold.mialn.info/ Storie cuckold] [http://contraccezionepillola.itrome.info/ Contraccezione pillola] [http://hotelbenesseretoscana.dewais.info/ Hotel benessere toscana] [http://tuir.gratizit.info/ Tuir] [http://fordthe1337.50webs.com/html/better-word/ better word] [http://germiloew.50webs.com/resources/spazio-web7/ spazio web libero] [http://chooit.50webs.com/view/rs-6/ rs 232 palmari] [http://grandicazzi.dewais.info/ Grandi cazzi] [http://prestitooristanoonline.cocki.info/ Prestito oristano online] [http://riassuntoodissea.mialn.info/ Riassunto odissea] [http://germiloew.50webs.com/resources/matia/ matia] [http://germiloew.50webs.com/resources/soy-de/ soy de aragon] [http://offertesettemari.cocki.info/ Offerte settemari] [http://cryogenteam.itrome.info/ Cryogenteam] [http://gratizit.info/index3_250.html link] [http://germiloew.50webs.com/resources/masturbazione-al/ masturbazione al telefono] [http://sexhorsexxx.mialn.info/ Sex horse xxx] [http://frasedolceteneredamore.dewais.info/ Frase dolce tenere d amore] [http://siteadslhtmlittele2it.mialn.info/ Site adsl html it tele2 it] [http://lucillaagostisexy.cocki.info/ Lucilla agosti sexy] [http://tuttotroiegratis.gratizit.info/ Tutto troie gratis] [http://disegnideigormiti.itrome.info/ Disegni dei gormiti] [http://fordthe1337.50webs.com/html/tecra-s3/ tecra s2 centrino pm] [http://videovecchiegratis.gratizit.info/ Video vecchie gratis] [http://chooit.50webs.com/view/leti-e/ leti e dante] [http://germiloew.50webs.com/resources/componenti-crossover/ componenti crossover] [http://fichesborrate.dewais.info/ Fiche sborrate] [http://elencoattriciporno.dewais.info/ Elenco attrici porno] [http://chooit.50webs.com/view/insieme-e/ insieme e piu bello] [http://pencilpimp.50webs.com/small/cretino.htm cretino] [http://gratizit.info/index4_500.html url] {{VersionInfo}}{{Version1.3}}{{Version1.4}}
  
  
Line 13: Line 13:
  
 
This utility '''can''' save you the work to program your own utility to set initial-conditions, but
 
This utility '''can''' save you the work to program your own utility to set initial-conditions, but
* you should be familiar with the C++ expression syntax
+
* you should be familiar with the C   expression syntax
 
* it makes it easier to 'shoot yourself in the foot' (do stupid things)
 
* it makes it easier to 'shoot yourself in the foot' (do stupid things)
 
* especially for large cases a custom-made utility might be more efficient
 
* especially for large cases a custom-made utility might be more efficient
Line 53: Line 53:
 
  funkySetFields . cavity -field p -expression '0' -time 0
 
  funkySetFields . cavity -field p -expression '0' -time 0
 
The damBreak-tutorial could be initialized with
 
The damBreak-tutorial could be initialized with
  funkySetFields . damBreak -time 0 -field gamma -expression " pos().x <= 0.1461 && pos().y <= 0.292 ? 1 : 0"
+
  funkySetFields . damBreak -time 0 -field gamma -expression " pos().x <= 0.1461
or (if you don't want to overwrite the whole gamma field):
+
funkySetFields . damBreak -time 0 -field gamma -expression 1 -condition "pos().x <= 0.1461 && pos().y <= 0.292"
+
 
+
=== Advanced command line usage ===
+
 
+
For a newly created field the dimension can be specified with the <tt>-dimension</tt>-option.
+
 
+
Usually all the patches of the field (not the symmetry/wedge/...-stuff) are set to the type <tt>zeroGradient</tt>. With the option <tt>-keepPatches</tt> the patches are preserved from what was previously on the disk.
+
 
+
The option <tt>-valuePatches</tt> specifies a list of patches which shall be set to fixed value. The values are taken from the interior of the field.
+
 
+
For instance to get a similar behaviour as the <tt>setHotRoom</tt> that sets the boundary conditions for the <tt>hotRoom</tt>-tutorial these commands are issued:
+
 
+
funkySetFields . hotRoom -time 0 -field T -keepPatches -valuePatches "floor ceiling" -condition "pos().x>4.5 && pos().x<5.5 && pos().z>4.5 && pos().z<5.5 && pos().y<2" -expression "600."
+
funkySetFields . hotRoom -time 0 -field T -keepPatches -expression "300."
+
 
+
The first one sets the values on the patches, the second one clears the interior field.
+
 
+
=== Dictionary usage===
+
 
+
In the dictionary <tt>funkySetFieldsDict</tt> a list of dictionaries named <tt>expressions</tt> is read and one dictionary is ''evaluated'' after another. The title of the dictionaries is only used for documentation. In each dictionary there can be 3 entries:
+
;field: the target field
+
;expression: the expression to write to the field
+
;condition: select a subset of the cells (this is optional)
+
;keepPatches: see command line options (optional)
+
;create: see command line options (optional)
+
;valuePatches: see command line options (optional)
+
;dimesion: see command line options (optional)
+
 
+
An example dictionary would be:
+
<cpp>
+
expressions
+
(
+
circleVel
+
{
+
field U;
+
expression "(grad(dist())^vector(0,0,-1))*mag(pos()-vector(0.05,0.05,0))/0.05";
+
        }
+
pressure1
+
    {
+
field p;
+
expression "10.*(0.1-pos().y)";
+
}
+
pressure2
+
{
+
field p;
+
expression "p+U&U";
+
condition "pos().x > (max(pos().x)-min(pos().x))/2";
+
}
+
);
+
</cpp>
+
This sets the velocity field as in the command-line example and then sets the pressure field to a rather strange value.
+
 
+
== Expression syntax ==
+
 
+
The most complete documentation of the expression syntax is the source file for the Bison-grammar (<tt>*.yy</tt> and <tt>*.ll</tt>). Sorry.
+
 
+
These C++ operators are implemented:
+
; +,-,*,/ : Arithmetic operators. Can be used for vectors and scalars (only if useful. For instance: vectors can't be added to scalars)
+
; &,^ : The vector operators as defined by OpenFOAM
+
; <,>,<=,>=,!=,== : Comparison operators (only defined for scalars)
+
; &&,|| : Logical Operators
+
; Conditional operator: The conditional operator (<tt> test ? val1 : val2</tt>) is defined for scalars and vectors
+
 
+
Operator precedence should be the same as for C++.
+
 
+
All the fields in the current time-step can be used. If the field is also the target field the old value is used. Then the field is written using the new value.
+
 
+
These pseudo-variables are defined:
+
; pi : Guess ;)
+
These functions are defined:
+
; pow,log,exp,sqr,sqrt,sin,cos,tan : Only defined for scalars
+
; mag : defined for scalars and vectors
+
; grad : gradient of a scalar-field
+
; curl : curl of a vector-field
+
;snGrad: surface normal gradient
+
; div : divergence of a vector-field
+
; laplaction : laplacian of a field (with an optional "coefficient"-field)
+
; min,max : minimum and maximum of a scalar field
+
; average,integrate,sum,reconstruct : reconstruct a face field (yielding a volume field)
+
 
+
These pseudo-functions are defined:
+
; pos : Vector field with the cell-centers
+
; fpos : face-vectorField with the positions of the faces
+
; face : surface field with the face-vectors
+
; area : surface field with the face-areas
+
; dist : Scalar field that gives the distance to the nearest wall (using <tt>wallDist</tt>)
+
; rdist: a field with the distances from a given vector (save <tt>mag(pos()-v)</tt>)
+
; rand : Scalars-field with random numbers from [0,1]
+
; randNormal : Random-number scalar field that is Gauss-distributed
+
; vol : Volume of the cells
+
; deltaT : a field that returns the time-step
+
; time : a field that returns the current time
+
 
+
== Technical ==
+
 
+
* the utility only writes  <tt>volScalar</tt>- and <tt>volVectorField</tt>s. It can read and operate on <tt>surfaceFields</tt>
+
* no dimension checking is done (but the dimension of the target field is preserved, if not overwritten by the option)
+
 
+
=== Known Bugs ===
+
 
+
This utility is still under development. Therefore there is a number of known bugs (and also some unknown ones)
+
 
+
* Numbers without a decimal point are not correctly recognized
+
* Subtracting two numbers does not work (but subtracting fields does)
+
 
+
== Download ==
+
 
+
The most recent version of the sources can always be downloaded via Subversion:
+
 
+
svn checkout https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Breeder/utilities/postProcessing/FunkySetFields/
+
 
+
These are the tarballs of the sources:
+
[[Media:funkySetFields.r7568.tar.gz|funkySetFields.r7568.tar.gz]]: The tar file with the sources and included generated sources. Works with 1.4<br>
+
[[Media:funkySetFields.r7241.tar.gz|funkySetFields.r7241.tar.gz]]: The last version that works with 1.3
+
 
+
=== Ancient history ===
+
 
+
[[Media:funkySetFields.tar.gz|funkySetFields.tar.gz]]: The original Version that worked with {{Version1.3}}
+
 
+
[[Media:funkySetFields-generatedSources.diff.gz|funkySetFields-generatedSources.diff.gz]]: The diff file with bison-generated (by bison-2.1) sources and patches to compile funkySetFields under OpenFOAM-1.3 and without bison 2.1 (the current bison version 2.3 generates .C files which can't be compiled by gcc-4.1.0 included in OpenFOAM-1.3). {{Version1.3}} (To Bgschaid: Feel free to remove this link upon completion of the new release. [[User:7islands|7islands]] 00:47, 18 Feb 2007 (CET))
+
 
+
[[Media:FunkySetFields.r7106.tar.gz|funkySetFields.r7106.tar.gz]]: A new version of funkySetFields. Not described yet on this page. Some of the new features include
+
* new fields are created
+
* ability to write fixedValue-patches
+
* work with cell sets
+
* work with surfaceFields (on writing)
+
 
+
An update of this page will follow in the next days. The generated files for those laking the right bison-Version will also be added {{Version1.3}}
+
 
+
== Plans ==
+
 
+
* factor out the parsing in a library to make it usable from other utilities
+
* make expression evaluation more efficient
+
 
+
== History ==
+
 
+
* 2006-03-26: First upload of the utility
+
* 2007-02-02: New Version uploaded. Has more features than described on this page
+
* 2007-03-02: New Version with included generated Files uploaded and new features descibed
+
* 2007-06-20: New Version that works with 1.4 and addtions by Takuya Oshima (rdist and deltaT)
+
 
+
--[[User:Bgschaid|Bgschaid]] 22:53, 26 Mar 2006 (CEST)
+

Revision as of 12:26, 27 September 2007

Acoweb Alessandro magno Video cartoni sexy Gay hentai congiura di spie una data per ace combat 4 Belle casalinghe emule 2 victoria silvested tego calderon guasa guasa in saecula saeculorum calciomercato 2004 Fotoracconti gay Alloggi suore gemelli Cum face auto 3 porte jabra bt800 bluetooth Ampland download winzip Donne sesso cavalli Sborra in faccia frasi romantica inglese Animal sex video gratis Emoticon erotiche linksys wap54geu costruire macchine Disegni disney colorati Enterococcus faecalis Decoupage carte Video di masturbazione maschile mimoza www laburra com Luana borgia Donne troie video Scopate amatoriali volo san gimignano pagro site Scaricare musica italiana Rancid fall back down suoneria stay url Video porno estremi cocki.info www cinestar it Foto casalinghe troie Vecchie mamme troie Nere tettone teatro nazionale milano caern providance benq dc e43 Congresso hotel site Porno russe Www lambertucci it x800gto 256 cover cd audio renato zero Dragonball hentay Foto sailormoonxxx basi a chi mi dice musica italiana midi calzature per donna www playboy com br Melita toniolo naked i don t wanna know puff daddy Foto transessuali epson epln2750 Sakura hentay biglietti roma ramazzotti tok car audio mp3 usb dscp200 memory h i t Donne sexy home caldonazzo Trailers gratis porno Sborra calda url home site homepage Profumo donna Climatizzatore fujiko neugries it site Frasi compleanno 50 anni Roulotte torino i giganti della tessaglia mircea Anteprima video lesbo el palenque Super sesso gratizit.info courier www play boy com cenerentola innamorata masini Porno sex video Frasi di compleanno Motel agip bari page Bestannunciit Concessionaria toyota piemonte nick berg video decapitazione terratec altoparlanti Cazzo gay in culo porno Carrello tenda montana usato societa italiana sterilizzazione Orlando green meadows petting farm traduzione della canzone don t tell me Foto donne mature grasse site pastiglie moto dead to Racconti veri sesso Autonoleggio grosseto Ereditarieta gruppo sanguigno chio snake me encantas nena forex pco Eva robins nuda wireless usb 54 te dejo libre Transex it fk it di eamon Registrazione nuovo account msn hornet 600 2004 morwa dla s Sesso collant poeti romantici e luna Troie a grosseto Elena santarelli nuda map Escort bpadova video il nome dell amore paolo meneguzzi Www pornomotore it Tatuaggio fata pipe di schiuma club hardball com Scuola danza marche Volo svezia gothenburg saeve mio fratello fuma tailleur donna bianco online auctions uk mas alla de los philips videoproiettore Foto gratis uomini nudi Sakura porno index roms free download philips 14 sambhar tj mahal Troie cinesi trucco pokemon verde foglia Calendario uomini nudi Porno animali Sexy segretarie appunti scuola link rammstein asche zu asche Www giochi winx it Scopare Foto nude rubate vendite all asta Scarpa adidas bambino kvm hp 8 Storie cuckold Contraccezione pillola Hotel benessere toscana Tuir better word spazio web libero rs 232 palmari Grandi cazzi Prestito oristano online Riassunto odissea matia soy de aragon Offerte settemari Cryogenteam link masturbazione al telefono Sex horse xxx Frase dolce tenere d amore Site adsl html it tele2 it Lucilla agosti sexy Tutto troie gratis Disegni dei gormiti tecra s2 centrino pm Video vecchie gratis leti e dante componenti crossover Fiche sborrate Elenco attrici porno insieme e piu bello cretino url Valid versions: OF version 13.png OF version 14.png


1 Short description

This utility sets the value of a scalar or a vector field depending on an expression that can be entered via the command line or a dictionary. It can also be used to set the value of fields on selected patches. It's like the setFields-utility on steroids.

It can be used to set non-uniform intial-conditions without programming.

This utility is provided as-is and is a permanent Beta-Version (but it works fine for me, if it doesn't for you: tell me about it and I'll see what the problem is)

1.1 Words of warning

This utility can save you the work to program your own utility to set initial-conditions, but

  • you should be familiar with the C expression syntax
  • it makes it easier to 'shoot yourself in the foot' (do stupid things)
  • especially for large cases a custom-made utility might be more efficient

(it's like a Swiss Army Knife: useful for a lot of things, but not necessarily the best tool for these tasks)

2 Pre-requisites

To compile this utility at least version 2.1 of Bison has to be installed. Check with

bison -V

on the command line before trying to compile it.

2.1 For those who don't have bison 2.1

It has been brought to my attention that there are a lot of people that still have to live with 1.x bisons. For those there is a script provided that inserts the generated sources. Just go to the source directory and call

./insertGenerated.sh

It copies the generated files to the directory and modifies Make/files

3 Usage

The utility can be used from the command line or with a dictionary. In both forms an option -time is needed to select the time step.

3.1 Basic ommand line usage

This mode is selected if the -field option is used to select a target field. If the target doesn't yet exist the option -create has to be added.

In addition an option -expression is needed with the expression that is to be written to the target field (Syntax see below).

An optional option is -condition: only cells for which this expression evaluates to true are overwritten with the expression. For all other cells the old value is kept.

expression and condition should be enclosed in quotes to keep the shell from interpreting special characters.

An example of the usage would be:

funkySetFields . cavity -field U -expression '(grad(dist())^vector(0,0,-1))*mag(pos()-vector(0.05,0.05,0))/0.05'  -time 0 

This sets the velocity field to a 'circle' around the center. In the most simple case the velocity field can be set to zero

funkySetFields . cavity -field U -expression 'vector(0,0,0)' -time 0

Same for the pressure field:

funkySetFields . cavity -field p -expression '0' -time 0

The damBreak-tutorial could be initialized with

funkySetFields . damBreak -time 0 -field gamma -expression " pos().x <= 0.1461