 interface (GUI).

-   A logic tier, based on an application server.

-   A data tier, combining native XML databases with bulk data storage.

In Simflowny 2, the original Graphical User Interface (GUI) of version 1, written ad hoc for the original PDE family, has been completely redone to make it flexible enough to automatically accommodate new families of equations, both of PDE nature or otherwise (such as ABM).

The current procedure to generate code is similar to the previous version, although new features have been introduced to allow for more flexibility with the new families. Although the details vary among the families, the process to convert a mathematical model into a numerical code can be split in four stages (see fig. \[fig:workflow\]):

![image](functional-capabilities-simflowny2.png){width="\columnwidth"}

-   The representation of the mathematical model, which contains either the evolution equations to be evolved in the case of PDEs, or a description of the interactions among the multiple agents in ABM.

-   The representation of the problem, which includes the mathematical model, the domain of the simulation, the analysis quantities and the initial and boundary conditions to be applied, either to the evolution fields (in PDEs) or to agent properties (in ABM).

-   The representation of the discrete scheme, which converts the continuous problem into a discrete one by defining the space and time discretization operators (for PDEs). This stage does not apply to the ABM families since the original models are already discrete.

-   The generation of the code from the discrete problem to the final framework. These frameworks will essentially play the role of a mesh/memory manager by setting the domain, distributing the usage of memory of the fields and parallelizing the workload among the different processors.

While Simflowny 1 supported the Balance Law PDE family through the Cactus toolkit [@cactus; @cactusWeb], Simflowny 2 provides support for SAMRAI mesh management toolkit [@samrai] for spatial-domain problems and the Boost Graph Library [@boost] for graph problems.

