Examples of Custom Physics > Thermoelectric Effect Implementation > Testing the Thermoelectric Effect Interface

Testing the Thermoelectric Effect Interface
At any time during the implementation of a physics interface using the Physics Builder, you can launch an updated preview of the physics interface so that you can add feature nodes and check that the contents and behavior of the associated Settings windows and other functionality is as expected.
To do this select the main node for the physics interface implementation (for example, Thermoelectric Effect and then click the Show Preview button () on the Settings window toolbar (or press F8). An instance of the physics interface then displays at the bottom of the Physics Builder tree.
When you are finished, update COMSOL Multiphysics to check that the new physics interface is in the Model Wizard and that the functionality and settings are as expected.
1
From the Windows menu or the Home toolbar, choose Physics Builder Manager ().
2
Under Archive Browser, right-click the Development Files node () and select Add Builder File. Browse to locate ThermoelectricEffect.mphphb. Click to select it and then click Open.
3
From File menu select New ().
4
Click Model Wizard ().
5
Select a space dimension, 3D () for example.
6
On the Select Physics page, under Heat Transfer>Thermoelectric Devices click Thermoelectric Effect (tee). Click Add.
7
Click Study ().
8
On the Select Study page, verify that Stationary is the only available study type under Preset Studies. Select it and click Done ().
9
In the Model Builder, verify that the default nodes appear as expected and that their Settings windows contain the user inputs specified.
10
Continue by building an example model (see Example Model — Thermoelectric Leg) to verify that the Thermoelectric Effect interface solves the correct equation using the correct boundary conditions and that you can plot the various physics quantities.
11
When you have successfully created a first instance of a physics interface you can consider improvements or additions for future development. Typically you can save a model file and then reload it after updating the physics definitions to see how it behaves after applying some extensions or corrections.
The Thermoelectric Effect interface has some natural extensions:
In other words: