-

Note: You are currently viewing documentation for Moodle 3.10. Up-to-date documentation for the latest stable version of Moodle may be available here: PhET simulations.

PhET simulations: Difference between revisions

From MoodleDocs
(tidy up)
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:


==PhET==
==PhET==
'''[http://phet.colorado.edu/ PhET]''' is a site for interactive simulations for science ([[Physics|physics]], [[Biology|biology]], [[Chemistry|chemistry]], Earth sciences) and [[Math|math]] at elementary, middle school, high school and University levels, from the University of Colorado at Boulder, USA, that provides fun, free, interactive, research-based science and mathematics simulations. The simulations are written in Java, [https://en.wikipedia.org/wiki/Adobe_Flash Flash] or [https://en.wikipedia.org/wiki/HTML5 HTML5], and can be run online or downloaded to your (Moodle 2.9 server) computer. All simulations are open source.
'''[http://phet.colorado.edu/ PhET]''' is a site for interactive simulations for science ([[Physics|physics]], [[Biology|biology]], [[Chemistry|chemistry]], Earth sciences) and [[Math|math]] at elementary, middle school, high school and University levels, from the University of Colorado at Boulder, USA, that provides fun, free, interactive, research-based science and mathematics simulations. The simulations are written in Java, [https://en.wikipedia.org/wiki/Adobe_Flash Flash] or [https://en.wikipedia.org/wiki/HTML5 HTML5], and can be run online or downloaded to your Moodle server or desktop computer. All simulations are open source.
 
{{Note|Downloading the actual simulation code into a Moodle resource used to work for Moodle 2.9, but it does not work for newer Moodle versions; you must link to  the address of the simulation hosted at http://phet.colorado.edu/ .}}


==What does PhET stand for?==
==What does PhET stand for?==
The name "PhET" was originally an acronym for "Physics Education Technology" but the PhET site now includes simulations about many other subjects besides physics, so the acronym is too limited. The PhET team decided to keep the name because it is so widely recognized.
The name "PhET" was originally an acronym for "Physics Education Technology" but the PhET site now includes simulations about many other subjects besides physics, so the acronym is too limited. The PhET team decided to keep the name because it is so widely recognized.


==Downloading the link to the code for one PhET simulation==
==Embedding PhET simulations in a Moodle course: the easy way==
* You can find the code for many simulations in the [http://phet.colorado.edu/en/get-phet/one-at-a-time PhET site].
 
** It is easier to use the simulations written in HTML5 for showing in student's PCs.
===Identify the PhET simulations that you will use===
* You can find many simulations in the [http://phet.colorado.edu/en/get-phet/one-at-a-time PhET site].
** It is easier to use the simulations written in HTML5 for showing in student's desktop or laptop computers.
** Note that some simulations that were written in [https://en.wikipedia.org/wiki/Adobe_Flash Flash ] will need to have the [[Multimedia plugins filter|multimedia plugins filter]] enabled in the Moodle server, which some servers admins will not allow for security reason. Remember that running [https://en.wikipedia.org/wiki/Adobe_Flash Flash] code in Macs and iPads can be tricky.
** Note that some simulations that were written in [https://en.wikipedia.org/wiki/Adobe_Flash Flash ] will need to have the [[Multimedia plugins filter|multimedia plugins filter]] enabled in the Moodle server, which some servers admins will not allow for security reason. Remember that running [https://en.wikipedia.org/wiki/Adobe_Flash Flash] code in Macs and iPads can be tricky.
** Simulations written in Java or [https://en.wikipedia.org/wiki/HTML5 HTML5] can usually run well in modern Moodle servers and in most modern user's devices and browser.
** Simulations written in Java or [https://en.wikipedia.org/wiki/HTML5 HTML5] can usually run well in modern Moodle servers and in most modern user's devices and browser.


==Embedding a link to a PhET simulation in a Moodle Page or label==
===Downloading the HTML5 code for each desired simulation===
[[File:pHet DOWNLOAD html5 FILES ONE AT A TIME.png|400px]]
 
* Download the desired simulations into a temp folder.
* You can check the downloaded simulation by (double click) opening with your favorite Internet browser.
{{Note|Firefox, Chrome  and Safary usually work better than Microsoft's Internet explorers. You have been warned!}}
 
===Embedd the PhET simulations in a Moodle course===
* Go to the desired Moodle course
* [[Turn editing on]]
* Drag and drop each simulation into the desired position
 
[[File:PhET drag and drop the simulation into the Moodle course.png|400px]]
 
* [[Turn editing on|Turn edition off]]
* Check that the simulation works as expected.
* Enjoy!
 
[[File:Phet balancing act in moodle 299.png|400px]]
 
[[File:Phet balancing act in moodle 299 image 2.png|400px]]
 
==PhET simulations in languages other than English==
[https://phet.colorado.edu/en/simulations/category/new Phet simulations] are available for download in many languages, just choose your language at the bottom of the simulations page.
[[File:PhET simulations are available in several languages.png|400px]]
 
==Translating/customizing the English language strings inside a PhET simulation==
* You can also [https://phet.colorado.edu/en/for-translators translate other simulations with the PhET site tools].
* It is very easy to translate/customize the English language strings inside an HTML5 file PhET simulation into your desired language.
* You will need to use a text editor, such as [https://notepad-plus-plus.org/  Notepad ++], or a programmer's editor.
{{Note|Do not try to use Microsoft Word or it will not work. You have been warned!}}
** simply open the *.html file in the editor,
** search for the English language string you want to change,
** replace with your translation,
** repeat as needed,
** save the translated file with a new name.
** check that it works as intended.
** enjoy!
==Embedding a link to a PhET simulation in a Moodle Page or label: the hard way==
* We will be using the HTML5 version of the balancing act simulation for this example.
* We will be using the HTML5 version of the balancing act simulation for this example.
*  Firstly, go to the [http://phet.colorado.edu/ PhET] site, and locate the simulation that you want to use.
*  Firstly, go to the [http://phet.colorado.edu/ PhET] site, and locate the simulation that you want to use.
Line 61: Line 100:
===Embedding a simulation in a quiz===
===Embedding a simulation in a quiz===
You can either:
You can either:
*  have the students first interact with the simulation's link embedded in a [[Page]]  (see above how to embed a PhET simulation in a Moodle Page) and take a quiz later.
*  have the students first interact with the simulation's link embedded as a resource in a Moodle course (the easy way), or embedded in a [[Label]] or a [[Page]]  (see above) and take a quiz later.
* embed the link to the simulation in a [[Question_types#Description|description question type]] (see below) prior to asking the relevant questions with the usual [[Question types|question types]]:
* embed the link to the simulation in a [[Question_types#Description|description question type]] (the hard way) prior to asking the relevant questions with the usual [[Question types|question types]]:


[[File:Phet simulationin a  description question type.png|600px]]
[[File:Phet simulationin a  description question type.png|600px]]


* Make a [[True/False question type]], [[Multiple Choice question type]], or any other [[Question types|question type]] with the embedded link to the simulation displaying in a smaller frame:
* Make a [[True/False question type]], [[Multiple Choice question type]], or any other [[Question types|question type]] with the embedded link to the simulation (the hard way) displaying in a smaller frame:
[[File:Phet simulationin with a true-false question type.png|600px]]
[[File:Phet simulationin with a true-false question type.png|600px]]


==Embedding a PhET simulation in a Moodle question==
==Embedding a PhET simulation in a Moodle question==
It is quite easy to insert the HTML5 code into a Moodle [[Question_types#Description|description question type]]. Just remember to activate the <> button in the [[Text editor]].
It is not too difficult to insert the HTML5 code into a Moodle [[Question_types#Description|description question type]]. Just follow the directions above /the hard way) and remember to activate the <> button in the [[Text editor]].


[[File:A PhET in a Moodle description question type.png|400px]]
[[File:A PhET in a Moodle description question type.png|400px]]


When you click the 'Save changes' button, the link to thw simulation code will be saved and you can see the preview when you edit the question:
When you click the 'Save changes' button, the link to the simulation code will be saved and you can see the preview when you edit the question:


[[File:A PhET in a Moodle description question type interpreted.png|400px]]
[[File:A PhET in a Moodle description question type interpreted.png|400px]]


==Is there a list of PhET simulations that run well with Moodle?==
==Is there a list of PhET simulations that run well with Moodle?==
Not yet, but you can try downloading one simulation from the [http://phet.colorado.edu/en/get-phet/one-at-a-time PhET site] and post your results in [https://moodle.org/mod/forum/view.php?id=737 the Moodle Quiz forum].
* Not yet, but you can try downloading one simulation from the [http://phet.colorado.edu/en/get-phet/one-at-a-time PhET site] and post your results in [https://moodle.org/mod/forum/view.php?id=737 the Moodle Quiz forum].  
 
* It seems that all the HTML5 simulations available in January 2018 work if they are properly embedded (either the easy way or the hard way)!
=== Difficulties encountered while trying to use Phet simulations HTML5 code in Moodle 3.0 and newer branches===
 
{{Note|Downloading the actual simulation code into a Moodle resource used to work for Moodle 2.9, but it does not work for newer Moodle versions; you must link to  the address of the simulation hosted at http://phet.colorado.edu/ .}}
* The following procedure does not work in Moodle 3.0 and newer branches:
 
* This is an example from a Moodle 3.2.0 site using the Atto editor:
 
[[File:Phet balancing act in moodle3209 image 3.png|400px]]
 
* Atto editor has removed some code from the PhET simulation:
 
[[File:Phet balancing act in moodle3209 image 4.png|400px]]


* Why? I do not know. Help needed :)


[[Category:Biology]]
[[Category:Biology]]
Line 100: Line 126:
[[Category:Mathematics]]
[[Category:Mathematics]]
[[Category:Physics]]
[[Category:Physics]]
[[Category:Medicine]]


[[Category:Questions]]
[[Category:Questions]]

Latest revision as of 22:31, 4 February 2018

PhET

PhET is a site for interactive simulations for science (physics, biology, chemistry, Earth sciences) and math at elementary, middle school, high school and University levels, from the University of Colorado at Boulder, USA, that provides fun, free, interactive, research-based science and mathematics simulations. The simulations are written in Java, Flash or HTML5, and can be run online or downloaded to your Moodle server or desktop computer. All simulations are open source.

What does PhET stand for?

The name "PhET" was originally an acronym for "Physics Education Technology" but the PhET site now includes simulations about many other subjects besides physics, so the acronym is too limited. The PhET team decided to keep the name because it is so widely recognized.

Embedding PhET simulations in a Moodle course: the easy way

Identify the PhET simulations that you will use

  • You can find many simulations in the PhET site.
    • It is easier to use the simulations written in HTML5 for showing in student's desktop or laptop computers.
    • Note that some simulations that were written in Flash will need to have the multimedia plugins filter enabled in the Moodle server, which some servers admins will not allow for security reason. Remember that running Flash code in Macs and iPads can be tricky.
    • Simulations written in Java or HTML5 can usually run well in modern Moodle servers and in most modern user's devices and browser.

Downloading the HTML5 code for each desired simulation

pHet DOWNLOAD html5 FILES ONE AT A TIME.png

  • Download the desired simulations into a temp folder.
  • You can check the downloaded simulation by (double click) opening with your favorite Internet browser.
Note: Firefox, Chrome and Safary usually work better than Microsoft's Internet explorers. You have been warned!


Embedd the PhET simulations in a Moodle course

  • Go to the desired Moodle course
  • Turn editing on
  • Drag and drop each simulation into the desired position

PhET drag and drop the simulation into the Moodle course.png

Phet balancing act in moodle 299.png

Phet balancing act in moodle 299 image 2.png

PhET simulations in languages other than English

Phet simulations are available for download in many languages, just choose your language at the bottom of the simulations page. PhET simulations are available in several languages.png

Translating/customizing the English language strings inside a PhET simulation

Note: Do not try to use Microsoft Word or it will not work. You have been warned!
    • simply open the *.html file in the editor,
    • search for the English language string you want to change,
    • replace with your translation,
    • repeat as needed,
    • save the translated file with a new name.
    • check that it works as intended.
    • enjoy!

Embedding a link to a PhET simulation in a Moodle Page or label: the hard way

  • We will be using the HTML5 version of the balancing act simulation for this example.
  • Firstly, go to the PhET site, and locate the simulation that you want to use.
  • Then, copy the address (green rectangle) that links to that simulation's HTML5 code (blue rectangle):

Phet simulation copy the simulation address.png

  • Now you can add a new Label or Page resource, where you will link to the PhET simulation
    • It is quite easy to insert the link to the HTML5 code into a Moodle Page.
    • Just remember to activate the <> button in the Text editor.

A PhET in a Moodle page.png

<iframe src="address_of_phet_simulation_to_be_linked" width="800" height="600" scrolling="no" allowfullscreen></iframe>

{Note|You can change the width and height values (800 and 600 above) to a size that better suits your client's displays.}}

    • This is how your label should look like:

Phet simulationtype the needed code and paste the actual simulatiuon address.png

  • If you click again in the <> button in the Text editor, you will change from HTML code editing mode into interpreted mode, and you will see the simulation while it is being loaded and displayed. The simulation will show properly from now on:

Phet simulation with the embedded simulation inside the label.png

  • Now click the 'Save and return to course' button.
  • And it's done !:

Phet simulation with the finished label.png

  • Enjoy!

Phet balancing act in moodle 299.png


Phet balancing act in moodle 299 image 2.png


Can you embed PhET code in the Moodle Quiz?

According to this post, Tim Hunt tried this (with the balancing act SIM), with these results:

  • At first it did not work, because his test Moodle site is running on https, and the embed code has http://, so it gets blocked by browser security settings.
  • However, editing the URL in the embed code to be https, then it worked.

Embedding a simulation in a quiz

You can either:

  • have the students first interact with the simulation's link embedded as a resource in a Moodle course (the easy way), or embedded in a Label or a Page (see above) and take a quiz later.
  • embed the link to the simulation in a description question type (the hard way) prior to asking the relevant questions with the usual question types:

Phet simulationin a description question type.png

Phet simulationin with a true-false question type.png

Embedding a PhET simulation in a Moodle question

It is not too difficult to insert the HTML5 code into a Moodle description question type. Just follow the directions above /the hard way) and remember to activate the <> button in the Text editor.

A PhET in a Moodle description question type.png

When you click the 'Save changes' button, the link to the simulation code will be saved and you can see the preview when you edit the question:

A PhET in a Moodle description question type interpreted.png

Is there a list of PhET simulations that run well with Moodle?

  • Not yet, but you can try downloading one simulation from the PhET site and post your results in the Moodle Quiz forum.
  • It seems that all the HTML5 simulations available in January 2018 work if they are properly embedded (either the easy way or the hard way)!