Contrib/funkySetFields

From OpenFOAMWiki
< Contrib
Revision as of 20:51, 25 August 2007 by AtsKvh (Talk | contribs)

ventola 9 x 9 tindari munch l urlo magia giochi www lolloscan com il suicidio dei giovani a potenza oki stampante laser sterlina oro loral gps map 60c ddr pc2700 samsung haab protocollo nerv fahrenheit xbox videogiochi armagetron cazzi nudi gratis www ansa it carra tanti auguri dress up sound system moxie travel enclosure 5 25 rt200a ramzy bedia nubira daewoo samsung 2 5 80gb ti posto in africa la vecchia signora nunte paralimpiadi prima nota due palle in buca videoclip salsa cubana il ballo del meme reiki music znamenka acrobatic r new beetle nero 2004 jbl tik bad as strippa mio babbino caro humax 5300 hotel juan les pins kensington segnale di fumo chicco auto fix vampyros lesbos oasi2000 it floppy iomega rock n roll the sounds tiziano ferro 111 cover cd brondi fx congelatore verticale aeg nba action diner bar codici mediaset e xxl pasta termica key irdeto blue kiss sony vaio m 740 www german wings video laura angel prestito lainate fotografa un mundo ideal ricardo montaner obbligo di formazione antincendio oregon scientific sveglie orologi nek usb driver site francaise raptor wd740gd 74gb 10000rpm sata volo pioltello simone simon www pubmed com glen hansard curbside prophet la talidomide hotel e residence veneto provincia di palermo router adsl wireless dlink insubria network srl sculture darredo culikitaka logitech cordless mini tingulli 3 3nt come si fa per far sesso bene automodelli scoppio www reggaeton lyrics com henry manchini barometri tlogic gestione rubriche di posta pocket pc hp ipaq 1710 www volawindjet com distributori marantz nokia 6680 italia eclipse del corazon dlink modem adsl documentazione per passaporto spade hard cartoon acer tablet pc lettini chicco elettronica ancona braun multigourmet fs20 gamecube resident evil mouse logitech cordless pilot miami cose fare batterie nokia 3210 moto suzuki gsx barrio del rio i pronipoti sandy e nua bar sotto il mare kakawin disiscrizione palmari gps auto acque per il corpo tanga miss campane mp3 bengasi ipaq tomtom navigator carl orff musicista tedesco moto honda italia marino marini guaglione aforismi citazioni digitus camera isabelle dcrhc 1000 sony x640 batteria samsung batterie insbruk radio italia traghetti per l elba ron moss tyan thunder k8we sony dsc w12 abiti vestiti versace classrum fiorellina isdn mac modem golf plus 2 0 penis enlargement pill seca2 viaccess2 certosa pavia risultato campionato serie b la madonna delle sette lune cacciari cao s grill hapalemur donne mature cerca uomini pavle aksentijevic maxtor diamondplus sono fuori dall tunnel hoara ati radeon se helves hide u kosheen free midi cd estate 2004 mirto autodesk autocad 2005 allucinante notte per un delitto gabry ponte dragostea din tei freelander 2003 resident evil 4 si scatena in video cbr 1000 fireblade isotrexin gel tesina filosofia cartina del paese di ca savio rt 1200 artica ragazza sulla scopa in porsche con il morto alps foggia him solitary man se que volveras gina lynn pics lettore dvd ultra slim guardami degli occhi www postales com rover defender video porche mediacom snc jimmy oihid maserati auto tv 21 con dvd combi philips listen to i ll be missing you da lucia diadora baggio l signorelli epson lq680 brasiliane troie inurl bbs messages 8 html foto porno blond stelutis alpini olivetti jet lab 450 cappa da 60 immagini barbaro paul ricoeur stay with me tommy vee centro militare medicina legale firenze maturevideo lemmi the sims night people 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