text:
# Homeworks

Philipp Schlatter created page 8 January 2012

Philipp Schlatter edited 8 January 2012

* Homework 1, due 23/1: fHW1
* Homework 2, due 30/1
* Homework 3, due 6/2
* Homework 4, due 13/2
* Homework 5, due 27/2
* Homework 6, due 5/3

* Project, due 19/3

Philipp Schlatter edited 8 January 2012

* Homework 1, due 23/1: fHW1
* Homework 2, due 30/1
* Homework 3, due 6/2
* Homework 4, due 13/2
* Homework 5, due 27/2
* Homework 6, due 5/3

* Project, due 19/3

Philipp Schlatter edited 8 January 2012

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1
* Homework 3, due 6/2
* Homework 4, due 13/2
* Homework 5, due 27/2
* Homework 6, due 5/3

* Project, due 19/3

Philipp Schlatter edited 8 January 2012

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1
* Homework 3, due 6/2
* Homework 4, due 13/2
* Homework 5, due 27/2
* Homework 6, due 5/3

* Project, due 19/3

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 8 January 2012

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1
* Homework 3, due 6/2
* Homework 4, due 13/2
* Homework 5, due 27/2
* Homework 6, due 5/3

* Project, due 19/3

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 19 January 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.¶

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1
* Homework 3, due 6/2
* Homework 4, due 13/2
* Homework 5, due 27/2
* Homework 6, due 5/3

* Project, due 19/3

* Study questions (100312) pdf (will be updated)

Philipp Schlatter changed the permissions 23 January 2012

Kunde läsas av alla inloggade användare. Kunde ändras av lärare.
Philipp Schlatter edited 23 January 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1: HW2
* Homework 3, due 6/2
* Homework 4, due 13/2
* Homework 5, due 27/2
* Homework 6, due 5/3

* Project, due 19/3

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 26 January 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1: HW2
* Homework 3, due 6/2: HW3
* Homework 4, due 13/2
* Homework 5, due 27/2
* Homework 6, due 5/3

* Project, due 19/3

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 3 February 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1: HW2
* Homework 3, due 6/2: HW3
* Homework 4, due 13/2
* Homework 5, due 27/2
* Homework 6, due 5/3

* Project, due 19/3

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 3 February 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1: HW2
* Homework 3, due 6/2: HW3
* Homework 4, due 13/2
* Homework 5, due 27/2
* Homework 6, due 5/3

* Project, due 19/3

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 3 February 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1: HW2
* Homework 3, due 6/2: HW3-updated.pdf
* Homework 4, due 13/2
* Homework 5, due 27/2
* Homework 6, due 5/3

* Project, due 19/3

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 7 February 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1: HW2
* Homework 3, due 6/2: HW3-updated.pdf
* Homework 4, due 13/2
* Homework 5, due 27/2
* Homework 6, due 5/3

* Project, due 19/3

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 7 February 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1: HW2
* Homework 3, due 6/2: HW3-updated.pdf
* Homework 4, due 13/2: HW4.pdf (Matlab files: artificial_visc.m, boundary_cond.m, dx.m, flux_function.m, mac_cormack.m, shocktube.m)
* Homework 5, due 27/2
* Homework 6, due 5/3

* Project, due 19/3

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 7 February 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1: HW2
* Homework 3, due 6/2: HW3-updated.pdf
* Homework 4, due 13/2: HW4.pdf (Matlab files:
*
artificial_visc.m
*
boundary_cond.m, dx.m,
* dx.m
*
flux_function.m
*
mac_cormack.m
*
shocktube.m) (main program)

* Homework 5, due 27/2
* Homework 6, due 5/3

* Project, due 19/3

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 10 February 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1: HW2
* Homework 3, due 6/2: HW3-updated.pdf
* Homework 4, due 13/2: HW4.pdfMatlab files:
* artificial_visc.m
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m
* shocktube.m (main program)

* Homework 5, due 27/2
* Homework 6, due 5/3

* Project, due 19/3

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 10 February 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1: HW2
* Homework 3, due 6/2: HW3-updated.pdf
* Homework 4, due 13/2: HW4-updated.pdfMatlab files:
* artificial_visc.m (updated)
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m (updated)
* shocktube.m (main program)

* Homework 5, due 27/2
* Homework 6, due 5/3

* Project, due 19/3

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 10 February 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1: HW2
* Homework 3, due 6/2: HW3-updated.pdf
* Homework 4, due 13/2: HW4-updated.pdf (see comment in Disucssions page)Matlab files:
* artificial_visc.m (updated)
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m (updated)
* shocktube.m (main program)

* Homework 5, due 27/2
* Homework 6, due 5/3

* Project, due 19/3

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 16 February 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1: HW2
* Homework 3, due 6/2: HW3-updated.pdf
* Homework 4, due 13/2: HW4-updated.pdf (see comment in Disucssions page)Matlab files:
* artificial_visc.m (updated)
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m (updated)
* shocktube.m (main program)

* Homework 5, due 27/2
* Homework 6, due 5/3

* Project, due 19/3

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 16 February 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1: HW2
* Homework 3, due 6/2: HW3-updated.pdf
* Homework 4, due 13/2: HW4-updated.pdf (see comment in Disucssions page)Matlab files:
* artificial_visc.m (updated)
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m (updated)
* shocktube.m (main program)

* Homework 5, due 27/2: HW5.pdf
* Homework 6, due 5/3

* Project, due 19/3

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 26 February 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1: HW2
* Homework 3, due 6/2: HW3-updated.pdf
* Homework 4, due 13/2: HW4-updated.pdf (see comment in Disucssions page)Matlab files:
* artificial_visc.m (updated)
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m (updated)
* shocktube.m (main program)

* Homework 5, due 27/2: HW5.pdf
* Homework 6, due 5/3

* Project, due 19/3

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 26 February 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1: HW2
* Homework 3, due 6/2: HW3-updated.pdf
* Homework 4, due 13/2: HW4-updated.pdf (see comment in Disucssions page)Matlab files:
* artificial_visc.m (updated)
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m (updated)
* shocktube.m (main program)

* Homework 5, due 27/2: HW5.pdf
* Homework 6, due 5/3: HW6.pdf (template: help_Poisson.m)

* Project, due 19/3

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 29 February 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1: HW2
* Homework 3, due 6/2: HW3-updated.pdf
* Homework 4, due 13/2: HW4-updated.pdf (see comment in Disucssions page)Matlab files:
* artificial_visc.m (updated)
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m (updated)
* shocktube.m (main program)

* Homework 5, due 27/2: HW5.pdf
* Homework 6, due 5/3: HW6.pdf (template: help_Poisson.m)

* Project, due 19/3

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 29 February 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1: HW2
* Homework 3, due 6/2: HW3-updated.pdf
* Homework 4, due 13/2: HW4-updated.pdf (see comment in Disucssions page)Matlab files:
* artificial_visc.m (updated)
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m (updated)
* shocktube.m (main program)

* Homework 5, due 27/2: HW5.pdf
* Homework 6, due 5/3: HW6.pdf (template:  help_Ppoisson.m (updated))

* Project, due 19/3

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 29 February 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1: HW2
* Homework 3, due 6/2: HW3-updated.pdf
* Homework 4, due 13/2: HW4-updated.pdf (see comment in Disucssions page)Matlab files:
* artificial_visc.m (updated)
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m (updated)
* shocktube.m (main program)

* Homework 5, due 27/2: HW5.pdf
* Homework 6, due 5/3: HW6.pdf (template: help_poisson.m (updated))

* Project, due 19/3

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 29 February 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1: HW2
* Homework 3, due 6/2: HW3-updated.pdf
* Homework 4, due 13/2: HW4-updated.pdf (see comment in Disucssions page)Matlab files:
* artificial_visc.m (updated)
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m (updated)
* shocktube.m (main program)

* Homework 5, due 27/2: HW5.pdf
* Homework 6, due 5/3: HW6.pdf (template: help_poisson.m (updated))

* Project, due 19/3

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 29 February 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1: HW2
* Homework 3, due 6/2: HW3-updated.pdf
* Homework 4, due 13/2: HW4-updated.pdf (see comment in Disucssions page)Matlab files:
* artificial_visc.m (updated)
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m (updated)
* shocktube.m (main program)

* Homework 5, due 27/2: HW5.pdf
* Homework 6, due 5/3: HW6.pdf (template: help_poisson.m (updated))

* Project, due 19/3 : project.pdf (version 1.05)

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 29 February 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1: HW2
* Homework 3, due 6/2: HW3-updated.pdf
* Homework 4, due 13/2: HW4-updated.pdf (see comment in Disucssions page)Matlab files:
* artificial_visc.m (updated)
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m (updated)
* shocktube.m (main program)

