http://weelookang.blogspot.sg/2015/01/hwa-chung-institution-workshop-2015.html

### Hwa Chong Institution Workshop 2015 Computational Modeling with Easy Java/JavaScript Simulations & Open Source Physics

thanks to jit ning for the kind invitation!

School: Hwa Chong Institution

Program: Science and Math Talent Programme (SMTP) and Gifted and Talented Education (GATE) programme

Date: 28 Apr, 5 May and 12 May

Time: 1430-1730

Title: Computational Modeling with Easy Java/JavaScript Simulations & Open Source Physics

Trainer: This email address is being protected from spambots. You need JavaScript enabled to view it.

Invited by: Dr Lim Jit Ning (Senior Consultant/Research)

His award: Crescendas Medal and Prize for Outstanding Physics Teacher (Junior Colleges) awarded by Institute of Physics Singapore (IPS), recognises outstanding efforts and innovative ways of teaching physics at institutions in Singapore.

School: Hwa Chong Institution

Program: Science and Math Talent Programme (SMTP) and Gifted and Talented Education (GATE) programme

Date: 28 Apr, 5 May and 12 May

Time: 1430-1730

Title: Computational Modeling with Easy Java/JavaScript Simulations & Open Source Physics

Trainer: This email address is being protected from spambots. You need JavaScript enabled to view it.

Invited by: Dr Lim Jit Ning (Senior Consultant/Research)

His award: Crescendas Medal and Prize for Outstanding Physics Teacher (Junior Colleges) awarded by Institute of Physics Singapore (IPS), recognises outstanding efforts and innovative ways of teaching physics at institutions in Singapore.

His Program: Hwa Chong Centre for Talent Development (CenTaD)

The elective module aims to:

This workshop aims to provide a hands-on bootstrapping experience to the Easy Java/JavaScript Simulations (EjsS) & Open Source Physics (OSP) modelling and authoring tool.

## Proposal for SMTP-GATE Elective Module 2015

The elective module aims to:

- provide opportunities for students to explore their passion to broaden and/or deepen their learning in Mathematics, the Sciences (beyond the core curriculum) and in other disciplines;
- empower students to take ownership of their learning; and
- promote critical thinking and enhance communication skills

## Title Computational Modeling with Easy Java/JavaScript Simulations & Open Source Physics

### Subject / Area Physics

### Date 28 Apr, 5 May and 12 May

### Target Group (eg Open to All GATE students, only for GATE-biology students) Open to All GATE students

### Pre-requisites (if any) strong interest

### Instructor (either HCI staff or external) Wee Loo Kang Lawrence

### Min class size (if any) 4

### Max class size (if any) 30

### Synposis

This workshop aims to provide a hands-on bootstrapping experience to the Easy Java/JavaScript Simulations (EjsS) & Open Source Physics (OSP) modelling and authoring tool.

## Day 0

- Software Download and unzip. http://www.um.es/fem/EjsWiki/Download/Download?action=downloadman&upname=EJS_5.1_150322.zip Test ejs by clicking

Ejsconsole.jar. - Java runtime installed

Some flip video here

http://www.um.es/fem/EjsWiki/Main/Webcasts

On day 1, participants will build brand new a simple constant motion model, free fall and bounce up model with pedagogical design such as scientific view, inputs fields and sliders for users to change and interactive productively with the model. Participants will explore the Singapore Digital Library http://iwant2study.org/lookangejss/

before deciding on a particular model to customize with the aim to use it to teach other students/teachers about the concepts they personally find difficult/challenging. A template will be provided to facilitate best design view for full screen on android and ios devices and epub3 an interactive eBook format.

examples include

The remaining time will be for personalized consultation and discussion to improve their design ideas and implement them into their own models.

Mentoring by This email address is being protected from spambots. You need JavaScript enabled to view it. and This email address is being protected from spambots. You need JavaScript enabled to view it.

email me your source files for inputs

http://www.um.es/fem/EjsWiki/Main/Webcasts

## Day 1

before deciding on a particular model to customize with the aim to use it to teach other students/teachers about the concepts they personally find difficult/challenging. A template will be provided to facilitate best design view for full screen on android and ios devices and epub3 an interactive eBook format.

## outline:

