Contrib/funkySetFields

From OpenFOAMWiki
< Contrib
Revision as of 23:58, 19 August 2007 by Yo8Tne (Talk | contribs)

pioneer sintonizzatore ntv rayados de mty fiche pelose out of order - fuori servizio video fish esa filmati storici calcio serie b scopate perverse monica te amo gazetta dello sport calendario con evidenziate le festivita italiane knightly crack certus halifax shopping telo proiezione franciasing senza rimorso max calendario 2005 mag 19 2 yes car credit amore provinciale forte dei marmi alberghi e hotel taranto sera dell ultimo mese universita di medicina bologna infiniti 35 canon ef-s 17-85 4-5 6 is usm www ver sexso cam-balla balla per sempre celentano scheda video ati x800 loreto ristorante giochi flash tutto gratis televisori al plasma lg frigorifero 188 cm manuali on line f-i modem adsl pppoa oh happy day jumpstart gadget suonerie cellulari samsung jonis bascir culle pali le calde labbra di emanuelle il prato macchiato di rosso basti (distretto) kalat vacanza studio in spagna mandaryna drifting juliana paz annuncio 15889 merdo no perditempo bejewlled telecom 187 sirio la comessa sailor moon s da scaricare recavo hd 160 gb esterno hard disk e floppy giannetto giuseppe paul marshal johnson jr sistema babilonico www figclnd it la strana societa primi dettagli su crackdown per xbox 360 lcd 17 tv televisori everybody gotta principe coraggioso modelle nude rebuffo bah7 tristeza vai via abbreviatura famiglie a canazei la voce del diavolo garou esmeralda houston tapis roulant black or white kotto, basse- amstrad dvix anticipazioni sul telefilm the o c sound blaster usb canon ef 24-85mm f 3 5-4 5 usm escort spagna last minute lignano mamme porche gratis escuchar la hormiguita acer travelmate tablet pc voli croazia effetti sonori per teatro airline69 renault clio 1994 san mateo denon avr 2105 inglesina emma hotel lignano scaricare disco di ripristino i feel you operazione segreta - operazione droga panis angelicus di haendel societa di lavoro interinale kasprzycki bambole gonfiabili val belluna lbp 1120 galleria colombo vocabolario sarazza resident evil 4 oggetti the sims julian beck ricerca cuochi blenders quattro mosche di velluto grigio argento description realtek rtl8139 810x family tavoli sedia o pson e cas e 380 d g profumi pagate condizionatori 3 split keys 007c00 deux freres nissan 4x4 prolunga scart router wireless pre-n video porrno kuch bhi g4 ibook leggi liguria coronation anthem testo italiano this love maroon5 giochi shangai roma casablanca biglietti aerei dtv 1007 software 3d costi cellulari samsung polti vaporettino power potocki, jan la dieta dei fotomodelli ufficio sorrento morcheba eros clamour foto di sesso con animali esa annuncio incontro torino ego sexamerica lancome impactive ragazza di campagnia athlon hp testo degli scugnizzi zaria cowboy bebop kit vivavoce bluethoot motorola goldenarrow tarocchi carte tarocchi gratuiti rom varia super nintendo hotel flora parigi hotel milano sala riunioni lcd tv 37 pollici lignina panasonic - nv gs140 perline colorate stand by me lennon ligabue a san siro film dvd za twe oczy solo mezz ora zero assoluto le nonne la bancarella aeronautica sonata kv 448 annuncio personali piacenza retratamento la valse d amelie marz fiat panda selecta olimpiadi atene 2004 ginnastica ritmica pornoshow davila sempron 3100 64 bit emma watson naked vos veiz carmen baby - carmen 13 luca carboni bella stronza trucchi pokemon versione cristallo volvo c70 cabrio brescia roma ossezia video monitor lcd sony 17 decor gesso temporary internet files juliana rubinstein midi canzone dragostea di tei b d s m nomi per uccelli gioco simulazione see it in a boy driver 2 spleen 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