* Homework 5, due 27/2: HW5.pdf
* Homework 6, due 5/3: HW6.pdf (template: help_poisson.m (updated))

* Project, due 19/3: project.pdf (version 1.05)

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 29 February 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1: HW2
* Homework 3, due 6/2: HW3-updated.pdf
* Homework 4, due 13/2: HW4-updated.pdf (see comment in Disucssions page)Matlab files:
* artificial_visc.m (updated)
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m (updated)
* shocktube.m (main program)

* Homework 5, due 27/2: HW5.pdf
* Homework 6, due 5/3: HW6.pdf (template: help_poisson.m (updated))

* Project, due 19/3: project.pdf (version 1.05)Matlab files:
* SG2212_template.m (main program)
* DD_template.m
* avg_template.m

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 29 February 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1
* Homework 2, due 30/1: HW2
* Homework 3, due 6/2: HW3-.pdf (updated.pdf)
* Homework 4, due 13/2: HW4-.pdf (updated.pdf (, see comment in Disucssions page)Matlab files:
* artificial_visc.m (updated)
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m (updated)
* shocktube.m (main program)

* Homework 5, due 27/2: HW5.pdf
* Homework 6, due 5/3: HW6.pdf (template: help_poisson.m (updated))

* Project, due 19/3: project.pdf (version 1.05)Matlab files:
* SG2212_template.m (main program)
* DD_template.m
* avg_template.m

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 29 February 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1.pdf
* Homework 2, due 30/1: HW2.pdf
* Homework 3, due 6/2: HW3.pdf (updated)
* Homework 4, due 13/2: HW4.pdf (updated, see comment in Disucssions page)Matlab files:
* artificial_visc.m (updated)
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m (updated)
* shocktube.m (main program)

* Homework 5, due 27/2: HW5.pdf
* Homework 6, due 5/3: HW6.pdf (template: help_poisson.m (updated))

* Project, due 19/3: project.pdf (version 1.05)Matlab files:
* SG2212_template.m (main program)
* DD_template.m
* avg_template.m

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 1 March 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1.pdf
* Homework 2, due 30/1: HW2.pdf
* Homework 3, due 6/2: HW3.pdf (updated)
* Homework 4, due 13/2: HW4.pdf (updated, see comment in Disucssions page)Matlab files:
* artificial_visc.m (updated)
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m (updated)
* shocktube.m (main program)

* Homework 5, due 27/2: HW5.pdf
* Homework 6, due 5/3: HW6.pdf (template: help_poisson.m (updated))

* Project, due 19/3: project.pdf  (version 1.05)Matlab files:
* SG2212_template.m (main program)
* DD_template.m
* avg_template.m

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 1 March 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1.pdf
* Homework 2, due 30/1: HW2.pdf
* Homework 3, due 6/2: HW3.pdf (updated)
* Homework 4, due 13/2: HW4.pdf (updated, see comment in Disucssions page)Matlab files:
* artificial_visc.m (updated)
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m (updated)
* shocktube.m (main program)

* Homework 5, due 27/2: HW5.pdf
* Homework 6, due 5/3: HW6.pdf (template: help_poisson.m (updated))

* Project, due 19/3: project.pdf (version 1.05)Matlab files:
* SG2212_template.m (main program)
* DD_template.m
* avg_template.m

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 2 March 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1.pdf
* Homework 2, due 30/1: HW2.pdf
* Homework 3, due 6/2: HW3.pdf (updated)
* Homework 4, due 13/2: HW4.pdf (updated, see comment in Disucssions page)Matlab files:
* artificial_visc.m (updated)
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m (updated)
* shocktube.m (main program)

* Homework 5, due 27/2: HW5.pdf
* Homework 6, due 5/3: HW6.pdf (template: help_poisson.m (updated))

* Project, due 19/3: project.pdf (version 1.05)Matlab files:
* SG2212_template.m (main program)
* DD_template.m
* avg_template.m

* Study questions (100312) pdf (will be updated)

Philipp Schlatter edited 2 March 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1.pdf
* Homework 2, due 30/1: HW2.pdf
* Homework 3, due 6/2: HW3.pdf (updated)
* Homework 4, due 13/2: HW4.pdf (updated, see comment in Disucssions page)Matlab files:
* artificial_visc.m (updated)
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m (updated)
* shocktube.m (main program)

* Homework 5, due 27/2: HW5.pdf
* Homework 6, due 5/3: HW6.pdf (template: help_poisson.m (updated))

* Project, due 19/3: project.pdf (version 1.05)Matlab files:
* SG2212_template.m (main program)
* DD_template.m
* avg_template.m

* Study questions (1020312) pdf (will be updated)01) studyquestions_2012.pdf

Ardeshir Hanifi edited 2 March 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1.pdf
* Homework 2, due 30/1: HW2.pdf
* Homework 3, due 6/2: HW3.pdf (updated)
* Homework 4, due 13/2: HW4.pdf (updated, see comment in Disucssions page)Matlab files:
* artificial_visc.m (updated)
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m (updated)
* shocktube.m (main program)

* Homework 5, due 27/2: HW5.pdf
* Homework 6, due 5/3: HW6.pdf  (modified) (template: help_poisson.m (updated))

* Project, due 19/3: project.pdf (version 1.05)Matlab files:
* SG2212_template.m (main program)
* DD_template.m
* avg_template.m

* Study questions (120301) studyquestions_2012.pdf

Philipp Schlatter edited 3 March 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1.pdf
* Homework 2, due 30/1: HW2.pdf
* Homework 3, due 6/2: HW3.pdf (updated)
* Homework 4, due 13/2: HW4.pdf (updated, see comment in Disucssions page)Matlab files:
* artificial_visc.m (updated)
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m (updated)
* shocktube.m (main program)

* Homework 5, due 27/2: HW5.pdf
* Homework 6, due 5/3: HW6.pdf (modified) (template: help_poisson.m (updated))

* Project, due 19/3: project.pdf  (version 1.05)Matlab files:
* SG2212_template.m (main program)
* DD_template.m
* avg_template.m

* Study questions (120301) studyquestions_2012.pdf

Philipp Schlatter edited 3 March 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1.pdf
* Homework 2, due 30/1: HW2.pdf
* Homework 3, due 6/2: HW3.pdf (updated)
* Homework 4, due 13/2: HW4.pdf (updated, see comment in Disucssions page)Matlab files:
* artificial_visc.m (updated)
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m (updated)
* shocktube.m (main program)

* Homework 5, due 27/2: HW5.pdf
* Homework 6, due 5/3: HW6.pdf (modified) (template: help_poisson.m (updated))

* Project, due 19/3: project.pdf (version 1.056)Matlab files:
* SG2212_template.m (main program)
* DD_template.m
* avg_template.m

* Study questions (120301) studyquestions_2012.pdf

Philipp Schlatter edited 7 March 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1.pdf
* Homework 2, due 30/1: HW2.pdf
* Homework 3, due 6/2: HW3.pdf (updated)
* Homework 4, due 13/2: HW4.pdf (updated, see comment in Disucssions page)Matlab files:
* artificial_visc.m (updated)
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m (updated)
* shocktube.m (main program)

* Homework 5, due 27/2: HW5.pdf
* Homework 6, due 5/3: HW6.pdf (modified) (template: help_poisson.m (updated))

* Project, due 19/3: project.pdf (version 1.06)Matlab files:
* SG2212_template.m (main program)
* DD_template.mfdaf
* avg_template.m

* Study questions (120301) studyquestions_2012.pdf

Philipp Schlatter edited 7 March 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1.pdf
* Homework 2, due 30/1: HW2.pdf
* Homework 3, due 6/2: HW3.pdf (updated)
* Homework 4, due 13/2: HW4.pdf (updated, see comment in Disucssions page)Matlab files:
* artificial_visc.m (updated)
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m (updated)
* shocktube.m (main program)

* Homework 5, due 27/2: HW5.pdf
* Homework 6, due 5/3: HW6.pdf (modified) (template: help_poisson.m (updated))

* Project, due 19/3: project.pdf (version 1.06)Matlab files:
* SG2212_template.m (main program)
* fdafDD_template.m (updated)
* avg_template.m

* Study questions (120301) studyquestions_2012.pdf

Philipp Schlatter edited 15 March 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1.pdf
* Homework 2, due 30/1: HW2.pdf
* Homework 3, due 6/2: HW3.pdf (updated)
* Homework 4, due 13/2: HW4.pdf (updated, see comment in Disucssions page)Matlab files:
* artificial_visc.m (updated)
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m (updated)
* shocktube.m (main program)