- 1. brand new a simple constant motion model my example http://iwant2study.org/lookangejss/01_measurement/ejss_model_horizontalvertical/horizontalvertical_Simulation.xhtml, notice how i use constant motion to allow animation
- Description: instructional materials, how to guide etc., add link html or xhtml for epub
- Model:
- Page 1 variables declared should be easy to understand
- create logic tabs for group of variables
- the initial values/states should be assigned to avoid errors in code generation

- Page 2 initialization initial codes to run at beginning of codes, usually used with dropbox menu
- Page 3 evolution, what the simulation does every time step dt.
- Page 4 Fixed relations codes to compute after every time step dt such as kinetic energy = 0.5*m*v^2
- Page 5: custom function, codes to run every time, add now to be scale-able across different simulations.

- Page 1 variables declared should be easy to understand
- HTMLview: where drawable objects as made visible, equation driven motion etc.
- Simple Layout Main/ Right
- Bottom Control such as inputs fields and sliders

- free fall
- y direction
- used event to compute exact time and position of event such as collision etc.http://iwant2study.org/lookangejss/02_newtonianmechanics_2kinematics/ejss_model_projectile/projectile_Simulation.xhtml

- use the http://iwant2study.org/lookangejss/00workshop/ejss_src_lookangtemplate.zip as first template to add your own simulation ideas
- How to share your simulations:Package current simulation, zip the simulation source files

## Day 2

Day 2, each participant will share some of the common design ideas for trainer to share with the group. If you need ideas ask me, i can suggest a few like how to convert existing EJS Java models into the brand new JavaScript models that run everywhere Android and iOS.examples include

- http://iwant2study.org/lookangejss/02_newtonianmechanics_7gravity/ejss_model_gravity08/gravity08_Simulation.xhtml
- http://iwant2study.org/lookangejss/02_newtonianmechanics_7gravity/ejss_model_gravity08_1/gravity08_1_Simulation.xhtml
- http://iwant2study.org/lookangejss/02_newtonianmechanics_7gravity/ejss_model_gravity08_2/gravity08_2_Simulation.xhtml
- http://iwant2study.org/lookangejss/02_newtonianmechanics_7gravity/ejss_model_gravity10/gravity10_Simulation.xhtml
- http://iwant2study.org/lookangejss/02_newtonianmechanics_7gravity/ejss_model_gravity11/gravity11_Simulation.xhtml

The remaining time will be for personalized consultation and discussion to improve their design ideas and implement them into their own models.

Add list of things raised and how to overcome they,

- see this for array using [i] https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/lookangejss/03thermalphysics_08kineticmodel/ejss_src_MolecularDynamicsJSPerformancewee.zip
- Math.pow(x,y) for x^y
- use brackets ( ) for mathematical function no [ ]
- 3D Javascript seems to be problematic on Mac, use windows to compile 3D Javascript WebGL, see this https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/lookangejss/02_newtonianmechanics_7gravity/ejss_src_gravity10.zip
- use Fixed Relations for computation that is required after every time step dt
- Library is setup for students' performance tasks http://iwant2study.org/lookangejss/00workshopStudents/
- chee hsin yee sliding block model using dvx/dt =m*(-9.81)*Math.cos(theta)*Math.sin(theta) and dy/dt =m*(-9.81)*(1-Math.cos(theta)*Math.cos(theta)). I also have another model for your referencing if you are interested to see how i do http://iwant2study.org/lookangejss/02_newtonianmechanics_3dynamics/ejss_model_frictionprimary/frictionprimary_Simulation.xhtml

Mentoring by This email address is being protected from spambots. You need JavaScript enabled to view it. and This email address is being protected from spambots. You need JavaScript enabled to view it.

email me your source files for inputs

## Day 3

Day 3, Final fine tuning of the model created/customised and each participant or pair will present their models created with the design ideas implemented and discuss how the model is to be use in classrooms to promote student better understanding of the concepts they have design to address. All students’ created/remixed models will be shared on the Singapore Digital Library http://iwant2study.org/lookangejss/ for the benefit of all.mentoring by This email address is being protected from spambots. You need JavaScript enabled to view it.

mail me your source files This email address is being protected from spambots. You need JavaScript enabled to view it. to include your work on the library

Facebook Social Comments