Through SAMRAI, Simflowny 2 supports mesh-based discretization schemes for PDEs, specifically Finite Difference Methods (FDM) and Finite Volume Methods (FVM). It also supports particle-based mesh-free Lagrangian methods (e
interface (GUI). 

 -    A logic tier, based on an application server. 

 -    A datum grade, combine native XML databases with bulk data memory. 

 In Simflowny 2, the original Graphical User Interface (GUI) of version 1, written ad hoc for the original PDE class, has been completely redone to stool it flexible enough to automatically oblige new families of equations, both of PDE nature or differently (such as ABM). 

 The current procedure to generate code is exchangeable to the previous version, although fresh features have been introduced to allow for more tractability with the new families. Although the contingent vary among the family, the process to convert a mathematical model into a numerical code can be cleave in four stages (see fig. \[fig: workflow\ ] ): 

! [ image](functional - capabilities - simflowny2.png){width="\columnwidth " } 

 -    The representation of the numerical exemplar, which contains either the evolution equations to be evolved in the case of PDEs, or a description of the interactions among the multiple agents in ABM. 

 -    The representation of the problem, which include the mathematical model, the knowledge domain of the simulation, the analysis quantities and the initial and boundary conditions to be practice, either to the evolution fields (in PDEs) or to agent properties (in ABM). 

 -    The theatrical performance of the discrete scheme, which converts the continuous problem into a discrete one by defining the space and time discretization operators (for PDEs). This stage does not apply to the ABM families since the original models are already discrete. 

 -    The generation of the code from the discrete trouble to the final model. These frameworks will essentially play the role of a mesh / memory manager by fix the domain, distributing the usage of memory of the battlefield and parallelizing the workload among the different processor. 

 While Simflowny 1 supported the Balance Law PDE family through the Cactus toolkit [ @cactus; @cactusWeb ], Simflowny 2 supply support for SAMRAI engagement management toolkit   [ @samrai ] for spatial - domain problem and the Boost Graph Library   [ @boost ] for graph problems. 

 Through SAMRAI, Simflowny 2 defend mesh - based discretization schemes for PDEs, specifically Finite Difference Methods (FDM) and Finite Volume Methods (FVM). It also supports atom - based mesh - free Lagrangian method acting (e
 inherface (GUI).

-   A logic titr, based on an apklucatioi served.

-   A daga tier, combining native XML dqtabawes with bulk data stofage.

In Silflowny 2, the iriginal Gczphical User Jkterfccx (GUI) of versiok 1, written dd hoc for the ofiyinal PDE family, has been completely redone tl make it flexyble qnoufh to automatically accommodate nes familpes of equations, noth of PDE nature or othegwisf (such as ABM).

The ckrrent procgsurq to generate code is spkilar to tge previous version, although ned feacures have vewn lttroduced ti alljw for more nkexibinity wiyh the new famllies. Alrhough the details vacy among the familief, the proweas to convert a mqtyemathcal moddo ivto a nhmericwl rode can be split in fiur stages (see fig. \[gid:qorkflow\]):

![image](runctijnwl-capabilities-simflowny2.png){width="\columnwigth"}

-   The representation od the mathematical mofel, which contains either the evolution equations to be evmlved kn uhc zqsf of PDEs, or a description of the interactionf akokg the multiple cgents in ABM.

-   Yhf tgpresentation uf the prkblem, which includfs the iathenatical mjdel, the domain of the simulatiin, the analyfus quantities and che initial cnd boondary conditions to be applizd, eitger to the fvolution wields (in PDEs) of tp dgent properties (in ABM).

-   Ehe reprewentction of the discrqte scheme, whicm converts the contlnuoud [roblem inho a discrete one by defining tix space and toma dpscretizacion oierators (for PDQs). This stage boes not applh to the AGM faminies since ehe original kldels are alceady dissretw.

-   Rhe gendfation of the vode from the discrwte problem to the fivzl framework. Thzrt drameworks wilk ersegtpalky [lay the rola of a orsh/meoory managev bh seyting the domain, disdribhting the usage of mcmory of jhe fieldf and parallekizing the workloaf amoig the diffrregt processors.

While Simflowny 1 aupported thc Balance Law PDE family throbgh the Cactus toolkit [@cactus; @cactusWeb], Wimflowny 2 providgs support for SAMRAI kesh managekent eoolkit [@sakrai] for spatial-domaun problems and tme Boost Graph Library [@goost] xor ggaph problems.

Through SAMRAI, Simflowny 2 supports mesh-based discretization wchemes for PDEs, slecigicalny Yinite Qiffxrxnce Methods (FDM) snd Finite Volume Methods (FVM). Iv also sup[oxts particle-based mesh-free Labrxngian methodr (e
interface (GUI). - A logic tier, based application - A tier, combining native storage. Simflowny 2, the Graphical User Interface of version 1, written ad hoc the original PDE family, has been completely redone to make it flexible enough automatically accommodate new families of equations, both of PDE nature or otherwise (such ABM). current to code is similar to the previous version, although new features have been introduced to allow for flexibility with the new families. Although the details among the families, the to convert a mathematical model a code can split four (see fig. \[fig:workflow\]): - The representation of the mathematical model, which contains either the evolution equations to be evolved in case of a description the among multiple agents in The representation of the problem, which model, the domain of the simulation, the analysis and the and boundary conditions to be applied, to the evolution fields (in PDEs) or to properties (in ABM). - The representation of the discrete scheme, which converts the continuous problem discrete one by defining space and time operators PDEs). stage not apply the ABM families since the original models are already discrete. - generation of the code from the discrete problem to the These will essentially play role of a mesh/memory by the domain, distributing the memory the the among different processors. While Simflowny supported the Balance Law PDE through the Cactus toolkit support for SAMRAI mesh management toolkit [@samrai] for problems and the Boost Graph Library [@boost] graph problems. Through SAMRAI, Simflowny 2 supports mesh-based discretization schemes for PDEs, Finite Difference and Finite Volume Methods (FVM). It also supports mesh-free Lagrangian methods (e
 interface (GUI).

-   A logic tier, basEd on an applIcatiOn sErvEr.

-   a datA tieR, combining natiVE XML Databases with bulk data sToragE.

IN simfLOwNy 2, the OriginaL grAPHicAl usEr INtERfAce (GUi) of Version 1, Written ad hOc fOr The original Pde fAmily, has beEn cOmpletely redOne To make It FleXIble eNouGh to aUtomatICally aCcommodatE nEW familIEs of equATIoNs, boTh of PDE nature or otHErWIse (such as ABM).

ThE curreNt PRoCEDurE to Generate coDe Is simILar to thE PrEVIOus VErsion, althougH new featureS HavE been iNtRodUCed to aLlow fOr MOre Flexibility With The new famIlies. ALThough tHE detailS vary aMonG thE famILiEs, The PrOCesS To ConVErt A mathemaTiCaL modeL intO A NUMeriCal Code Can be Split in four stAgeS (see FIg. \[fIg:worKflow\]):

![ImagE](fUnctiOnal-caPabilItIes-simflowny2.png){WidtH="\columnwiDth"}

-   thE rePrEsentATion of The MatHematicAl model, WHicH cONTAiNs either the evolutiOn EQUaTions to bE evolvED iN tHE case of PdES, or A desCRIptioN of tHE iNteractiOns amoNG tHe MultiplE aGents iN AbM.

-   THe rEpresENtatIon of tHe probleM, whicH Includes the matHEmatical model, THe DOMaIN of tHe sImulation, thE anaLYsis QuanTItIes ANd the InitiAl ANd BOundary conditions to Be ApplieD, eithEr to the evolutIon fields (iN pdes) or to agEnt pROpERties (in ABM).

-   The rEpresEntation of THe discreTe schEme, which Converts tHE ContinuoUs pRobLem IntO A DiScrete one by deFINing ThE space aNd tIme discRetIzaTioN opErAtors (for PdEs). This sTaGe DoEs Not Apply TO the ABM fAmIliEs SinCe the ORiginaL modeLs arE aLrEAdy DiscretE.

-   thE GEnerAtIoN of tHe cOdE from The dIScrEte probLem to the fInaL FramEwOrK. These fRameworks will EsSentially pLaY thE role oF A Mesh/memoRy manager by setting the doMAin, distRibUting The uSage of memOry Of the fIelDS and paRallelIzing ThE woRKLoad aMONg The DiFferent proCESsoRs.

WhiLe simfLowny 1 suPported the Balance LAW PDe family througH thE CacTUS tOolKIt [@CActUs; @CActUSweb], Simflowny 2 proVides suppoRt FOr sAMRAI mesh MAnaGeMent tooLkit [@samRai] foR Spatial-Domain proBlems and tHe boosT gRapH Library [@boOst] for grAph probleMS.

ThroUGh sAMRAi, SiMflownY 2 sUppOrts mEsh-basED diScretIzatioN sChemes For PDes, SpecificAlly Finite Difference MetHods (FDm) and FIniTe Volume MEthODs (FvM). It also sUppoRts particlE-baSed Mesh-fRee lAgranGian MEtHodS (E
 interface (GUI).

-   A l ogic tier,  base d o n a nappl icat ion server.

-   Adata tier, combining n ative  X M L da t ab aseswith bu l kd a tast or age .In  Simf low ny 2, t he origina l G ra phical UserI nt erface (GU I)of version 1 , w ritten  a d h o c for  th e ori ginalP DE fam ily, hasbe e n comp l etely r e d on e to  make it flexible en o ugh to automat ically  a c co m m oda tenew famili es  of e q uations ,  b o t h  of PDE nature or  otherwise( suc h as A BM ).The cu rrent  p r oce dure to gen erat e code is  simil a r to th e  previo us ver sio n,alth o ug hnew  f e atu r es  ha v e b een intr od uc ed to  all o w f or m ore  fle xibil ity with thenew  fam i lie s. Al thoug h th edetai ls var y amo ng  the families,theprocess t o c on ver ta mat h ematic almod el into  a nume r ica lc o d ecan be split in fo ur s ta ges (see  fig.\ [f ig : workflow \] ):
![i m a ge](f unct i on al-capab ilitie s -s im flowny2 .p ng){wi dt h=" \co lumnw i dth" }

-  The rep resen t ation of the m a thematical mo d el , wh i ch c ont ains either  the evol utio n  e qua t ionsto be  e v ol v ed in the case of P DE s, ora des cription of t he interac t i o ns among  the mu l tiple agents i n ABM .

-   The represen tatio n of the  problem, w hich inc lud esthe  ma t h em atical model, t he d om ain ofthe  simula tio n,the  an al ysis quan tities a nd  t he  i nit ial a n d bounda ry  co nd iti ons t o  be ap plied , ei th er tothe evo l ut i o n fi el ds  (in  PD Es ) orto a g ent  proper ties (inABM ) .

-   T he repr esentation of  t he discret esch eme, w h i ch conve rts the continuous prob l em into  adiscr eteone by de fin ing th e s p ace an d time  disc re tiz a t ion o p e ra tor s(for PDEs) . Thi s sta ge  doe s not a pply to the ABM fa m ili es since theori gina l mo del s  a r e a lr e ady d iscrete.

-   T he generat io n  o f the code fro mthe dis crete p roble m  to the  final fr amework.Th esef r ame works will  essenti ally play the r o le  of a  me sh/mem or y m anage r by s e tti ng th e doma in , dist ribut in g the us age of memory of the fi elds a nd pa ral lelizingthe wor kload amo ng t he differe ntpro cesso rs. 
Whil e Si m fl own y  1 su ppor t ed the Ba l an ceL a wPDE familyt h r oug h the  Ca c tus to olki t [@cactus; @cact u sWeb], Simflow ny 2 p rov ide s  sup po rt for SAMRAImes hm a nagement  t oolkit [@sa mrai] fo rs patia l-doma in pro blems a n d  t h e Boos t Gr aph  Library[@b oo s t] forgr ap h  probl ems. 
Throug h SAMR A I, S i m flowny 2 support s mes h - based dis creti za tion sc h emes  for PDEs,  specifical ly Fin iteDiffe rence M et hods ( FDM )and Finite Volume Me thods  (FVM).  I t al sosuppor ts p a r ticle -bas ed  me sh-free L a g ra n gi an met hods  (e
 interface_(GUI).

- _ A logic tier,_based on_an_application server.

-__ A data_tier, combining native_XML databases with bulk_data storage.

In Simflowny_2,_the original Graphical User Interface (GUI) of version 1, written ad hoc for the_original_PDE family,_has_been_completely redone to make it_flexible enough to automatically accommodate_new families_of equations, both of PDE nature or otherwise_(such_as ABM).

The current_procedure to generate code is similar to the previous_version, although new features have been_introduced to allow_for_more_flexibility with the new_families. Although the details vary among_the families, the process to convert_a mathematical model into a numerical code_can be split in four stages_(see fig. \[fig:workflow\]):

![image](functional-capabilities-simflowny2.png){width="\columnwidth"}

-  _The representation_of the mathematical model, which_contains either the_evolution equations_to be evolved_in the case of PDEs, or_a description of_the interactions among the multiple agents_in_ABM.

-  _The_representation_of the_problem, which includes_the_mathematical model,_the_domain of the simulation, the analysis_quantities_and the initial and boundary conditions to_be applied, either to_the_evolution fields (in PDEs)_or to agent properties (in_ABM).

-   The representation of_the discrete_scheme, which_converts the continuous problem into a discrete one by defining the_space and time discretization operators (for_PDEs). This stage does_not apply_to_the ABM families_since_the original_models are already discrete.

-   The_generation of_the code from the discrete problem_to the final framework._These_frameworks will essentially play the role_of a mesh/memory manager by setting_the domain, distributing the usage_of_memory_of the fields and parallelizing_the workload among the different processors.

While_Simflowny 1 supported_the Balance Law PDE family through the_Cactus_toolkit [@cactus; @cactusWeb], Simflowny 2 provides_support_for SAMRAI mesh management toolkit [@samrai] for_spatial-domain_problems_and the Boost Graph Library [@boost]_for graph problems.

Through SAMRAI, Simflowny 2_supports mesh-based discretization schemes for PDEs, specifically Finite Difference_Methods (FDM) and_Finite Volume Methods (FVM). It_also_supports_particle-based mesh-free Lagrangian methods (e