* Homework 5, due 27/2: HW5.pdf
* Homework 6, due 5/3: HW6.pdf (modified) (template: help_poisson.m (updated))

* Project, due 19/3: project.pdf (version 1.06)Matlab files:
* SG2212_template.m (main program)
* DD_template.m (updated)
* avg_template.m

* Study questions (120301) studyquestions_2012.pdf

Philipp Schlatter edited 15 March 2012

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 23/1: HW1.pdf
* Homework 2, due 30/1: HW2.pdf
* Homework 3, due 6/2: HW3.pdf (updated)
* Homework 4, due 13/2: HW4.pdf (updated, see comment in Disucssions page)Matlab files:
* artificial_visc.m (updated)
* boundary_cond.m
* dx.m
* flux_function.m
* mac_cormack.m (updated)
* shocktube.m (main program)

* Homework 5, due 27/2: HW5.pdf
* Homework 6, due 5/3: HW6.pdf (modified) (template: help_poisson.m (updated))

* Project, due 19/3: project.pdf  (version 1.067)Matlab files:
* SG2212_template.m (main program)
* DD_template.m (updated)
* avg_template.m

* Study questions (120301) studyquestions_2012.pdf

Philipp Schlatter edited 14 January 2013

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 21/1: HW1.pdf
* Homework 2, due 28/1:
* Homework 3, due 4/2:
* Homework 4, due 11/2:
* Homework 5, due 25/2:
* Homework 6, due 4/3:

* Project, due 18/3:

* Study questions (120301) studyquestions_2012.pdf

Philipp Schlatter edited 17 January 2013

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 21/1: HW1.pdf
* Homework 2, due 28/1: HW2.pdf
* Homework 3, due 4/2:
* Homework 4, due 11/2:
* Homework 5, due 25/2:
* Homework 6, due 4/3:

* Project, due 18/3:

* Study questions (120301) studyquestions_2012.pdf

Jerker Chechet removed his/her comment
Teacher commented 26 January 2013

Hi,

I would recommend to evaluate the exact solution at the same grid points as the numerically integrated one. In the end, for 3b you will get 5 plots, one for each number of discretisation points (N=20, 40...).

Philipp

Philipp Schlatter edited 2 February 2013

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 21/1: HW1.pdf
* Homework 2, due 28/1: HW2.pdf
* Homework 3, due 4/2: HW3.pdf
* Homework 4, due 11/2: HW4.pdf Matlab templates: artificial_visc.m, boundary_cond.m, dx.m, flux_function.m, mac_cormack.m, shocktube.m
* Homework 5, due 25/2:
* Homework 6, due 4/3:

* Project, due 18/3:

* Study questions (120301) studyquestions_2012.pdf

commented 8 February 2013

I have a question about home work 4 , taks 2 , part b . How should we compute u_l and \rho_l?  Should we compute them analytically or we can use the data from the simulation ?

Teacher commented 8 February 2013

Hi,

The conditions on both sides of the shock should in principle be taken from the solution. That means that for the left side, you take the computed solutions, as stated in the exercise sheet: "...where rho_l and u_l are the computed states at the left-hand side of the shock." On the right side, the flow is not yet processed by the shock, and thus the conditions are unchanged since the beginning of the simulation. The exercise sheet says: "rho_r and u_r are
measured on the right-hand side of the shock and thus given by the initial conditions.".

Hope this helps,

Philipp

Philipp Schlatter edited 20 February 2013

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 21/1: HW1.pdf
* Homework 2, due 28/1: HW2.pdf
* Homework 3, due 4/2: HW3.pdf
* Homework 4, due 11/2: HW4.pdf Matlab templates: artificial_visc.m, boundary_cond.m, dx.m, flux_function.m, mac_cormack.m, shocktube.m
* Homework 5, due 25/2: HW5.pdf (updated)
* Homework 6, due 4/3:

* Project, due 18/3:

* Study questions (120301) studyquestions_2012.pdf

Philipp Schlatter edited 25 February 2013

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 21/1: HW1.pdf
* Homework 2, due 28/1: HW2.pdf
* Homework 3, due 4/2: HW3.pdf
* Homework 4, due 11/2: HW4.pdf Matlab templates: artificial_visc.m, boundary_cond.m, dx.m, flux_function.m, mac_cormack.m, shocktube.m
* Homework 5, due 25/2: HW5.pdf (updated)
* Homework 6, due 4/3: HW6.pdf (template: GS_SOR_template.m)

* Project, due 18/3:

* Study questions (120301): studyquestions_2012.pdf

Philipp Schlatter edited 25 February 2013

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 21/1: HW1.pdf
* Homework 2, due 28/1: HW2.pdf
* Homework 3, due 4/2: HW3.pdf
* Homework 4, due 11/2: HW4.pdf Matlab templates: artificial_visc.m, boundary_cond.m, dx.m, flux_function.m, mac_cormack.m, shocktube.m
* Homework 5, due 25/2: HW5.pdf (updated)
* Homework 6, due 4/3: HW6.pdf (template: GS_SOR_template.m)

* Project, due 18/3: project.pdfMatlab templates: SG2212_template.m, DD_template.m, avg_template.m

* Study questions (120301): studyquestions_2012.pdf

Philipp Schlatter edited 27 February 2013

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 21/1: HW1.pdf
* Homework 2, due 28/1: HW2.pdf
* Homework 3, due 4/2: HW3.pdf
* Homework 4, due 11/2: HW4.pdf Matlab templates: artificial_visc.m, boundary_cond.m, dx.m, flux_function.m, mac_cormack.m, shocktube.m
* Homework 5, due 25/2: HW5.pdf (updated)
* Homework 6, due 4/3: HW6.pdf (updated!) (template: GS_SOR_template.m, DD_template.m)

* Project, due 18/3: project.pdfMatlab templates: SG2212_template.m, DD_template.m, avg_template.m

* Study questions (120301): studyquestions_2012.pdf

commented 27 February 2013

Hi,

a few questions about what was just changed.
It was only the boundary eq on page 2 that was added, right?

The code DD_template, is that accually used at HW6, or is only for the project?

// Jerker

Teacher commented 27 February 2013

Hi,

I was about to write what we actually changed...

1) the main change is the ordering of the entries in equations (3) and (4), that is which of the coordinates varies the fastest. We have adapted this homework in such a way that it directly can be used in the project to solve the Poisson equation, and we therefore changed the ordering in the code but unfortunately did not adapt the homework sheet. But as it is now, it should be correct (and consistent with the template).

2) DD_template.m can be used for both HW6 and the project; it provides an easy way to compute the 1D derivative matrices which can then made 2D via the kron operator. I guess this will be explained tomorrow.

hope this helps,
Philipp

Philipp Schlatter edited 1 March 2013

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 21/1: HW1.pdf
* Homework 2, due 28/1: HW2.pdf
* Homework 3, due 4/2: HW3.pdf
* Homework 4, due 11/2: HW4.pdf Matlab templates: artificial_visc.m, boundary_cond.m, dx.m, flux_function.m, mac_cormack.m, shocktube.m
* Homework 5, due 25/2: HW5.pdf (updated)
* Homework 6, due 4/3: HW6.pdf (updated!) (template: GS_SOR_template.m, DD_template.m)

* Project, due 18/3: project.pdf (updated cross references!)Matlab templates: SG2212_template.m, DD_template.m, avg_template.m

* Study questions (120301): studyquestions_2012.pdf

commented 2 March 2013

Hi,

I have some difficulties with HW6, to implement the methods in the code.

My problem is that allthough the code converges, it doesn't seem to converge to the solution calculated directly. The valeus are around a factor 2 wrong.

I have search for errors, but can't find any, neither in the direct or iterated function. Have anyone solved this? In that case, should the value P(15Nx+15) (for 30x30) be 0.1083 or 0.0507, or something completely different? So i know where to look for errors...

Teacher commented 2 March 2013

Hi,

the value in the middle of the domain should be 0.0507...

Best regards,

Philipp

commented 2 March 2013

Ok, thank u. Just found that analytically too.. Then the flaw is in the iterative method..

Philipp Schlatter edited 4 March 2013

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 21/1: HW1.pdf
* Homework 2, due 28/1: HW2.pdf
* Homework 3, due 4/2: HW3.pdf
* Homework 4, due 11/2: HW4.pdf Matlab templates: artificial_visc.m, boundary_cond.m, dx.m, flux_function.m, mac_cormack.m, shocktube.m
* Homework 5, due 25/2: HW5.pdf (updated)
* Homework 6, due 4/3: HW6.pdf (updated!) (template: GS_SOR_template.m, DD_template.m)

* Project, due 18/3: project.pdf (updated cross references!)Matlab templates: SG2212_template.m, DD_template.m, avg_template.m

* Study questions (12303013):  studyquestions_20123.pdf

commented 5 March 2013

Hi,

We were dealing with the project and we were wondering whether:

1-If we should hand in individual reports although we work together in a group?

2-Will we lose any points if we do not implement the temperature for the Lid-Driven cavity?

Teacher commented 5 March 2013

Hi,

1) yes, everybody should hand in his own copy, even though it is completely the same. This way we can make sure that each of you has his own copy and comments.

2) no, the temperature is not needed for the credits SG2212.

Philipp

Ardeshir Hanifi edited 6 March 2013

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 21/1: HW1.pdf
* Homework 2, due 28/1: HW2.pdf
* Homework 3, due 4/2: HW3.pdf
* Homework 4, due 11/2: HW4.pdf Matlab templates: artificial_visc.m, boundary_cond.m, dx.m, flux_function.m, mac_cormack.m, shocktube.m
* Homework 5, due 25/2: HW5.pdf (updated)
* Homework 6, due 4/3: HW6.pdf (updated!) (template: GS_SOR_template.m, DD_template.m)

* Project, due 18/3: project.pdf (updated cross references!)Matlab templates: SG2212_template.m, DD_template.m, avg_template.m

* Study questions (130306): Study questions

Philipp Schlatter edited 8 March 2013

Submit your homeworks (as PDF) using Bilda. However, questions etc. should be asked in KTH Social.

* Homework 1, due 21/1: HW1.pdf
* Homework 2, due 28/1: HW2.pdf
* Homework 3, due 4/2: HW3.pdf
* Homework 4, due 11/2: HW4.pdf Matlab templates: artificial_visc.m, boundary_cond.m, dx.m, flux_function.m, mac_cormack.m, shocktube.m
* Homework 5, due 25/2: HW5.pdf (updated)
* Homework 6, due 4/3: HW6.pdf (updated!) (template: GS_SOR_template.m, DD_template.m)

* Project, due 18/3: project.pdf (updated cross references!)Matlab templates: SG2212_template.m, DD_template.m, avg_template.m

* Study questions (130306): Sstudy questions_2013.pdf (corrected question 23)

commented 1 February 2015

What is meant by the question 3.d? what do we mean when we say amplification factor?

commented 1 February 2015

I mean amplification factor of the analytical solution,

Assistant commented 1 February 2015

Hi,

for the analytical solution it has the same meaning that it has for the discretized version, i.e. u^(n+1)/u^n. Do not forget that u^(n+1) = u(t + Delta t) and u^n = u(t).

Regards,

Jacopo

commented 1 February 2015

Thank you! also, I wanted to know what do you plot G(z) against? or are we plotting the real part of  G(z)?

Assistant commented 1 February 2015

plot G(z) against z, consider only real values of z

Regards,
Jacopo

Teacher commented 7 March 2015

Regarding study question 13, i.e. how to derive the stability region for the Crank-Nicolson scheme. Essentially, one gets the amplification factor  and the limit for the region of absolute stability is . Therefore, one gets the following equality for the border . The two sides describe a circle with centres at +2 and -2, respectively. The only points where the equality is possible to be fulfilled is the imaginary axis, which then defines the boundary of the region of absolute stability.

Jacopo Canton edited 29 January 2016

Submit your homework (as PDF) using KTH Social using the link "Assignments" on the left menu at the latest on Thursdays at 12:00. Questions etc. should be asked in KTH Social on this page. In case of problems or that you do not have the link to submit, please hand in the homework via email (erikbos@mech.kth.se or jcanton@mech.kth.se).

Please use the following naming convention: "surname_hwX.pdf" and the Matlab files as a single archive: "surname_hwX.zip". X is the number of the homework.¶ Now, the submission using the online system should work for all course participants (including PhD students). Please try, and in case of troubles let us know.

Use only a single pdf and a single archive for your homeworks. Preferably scan your homework, if you take a photo, make sure it is sharp and bright.

HOMEWORK GUIDELINES:¶

* Five assignements out of six are mandatory;
* Use only a single pdf. Preferably scan your homework, if you take a photo, make sure it is sharp and bright;
* Include all plots in the pdf in the right place;
* Do not present plots without commenting them: always write a (short) description of what the plot tells you and what you can conclude from it;
* If you work in groups:
* write the names of all group members at the beginning of the report;
* you can work and discuss together but each group member is required to submit an individual report written with his/her own words; copy-paste reports will not be accepted (see cheating and plagiarism);

* Please use the following naming convention: "surname_hwX.pdf" and include all Matlab files as a single archive: "surname_hwX.zip". X is the number of the homework;

HOMEWORKS:

* Homework 1, due 28/1: HW1.pdf (update of task 3c)
* Homework 2, due 4/2: HW2.pdf
* Homework 3, due 11/2:
* Homework 4, due 18/2: Matlab templates:
* Homework 5, due 25/2:
* Homework 6, due 2/3: Matlab templates:

* Project, due 23/3: Matlab templates:

* Study questions: studyquestions_2015.pdf

Erik Boström edited 3 February 2016

Submit your homework (as PDF) using KTH Social using the link "Assignments" on the left menu at the latest on Thursdays at 12:00. Questions etc. should be asked in KTH Social on this page. In case of problems or that you do not have the link to submit, please hand in the homework via email (erikbos@mech.kth.se or jcanton@mech.kth.se).

Now, the submission using the online system should work for all course participants (including PhD students). Please try, and in case of troubles let us know.

HOMEWORK GUIDELINES:

* Five assignements out of six are mandatory;
* Use only a single pdf. Preferably scan your homework, if you take a photo, make sure it is sharp and bright;
* Include all plots in the pdf in the right place;
* Do not present plots without commenting them: always write a (short) description of what the plot tells you and what you can conclude from it;
* If you work in groups:
* write the names of all group members at the beginning of the report;
* you can work and discuss together but each group member is required to submit an individual report written with his/her own words; copy-paste reports will not be accepted (see cheating and plagiarism);

* Please use the following naming convention: "surname_hwX.pdf" and include all Matlab files as a single archive: "surname_hwX.zip". X is the number of the homework;

HOMEWORKS:

* Homework 1, due 28/1: HW1.pdf (update of task 3c)
* Homework 2, due 4/2: HW2.pdf
* Homework 3, due 11/2:  HW3.pdf
* Homework 4, due 18/2: Matlab templates:
* Homework 5, due 25/2:
* Homework 6, due 2/3: Matlab templates:

* Project, due 23/3: Matlab templates:

* Study questions: studyquestions_2015.pdf

Jacopo Canton edited 12 February 2016

Submit your homework (as PDF) using KTH Social using the link "Assignments" on the left menu at the latest on Thursdays at 12:00. Questions etc. should be asked in KTH Social on this page. In case of problems or that you do not have the link to submit, please hand in the homework via email (erikbos@mech.kth.se or jcanton@mech.kth.se).

Now, the submission using the online system should work for all course participants (including PhD students). Please try, and in case of troubles let us know.

HOMEWORK GUIDELINES:

* Five assignements out of six are mandatory;
* Use only a single pdf. Preferably scan your homework, if you take a photo, make sure it is sharp and bright;
* Include all plots in the pdf in the right place;
* Do not present plots without commenting them: always write a (short) description of what the plot tells you and what you can conclude from it;
* If you work in groups:
* write the names of all group members at the beginning of the report;
* you can work and discuss together but each group member is required to submit an individual report written with his/her own words; copy-paste reports will not be accepted (see cheating and plagiarism);

* Please use the following naming convention: "surname_hwX.pdf" and include all Matlab files as a single archive: "surname_hwX.zip". X is the number of the homework;

HOMEWORKS:

* Homework 1, due 28/1: HW1.pdf (update of task 3c)
* Homework 2, due 4/2: HW2.pdf
* Homework 3, due 11/2: HW3.pdf
* Homework 4, due 18/2: Matlab templates: HW4.pdf
* Homework 5, due 25/2:
* Homework 6, due 2/3: Matlab templates:

* Project, due 23/3: Matlab templates:

* Study questions: studyquestions_2015.pdf

Erik Boström edited 19 February 2016

Submit your homework (as PDF) using KTH Social using the link "Assignments" on the left menu at the latest on Thursdays at 12:00. Questions etc. should be asked in KTH Social on this page. In case of problems or that you do not have the link to submit, please hand in the homework via email (erikbos@mech.kth.se or jcanton@mech.kth.se).

Now, the submission using the online system should work for all course participants (including PhD students). Please try, and in case of troubles let us know.

HOMEWORK GUIDELINES:

* Five assignements out of six are mandatory;
* Use only a single pdf. Preferably scan your homework, if you take a photo, make sure it is sharp and bright;
* Include all plots in the pdf in the right place;
* Do not present plots without commenting them: always write a (short) description of what the plot tells you and what you can conclude from it;
* If you work in groups:
* write the names of all group members at the beginning of the report;
* you can work and discuss together but each group member is required to submit an individual report written with his/her own words; copy-paste reports will not be accepted (see cheating and plagiarism);

* Please use the following naming convention: "surname_hwX.pdf" and include all Matlab files as a single archive: "surname_hwX.zip". X is the number of the homework;

HOMEWORKS:

* Homework 1, due 28/1: HW1.pdf (update of task 3c)
* Homework 2, due 4/2: HW2.pdf
* Homework 3, due 11/2: HW3.pdf
* Homework 4, due 18/2: HW4.pdf
* Homework 5, due 25/2:  HW5.pdf, HW5_m-files.zip
* Homework 6, due 2/3: Matlab templates:

* Project, due 23/3: Matlab templates:

* Study questions: studyquestions_2015.pdf

Jacopo Canton edited 21 February 2016

Submit your homework (as PDF) using KTH Social using the link "Assignments" on the left menu at the latest on Thursdays at 12:00. Questions etc. should be asked in KTH Social on this page. In case of problems or that you do not have the link to submit, please hand in the homework via email (erikbos@mech.kth.se or jcanton@mech.kth.se).

Now, the submission using the online system should work for all course participants (including PhD students). Please try, and in case of troubles let us know.

HOMEWORK GUIDELINES:

* Five assignements out of six are mandatory;
* Use only a single pdf. Preferably scan your homework, if you take a photo, make sure it is sharp and bright;
* Include all plots in the pdf in the right place;
* Do not present plots without commenting them: always write a (short) description of what the plot tells you and what you can conclude from it;
* If you work in groups:
* write the names of all group members at the beginning of the report;
* you can work and discuss together but each group member is required to submit an individual report written with his/her own words; copy-paste reports will not be accepted (see cheating and plagiarism);

* Please use the following naming convention: "surname_hwX.pdf" and include all Matlab files as a single archive: "surname_hwX.zip". X is the number of the homework;

HOMEWORKS:

* Homework 1, due 28/1: HW1.pdf (update of task 3c)
* Homework 2, due 4/2: HW2.pdf
* Homework 3, due 11/2: HW3.pdf
* Homework 4, due 18/2: HW4.pdf
* Homework 5, due 25/2:  HW5_updated.pdf HW5_m-files.zip
* Homework 6, due 2/3: Matlab templates:

* Project, due 23/3: Matlab templates:

* Study questions: studyquestions_2015.pdf

Assistant commented 21 February 2016

There was a mistake in equation (2) of Homework 5, now the pdf is correct.

Jacopo Canton edited 27 February 2016

Submit your homework (as PDF) using KTH Social using the link "Assignments" on the left menu at the latest on Thursdays at 12:00. Questions etc. should be asked in KTH Social on this page. In case of problems or that you do not have the link to submit, please hand in the homework via email (erikbos@mech.kth.se or jcanton@mech.kth.se).

Now, the submission using the online system should work for all course participants (including PhD students). Please try, and in case of troubles let us know.

HOMEWORK GUIDELINES:

* Five assignements out of six are mandatory;
* Use only a single pdf. Preferably scan your homework, if you take a photo, make sure it is sharp and bright;
* Include all plots in the pdf in the right place;
* Do not present plots without commenting them: always write a (short) description of what the plot tells you and what you can conclude from it;
* If you work in groups:
* write the names of all group members at the beginning of the report;
* you can work and discuss together but each group member is required to submit an individual report written with his/her own words; copy-paste reports will not be accepted (see cheating and plagiarism);

* Please use the following naming convention: "surname_hwX.pdf" and include all Matlab files as a single archive: "surname_hwX.zip". X is the number of the homework;

HOMEWORKS:

* Homework 1, due 28/1: HW1.pdf (update of task 3c)
* Homework 2, due 4/2: HW2.pdf
* Homework 3, due 11/2: HW3.pdf
* Homework 4, due 18/2: HW4.pdf
* Homework 5, due 25/2: HW5_updated.pdf, HW5_m-files.zip
* Homework 6, due 21/3: Matlab templates:  at midnight: HW6.pdf HW6_mFiles.zip

* Project, due 23/3: project.pdfMatlab templates: project_mFiles.zip

* Study questions: studyquestions_2015.pdf

Jacopo Canton edited 18 January 2017

Submit your homework (as PDF) using KTH Social using the link "Assignments" on the left menu at the latest on Tuesdays at 23:59. Questions etc. should be asked in KTH Social on this page. In case of problems or that you do not have the link to submit (mostly PhD students in the beginning of the course), please hand in the homework via email (erikbos@mech.kth.se or jcanton@mech.kth.se).

HOMEWORK GUIDELINES:

* Five homeworks out of six are mandatory;
* approx. 75% correct is required in each homework to pass;
* Use only a single pdf. Preferably scan your homework, if you take a photo, make sure it is sharp and bright;
* Include all plots in the pdf in the right place;
* Do not present plots without commenting them: always write a (short) description of what the plot tells you and what you can conclude from it;
* You can work in groups up to 3;
* If you work in groups:
* write the names of all group members at the beginning of the report;
* you can work and discuss together but each group member is required to submit an individual report written with his/her own words; copy-paste reports will not be accepted (see cheating and plagiarism);

* Please use the following naming convention: "surname_hwX.pdf" and include all Matlab files as a single archive: "surname_hwX.zip". X is the number of the homework;

HOMEWORKS:

* Homework 1, due 24/1: HW1.pdf
* Homework 2, due 31/1:
* Homework 3, due 7/2:
* Homework 4, due 14/2:
* Homework 5, due 21/2:
* Homework 6, due 28/2:

* Project, due 23/3: Matlab templates:

* Study questions: studyquestions_2015.pdf

Erik Boström edited 25 January 2017

Submit your homework (as PDF) using KTH Social using the link "Assignments" on the left menu at the latest on Tuesdays at 23:59. Questions etc. should be asked in KTH Social on this page. In case of problems or that you do not have the link to submit (everybody should be added to the online system by now!), please hand in the homework via email (erikbos@mech.kth.se or jcanton@mech.kth.se). But only if the other option does not work!

HOMEWORK GUIDELINES:

* Five homeworks out of six are mandatory;
* approx. 75% correct is required in each homework to pass;
* Use only a single pdf. Preferably scan your homework, if you take a photo, make sure it is sharp and bright;
* Include all plots in the pdf in the right place;
* Do not present plots without commenting them: always write a (short) description of what the plot tells you and what you can conclude from it;
* You can work in groups up to 3;
* If you work in groups:
* write the names of all group members at the beginning of the report;
* you can work and discuss together but each group member is required to submit an individual report written with his/her own words; copy-paste reports will not be accepted (see cheating and plagiarism);

* Please use the following naming convention: "surname_hwX.pdf" and include all Matlab files as a single archive: "surname_hwX.zip". X is the number of the homework;

HOMEWORKS:

* Homework 1, due 24/1: HW1.pdf
* Homework 2, due 31/1: HW2.pdf
* Homework 3, due 7/2:
* Homework 4, due 14/2:
* Homework 5, due 21/2:
* Homework 6, due 28/2:

* Project, due 23/3: Matlab templates:

* Study questions: studyquestions_2015.pdf

Jacopo Canton edited 27 January 2017

Submit your homework (as PDF) using KTH Social using the link "Assignments" on the left menu at the latest on Tuesdays at 23:59. Questions etc. should be asked in KTH Social on this page. In case of problems or that you do not have the link to submit (everybody should be added to the online system by now!), please hand in the homework via email (erikbos@mech.kth.se or jcanton@mech.kth.se). But only if the other option does not work!

HOMEWORK GUIDELINES:

* Five homeworks out of six are mandatory;
* approx. 75% correct is required in each homework to pass;
* Use only a single pdf. Preferably scan your homework, if you take a photo, make sure it is sharp and bright;
* Include all plots in the pdf in the right place;
* Do not present plots without commenting them: always write a (short) description of what the plot tells you and what you can conclude from it;
* You can work in groups up to 3;
* If you work in groups:
* write the names of all group members at the beginning of the report;
* you can work and discuss together but each group member is required to submit an individual report written with his/her own words; copy-paste reports will not be accepted (see cheating and plagiarism);

* Please use the following naming convention: "surname_hwX.pdf" and include all Matlab files as a single archive: "surname_hwX.zip". X is the number of the homework;

HOMEWORKS:

* Homework 1, due 24/1: HW1.pdf
* Homework 2, due 31/1: HW2_updated.pdf
* Homework 3, due 7/2:
* Homework 4, due 14/2:
* Homework 5, due 21/2:
* Homework 6, due 28/2:

* Project, due 23/3: Matlab templates:

* Study questions: studyquestions_2015.pdf

Jacopo Canton edited 30 January 2017

Submit your homework (as PDF) using KTH Social using the link "Assignments" on the left menu at the latest on Tuesdays at 23:59. Questions etc. should be asked in KTH Social on this page. In case of problems or that you do not have the link to submit (everybody should be added to the online system by now!), please hand in the homework via email (erikbos@mech.kth.se or jcanton@mech.kth.se). But only if the other option does not work!

HOMEWORK GUIDELINES:

* Five homeworks out of six are mandatory;
* approx. 75% correct is required in each homework to pass;
* Use only a single pdf. Preferably scan your homework, if you take a photo, make sure it is sharp and bright;
* Include all plots in the pdf in the right place;
* Do not present plots without commenting them: always write a (short) description of what the plot tells you and what you can conclude from it;
* You can work in groups up to 3;
* If you work in groups:
* write the names of all group members at the beginning of the report;
* you can work and discuss together but each group member is required to submit an individual report written with his/her own words; copy-paste reports will not be accepted (see cheating and plagiarism);

* Please use the following naming convention: "surname_hwX.pdf" and include all Matlab files as a single archive: "surname_hwX.zip". X is the number of the homework;

HOMEWORKS:

* Homework 1, due 24/1: HW1.pdf
* Homework 2, due 31/1: HW2_updated.pdf
* Homework 3, due 7/2:
* Homework 4, due 14/2:
* Homework 5, due 21/2:
* Homework 6, due 28/2:

* Project, due 23/3: Matlab templates:

* Study questions: studyquestions_2015.pdf

Jacopo Canton edited 2 February 2017

Submit your homework (as PDF) using KTH Social using the link "Assignments" on the left menu at the latest on Tuesdays at 23:59. Questions etc. should be asked in KTH Social on this page. In case of problems or that you do not have the link to submit (everybody should be added to the online system by now!), please hand in the homework via email (erikbos@mech.kth.se or jcanton@mech.kth.se). But only if the other option does not work!

HOMEWORK GUIDELINES:

* Five homeworks out of six are mandatory;
* approx. 75% correct is required in each homework to pass;
* Use only a single pdf. Preferably scan your homework, if you take a photo, make sure it is sharp and bright;
* Include all plots in the pdf in the right place;
* Do not present plots without commenting them: always write a (short) description of what the plot tells you and what you can conclude from it;
* You can work in groups up to 3;
* If you work in groups:
* write the names of all group members at the beginning of the report;
* you can work and discuss together but each group member is required to submit an individual report written with his/her own words; copy-paste reports will not be accepted (see cheating and plagiarism);

* Please use the following naming convention: "surname_hwX.pdf" and include all Matlab files as a single separate archive: "surname_hwX.zip". X is the number of the homework;

HOMEWORKS:

* Homework 1, due 24/1: HW1.pdf
* Homework 2, due 31/1: HW2_updated.pdf
* Homework 3, due 7/2: HW3.pdf
* Homework 4, due 14/2:
* Homework 5, due 21/2:
* Homework 6, due 28/2:

* Project, due 23/3: Matlab templates:

* Study questions: studyquestions_2015.pdf

Jacopo Canton edited 14 February 2017

Submit your homework (as PDF) using KTH Social using the link "Assignments" on the left menu at the latest on Tuesdays at 23:59. Questions etc. should be asked in KTH Social on this page. In case of problems or that you do not have the link to submit (everybody should be added to the online system by now!), please hand in the homework via email (erikbos@mech.kth.se or jcanton@mech.kth.se). But only if the other option does not work!

HOMEWORK GUIDELINES:

* Five homeworks out of six are mandatory;
* approx. 75% correct is required in each homework to pass;
* Use only a single pdf. Preferably scan your homework, if you take a photo, make sure it is sharp and bright;
* Include all plots in the pdf in the right place;
* Do not present plots without commenting them: always write a (short) description of what the plot tells you and what you can conclude from it;
* You can work in groups up to 3;
* If you work in groups:
* write the names of all group members at the beginning of the report;
* you can work and discuss together but each group member is required to submit an individual report written with his/her own words; copy-paste reports will not be accepted (see cheating and plagiarism);

* Please use the following naming convention: "surname_hwX.pdf" and include all Matlab files as a single separate archive: "surname_hwX.zip". X is the number of the homework;

HOMEWORKS:

* Homework 1, due 24/1: HW1.pdf
* Homework 2, due 31/1: HW2_updated.pdf
* Homework 3, due 7/2: HW3.pdf
* Homework 4, due 14/2: HW4.pdf, HW4_m-files.zip
* Homework 5, due 21/2: HW5.pdf
* Homework 6, due 28/2:

* Project, due 23/3: Matlab templates:

* Study questions: studyquestions_2015.pdf

Erik Boström edited 22 February 2017

Submit your homework (as PDF) using KTH Social using the link "Assignments" on the left menu at the latest on Tuesdays at 23:59. Questions etc. should be asked in KTH Social on this page. In case of problems or that you do not have the link to submit (everybody should be added to the online system by now!), please hand in the homework via email (erikbos@mech.kth.se or jcanton@mech.kth.se). But only if the other option does not work!

HOMEWORK GUIDELINES:

* Five homeworks out of six are mandatory;
* approx. 75% correct is required in each homework to pass;
* Use only a single pdf. Preferably scan your homework, if you take a photo, make sure it is sharp and bright;
* Include all plots in the pdf in the right place;
* Do not present plots without commenting them: always write a (short) description of what the plot tells you and what you can conclude from it;
* You can work in groups up to 3;
* If you work in groups:
* write the names of all group members at the beginning of the report;
* you can work and discuss together but each group member is required to submit an individual report written with his/her own words; copy-paste reports will not be accepted (see cheating and plagiarism);

* Please use the following naming convention: "surname_hwX.pdf" and include all Matlab files as a single separate archive: "surname_hwX.zip". X is the number of the homework;

HOMEWORKS:

* Homework 1, due 24/1: HW1.pdf
* Homework 2, due 31/1: HW2_updated.pdf
* Homework 3, due 7/2: HW3.pdf
* Homework 4, due 14/2: HW4.pdf, HW4_m-files.zip
* Homework 5, due 21/2: HW5.pdf
* Homework 6, due 28/2: HW6.pdf, HW6_m-files.zip

* Project, due 23/3: Matlab templates: project.pdf, project_m-files.zip

* Study questions: studyquestions_2015.pdf


text:
Electricity and Magnetism

# Problem solving - charges and fields

A homogeneous ball with mass $m=1 ~\mbox{g}$ and total charge $q=10^{-3}~\mbox{C}$ (uniformly distributed) is placed on a horizontal $xy$-plane. The ball starts rolling without slipping under the influence of a uniform electrostatic field $\vec{E}=(E,0,0)$ with $E=1~ \mbox{V/m}.$ Find the acceleration in meters per second squared of the center of mass of the ball.

If a point charge $Q = -3 \text{ C }$ with mass $m = 1 \text{ kg}$ is put at point $P$ which is at a distance of $z = 9 \text{ m}$ above the midpoint between two equal charges $q = 25 \times 10^{-12} \text{ C },$ at a distance of $2d =24 \text{ m}$ apart, the point charge will be move to point $O.$ If the speed of the point charge at point $O$ can be expressed as $v = \sqrt{\frac{a}{b}} \text{ m/s},$ where $a$ and $b$ are coprime positive integers, what is the value of $a+b?$

Let $\pi \approx 3,$ and the permitivity of free space $\epsilon_0 \approx 9\times 10^{-12} \frac{\text{C}^2}{\text{N*m}^2}.$

There is a point charge with mass $m = 1 \text{ kg}$ and charge $q = -9\times 10^{-6} \text{ C }$ on a uniformly charged sphere with charge $Q = 9\times 10^{-6} \text{ C }$ and radius $R = 1 \text{ m}$. As shown in the above diagram, there is a hole on the sphere, so the point charge can move into the hole. If the period of the point charge can be expressed as $T = 2\pi \sqrt{\frac{a}{b}} \text{ s},$ where $a$ and $b$ are coprime positive integers, what is the value of $a+b?$

Let $\pi \approx 3,$ and the permitivity of free space $\epsilon_0 \approx 9\times 10^{-12} \frac{\text{C}^2}{\text{Nm}^2}.$

A point particle with mass $m = 1 \text{ kg}$ and charge $q = -7\times 10^{-6} \text{ C }$ is rotating around another point particle with charge $Q = 7\times 10^{-6} \text{ C }$,which is fixed at the center, with radius $r = 2 \text{ m}$. If the speed of the circular motion can be expressed as $v = \sqrt{\frac{a}{b}} \text{ m/s},$ where $a$ and $b$ are coprime positive integers, what is the value of $a+b?$

Let $\pi \approx 3,$ and the permitivity of free space $\epsilon_0 \approx 9\times 10^{-12} \frac{\text{C}^2}{\text{N*m}^2}.$

The potential at point $P$ which is at a distance of $z = 6 \text{ m}$ above the midpoint between two equal charges $q = 500 \times 10^{-12} \text{ C }$, at a distance of $2d =16 \text{ m}$ apart, can be expressed as $U = \frac{a}{b} \text{ J/C},$ where $a$ and $b$ are coprime positive integers. What is the value of $a+b?$

Let $\pi \approx 3,$ and the permitivity of free space $\epsilon_0 \approx 9\times 10^{-12} \frac{\text{C}^2}{\text{N*m}^2}.$

×

Problem Loading...

Note Loading...

Set Loading...

format: plain


text:
# American Institute of Mathematical Sciences

July  2018, 14(3): 1041-1054. doi: 10.3934/jimo.2017089

## Second-order optimality conditions for cone constrained multi-objective optimization

 School of Mathematical Sciences, Dalian University of Technology, Dalian 116024, China

* Corresponding authorr: Liwei Zhang

Received  February 2017 Revised  June 2017 Published  September 2017

Fund Project: Supported by the National Natural Science Foundation of China under project grant No. 11571059,11731013 and No. 91330206.

The aim of this paper is to develop second-order necessary and second-order sufficient optimality conditions for cone constrained multi-objective optimization. First of all, we derive, for an abstract constrained multi-objective optimization problem, two basic necessary optimality theorems for weak efficient solutions and a second-order sufficient optimality theorem for efficient solutions. Secondly, basing on the optimality results for the abstract problem, we demonstrate, for cone constrained multi-objective optimization problems, the first-order and second-order necessary optimality conditions under Robinson constraint qualification as well as the second-order sufficient optimality conditions under upper second-order regularity for the conic constraint. Finally, using the optimality conditions for cone constrained multi-objective optimization obtained, we establish optimality conditions for polyhedral cone, second-order cone and semi-definite cone constrained multi-objective optimization problems.

Citation: Liwei Zhang, Jihong Zhang, Yule Zhang. Second-order optimality conditions for cone constrained multi-objective optimization. Journal of Industrial & Management Optimization, 2018, 14 (3) : 1041-1054. doi: 10.3934/jimo.2017089
##### References:

show all references

##### References:
 [1] Li Chu, Bo Wang, Jie Zhang, Hong-Wei Zhang. Convergence analysis of a smoothing SAA method for a stochastic mathematical program with second-order cone complementarity constraints. Journal of Industrial & Management Optimization, 2021, 17 (4) : 1863-1886. doi: 10.3934/jimo.2020050 [2] Simone Fiori, Italo Cervigni, Mattia Ippoliti, Claudio Menotta. Synthetic nonlinear second-order oscillators on Riemannian manifolds and their numerical simulation. Discrete & Continuous Dynamical Systems - B, 2021  doi: 10.3934/dcdsb.2021088 [3] Qian Liu. The lower bounds on the second-order nonlinearity of three classes of Boolean functions. Advances in Mathematics of Communications, 2021  doi: 10.3934/amc.2020136 [4] Kaifang Liu, Lunji Song, Shan Zhao. A new over-penalized weak galerkin method. Part Ⅰ: Second-order elliptic problems. Discrete & Continuous Dynamical Systems - B, 2021, 26 (5) : 2411-2428. doi: 10.3934/dcdsb.2020184 [5] Elimhan N. Mahmudov. Second order discrete time-varying and time-invariant linear continuous systems and Kalman type conditions. Numerical Algebra, Control & Optimization, 2021  doi: 10.3934/naco.2021010 [6] Anton Schiela, Julian Ortiz. Second order directional shape derivatives of integrals on submanifolds. Mathematical Control & Related Fields, 2021  doi: 10.3934/mcrf.2021017 [7] Shoufeng Ji, Jinhuan Tang, Minghe Sun, Rongjuan Luo. Multi-objective optimization for a combined location-routing-inventory system considering carbon-capped differences. Journal of Industrial & Management Optimization, 2021  doi: 10.3934/jimo.2021051 [8] Weisong Dong, Chang Li. Second order estimates for complex Hessian equations on Hermitian manifolds. Discrete & Continuous Dynamical Systems, 2021, 41 (6) : 2619-2633. doi: 10.3934/dcds.2020377 [9] Xiaoming Wang. Quasi-periodic solutions for a class of second order differential equations with a nonlinear damping term. Discrete & Continuous Dynamical Systems - S, 2017, 10 (3) : 543-556. doi: 10.3934/dcdss.2017027 [10] Namsu Ahn, Soochan Kim. Optimal and heuristic algorithms for the multi-objective vehicle routing problem with drones for military surveillance operations. Journal of Industrial & Management Optimization, 2021  doi: 10.3934/jimo.2021037 [11] Ardeshir Ahmadi, Hamed Davari-Ardakani. A multistage stochastic programming framework for cardinality constrained portfolio optimization. Numerical Algebra, Control & Optimization, 2017, 7 (3) : 359-377. doi: 10.3934/naco.2017023 [12] Caifang Wang, Tie Zhou. The order of convergence for Landweber Scheme with $\alpha,\beta$-rule. Inverse Problems & Imaging, 2012, 6 (1) : 133-146. doi: 10.3934/ipi.2012.6.133 [13] Alexandre B. Simas, Fábio J. Valentim. $W$-Sobolev spaces: Higher order and regularity. Communications on Pure & Applied Analysis, 2015, 14 (2) : 597-607. doi: 10.3934/cpaa.2015.14.597 [14] Mohsen Abdolhosseinzadeh, Mir Mohammad Alipour. Design of experiment for tuning parameters of an ant colony optimization method for the constrained shortest Hamiltonian path problem in the grid networks. Numerical Algebra, Control & Optimization, 2021, 11 (2) : 321-332. doi: 10.3934/naco.2020028 [15] Pavel I. Naumkin, Isahi Sánchez-Suárez. Asymptotics for the higher-order derivative nonlinear Schrödinger equation. Communications on Pure & Applied Analysis, , () : -. doi: 10.3934/cpaa.2021028 [16] Huan Zhang, Jun Zhou. Asymptotic behaviors of solutions to a sixth-order Boussinesq equation with logarithmic nonlinearity. Communications on Pure & Applied Analysis, , () : -. doi: 10.3934/cpaa.2021034 [17] Hong Seng Sim, Wah June Leong, Chuei Yee Chen, Siti Nur Iqmal Ibrahim. Multi-step spectral gradient methods with modified weak secant relation for large scale unconstrained optimization. Numerical Algebra, Control & Optimization, 2018, 8 (3) : 377-387. doi: 10.3934/naco.2018024 [18] A. Aghajani, S. F. Mottaghi. Regularity of extremal solutions of semilinaer fourth-order elliptic problems with general nonlinearities. Communications on Pure & Applied Analysis, 2018, 17 (3) : 887-898. doi: 10.3934/cpaa.2018044 [19] Marcel Braukhoff, Ansgar Jüngel. Entropy-dissipating finite-difference schemes for nonlinear fourth-order parabolic equations. Discrete & Continuous Dynamical Systems - B, 2021, 26 (6) : 3335-3355. doi: 10.3934/dcdsb.2020234 [20] Haili Qiao, Aijie Cheng. A fast high order method for time fractional diffusion equation with non-smooth data. Discrete & Continuous Dynamical Systems - B, 2021  doi: 10.3934/dcdsb.2021073

2019 Impact Factor: 1.366


text:
# A Gentle Introduction to HOC in React: Learn by Example

Difficulty:BeginnerLength:LongLanguages:
This post is part of a series called A Gentle Introduction to Higher Order Components in React.
A Gentle Introduction to Higher-Order Components in React

This is the second part of the series on Higher-Order Components (HOCs). Today, I will cover different higher-order component patterns that are useful and implementable. With HOCs, you can abstract redundant code into a layer of higher order. However, like any other patterns out there, it will take some time to get used to HOCs. This tutorial will help you bridge that gap.

## Prerequisite

I recommend that you follow the first part of the series if you haven't already. In the first part, we talked about HOC syntax basics and everything you need to get started with higher-order components.

In this tutorial, we will be building on top of the concepts that we've already covered in part one. I've created several sample HOCs which are practically useful, and you can incorporate these ideas into your project. Code snippets are provided in each section, and a working demo of all the practical HOCs discussed in this tutorial is provided at the end of the tutorial.

You can also fork the code from my GitHub repo.

## Practical Higher-Order Components

Since HOCs create a new abstract container component, here is the list of things that you can normally do with them:

• Wrap an element or component around a component.
• State abstraction.
• Manipulate props, e.g. adding new props and modifying or removing existing props.
• Props validation to create.
• Use refs to access instance methods.

Let's talk about these one by one.

## HOC as a Wrapper Component

If you recall, the final example in my previous tutorial demonstrated how a HOC wraps the InputComponent with other components and elements. This is useful for styling and for reusing logic wherever possible. For instance, you can use this technique to create a reusable loader indicator or an animated transition effect that should be triggered by certain events.

The first example is a loading indicator built using HOC. It checks whether a particular prop is empty, and the loading indicator is displayed until the data is fetched and returned.

This is also the first time that we've used the second parameter as input to the HOC. The second parameter, which I've named 'loadingProp', is used here to tell the HOC that it needs to check whether that particular prop is fetched and available. In the example, the isEmpty function checks whether the loadingProp is empty, and an indicator is displayed until the props are updated.

You have two options for passing down data to the HOC, either as a prop (which is the usual way) or as a parameter to the HOC.

Here is how I choose between the two. If the data doesn't have any scope beyond that of the HOC and if the data is static, then pass them as parameters. If the props are relevant to the HOC and also to the wrapped component, pass them as usual props. I've covered more about this in my third tutorial.

## State Abstraction and Prop Manipulation

State abstraction means generalizing the state to a higher-order component. All the state management of the WrappedComponent will be handled by the higher-order component. The HOC adds new state, and then the state is passed down as props to the WrappedComponent

### A Higher-Order Generic Container

If you noticed, the loader example above had a component that made a GET request using the fetch API. After retrieving the data, it was stored in the state. Making an API request when a component mounts is a common scenario, and we could make a HOC that perfectly fits into this role.

#### GenericContainer/GenericContainerDemo.jsx

The state has been generalized, and the value of the state is being passed down as props. We've made the component configurable too.

It accepts a configuration object as an input that gives more information about the API URL, the method, and the name of the state key where the result is stored. The logic used in componentWillMount() demonstrates using a dynamic key name with this.setState.

### A Higher-Order Form

Here is another example that uses the state abstraction to create a useful higher-order form component.

#### CustomForm/CustomFormHOC.jsx

The example demonstrates how the state abstraction can be used along with a presentational component to make form creation easier. Here, the form is a presentational component and is an input to the HOC. The initial state of the form and the name of the state items are also passed as parameters.

However, note that if there are multiple props with the same name, ordering is important, and the last declaration of a prop will always win. In this case, if another component pushes a prop named contact or contactList, that will result in a name conflict. So you should either namespace your HOC props so that they don't conflict with the existing props or order them in such a way that the props that should have the highest priority are declared first. This will be covered in depth in the third tutorial.

## Prop Manipulation Using HOC

Prop manipulation involves adding new props, modifying existing props, or ignoring them entirely. In the CustomForm example above, the HOC passed down some new props.

Similarly, you can decide to disregard props entirely. The example below demonstrates this scenario.

You can also do some validation/filtering props using this technique. The higher-order component decides whether a child component should receive certain props, or route the user to a different component if certain conditions are not met.

### A Higher-Order Component for Protecting Routes

Here is an example of protecting routes by wrapping the relevant component with a withAuth higher-order component.

#### ProtectedRoutes/ProtectedRoutesDemo.jsx

withAuth checks if the user is authenticated, and if not, redirects the user to /login. We've used withRouter, which is a react-router entity. Interestingly, withRouter is also a higher-order component that is used to pass the updated match, location, and history props to the wrapped component every time it renders.

For instance, it pushes the history object as props so that we can access that instance of the object as follows:

You can read more about withRouter in the official react-router documentation.

## Accessing the Instance via Refs

React has a special attribute that you can attach to a component or an element. The ref attribute (ref stands for reference) can be a callback function attached to a component declaration.

The callback gets invoked after the component is mounted, and you get an instance of the referenced component as the callback's parameter. If you are not sure about how refs work, the official documentation on Refs and the DOM talks about it in depth.

In our HOC, the benefit of using ref is that you can get an instance of the WrappedComponent and call its methods from the higher-order component. This is not part of the typical React dataflow because React prefers communication via props. However, there are many places where you might find this approach beneficial.

#### RefsDemo/RefsDemo.jsx

The ref callback attribute saves a reference to the WrappedComponent.

this.instance has a reference to the WrappedComponent. You can now call the instance's method to communicate data between components. However, use this sparingly and only if necessary.

## Final Demo

I've incorporated all the examples in this tutorial into a single demo. Just clone or download the source from GitHub and you can try it out for yourself.

To install the dependencies and run the project, just run the following commands from the project folder.

## Summary

This is the end of the second tutorial on higher-order components. We learned a lot today about different HOC patterns and techniques, and went through practical examples that demonstrated how we could use them in our projects.

In the third part of the tutorial, you can look forward to some best practices and HOC alternatives that you should know of. Stay tuned until then. Share your thoughts in the comment box.


text:
How Much Different Are Two Words with Different Shortest Periods - Archive ouverte HAL Access content directly
Conference Papers Year : 2018

## How Much Different Are Two Words with Different Shortest Periods

(1) , (1, 2) , (1) , (3) , (1) , (1, 3) , (3) , (3)
1
2
3
Mai Alzamel
• Function : Author
• PersonId : 1033616
Maxime Crochemore
• Function : Author
• PersonId : 1033617
Costas S. Iliopoulos
• Function : Author
• PersonId : 1012032
Tomasz Kociumaka
• Function : Author
• PersonId : 1033618
Ritu Kundu
• Function : Author
• PersonId : 1012033
• Function : Author
• PersonId : 1033619
Wojciech Rytter
• Function : Author
• PersonId : 1033620
Tomasz Waleń
• Function : Author
• PersonId : 1033621

#### Abstract

Sometimes the difference between two distinct words of the same length cannot be smaller than a certain minimal amount. In particular if two distinct words of the same length are both periodic or quasiperiodic, then their Hamming distance is at least 2. We study here how the minimum Hamming distance $dist (x,y)$dist(x,y) between two words x, y of the same length n depends on their periods. Similar problems were considered in [1] in the context of quasiperiodicities. We say that a period p of a word x is primitive if x does not have any smaller period $p'$p′ which divides p. For integers p, n ($p\le n$p≤n) we define $\mathcal {P}_{p}(n)$Pp(n) as the set of words of length n with primitive period p. We show several results related to the following functions introduced in this paper for $p\ne q$p≠q and $n \ge \max (p,q)$n≥max(p,q). \begin{aligned} {\mathcal D}_{p,q}(n) = \min \,\{\, dist (x,y)\,:\; x\in \mathcal {P}_{p}(n), \,y\in \mathcal {P}_{q}(n)\,\}, \\ N_{p,q}(h) = \max \,\{\, n \,:\; {\mathcal D}_{p,q}(n)\le h\,\}. \qquad \qquad \end{aligned}Dp,q(n)=min{dist(x,y):x∈Pp(n),y∈Pq(n)},Np,q(h)=max{n:Dp,q(n)≤h}.

#### Domains

Computer Science [cs]

### Dates and versions

hal-01821339 , version 1 (22-06-2018)

### Identifiers

• HAL Id : hal-01821339 , version 1
• DOI :

### Cite

Mai Alzamel, Maxime Crochemore, Costas S. Iliopoulos, Tomasz Kociumaka, Ritu Kundu, et al.. How Much Different Are Two Words with Different Shortest Periods. 14th IFIP International Conference on Artificial Intelligence Applications and Innovations (AIAI), May 2018, Rhodes, Greece. pp.168-178, ⟨10.1007/978-3-319-92016-0_16⟩. ⟨hal-01821339⟩

### Export

BibTeX TEI Dublin Core DC Terms EndNote Datacite

244 View