# How do I define a paramter sweep in static simulation

**URL:** <https://www.simscale.com/forum/t/how-do-i-define-a-paramter-sweep-in-static-simulation/29313>\
**Category:** Solid Mechanics / FEA\
**Created:** [June 26, 2016, 9:17am UTC](https://www.simscale.com/forum/t/how-do-i-define-a-paramter-sweep-in-static-simulation/29313 "2016-06-26T09:17:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sburger](https://www.simscale.com/forum/letter_avatar/sburger/32/5_5575768a8748004e209b776fc1b2916d.png) [@sburger](https://www.simscale.com/forum/u/sburger)\
**Post date:** [June 26, 2016, 9:17am UTC](https://www.simscale.com/forum/t/how-do-i-define-a-paramter-sweep-in-static-simulation/29313/1 "2016-06-26T09:17:36Z")

</div>

I would like to increase the load in the static simulation. I found this comment

> [@\[German Workshop\] Schritt-für-Schritt Anleitung: Session 1](https://www.simscale.com/forum/t/german-workshop-schritt-fur-schritt-anleitung-session-1/15115/53):
>
> Hallo, Was ich bis jetzt an Simulationsoftware gesehen habe verwenden einen Parameter Sweep um solche Aufgaben dar zu stellen. Bei machen ist es auch möglich einzelne Werte an zu geben, die nicht durch eine Gleichung dar zu stellen sind. Gibt es so was hier auch? das ist auch selbstverständlich mit SimScale möglich. Anstelle einer Gleichung wird hierfür auf ein CSV file zurückgegriffen, das hochgeladen wird. Gruß, Milad

but it doesn’t say how the CSV file looks like. In static simulation we use pseudo time and how should be defined the time steps in the CSV file that is works correct?

From my point of view parameter sweep is an important option for simulation. It would be good if some help would be added. The best would be with some examples to show the different possibilities.

---

<div class="post-metadata">

**Author:** ![jousefm](https://www.simscale.com/forum/user_avatar/www.simscale.com/jousefm/32/34908_2.png) [@jousefm](https://www.simscale.com/forum/u/jousefm)\
**Post date:** [June 26, 2016, 9:31am UTC](https://www.simscale.com/forum/t/how-do-i-define-a-paramter-sweep-in-static-simulation/29313/2 "2016-06-26T09:31:06Z")

</div>

Hi @sburger,

here you can see @ahmedhussain18 defining a material: [Defining elastoplastic material](https://www.simscale.com/forum/t/defining-elastoplastic-material/22595)

here with a variation of load in z-direction by (@rszoeke):

> **[Ring with Pressure from CSV file by rszoeke | SimScale](https://www.simscale.com/projects/rszoeke/ring_with_pressure)**
>
> Copy of the project Ring\_with\_Pressure - creat a ring with a pressure taken from a txt.File or csv.File by @lkr | Simulation project by rszoeke

here a test .csv file which @anon67859130 used to define time step lenghts for the different stages of the simulation : [https://seafile.simscale.com/f/675cbe183e/?raw=1](https://seafile.simscale.com/f/675cbe183e/?raw=1)  
(Post: [Step-by-Step Tutorial: Homework of Session 3 - Level 2](https://www.simscale.com/forum/t/step-by-step-tutorial-homework-of-session-3-level-2/427))

Hope this helps you. Just make sure your Seperator is defined correctly. Messed it up once because of that 😃

Cheers,

Jousef

---

<div class="post-metadata">

**Author:** ![sburger](https://www.simscale.com/forum/letter_avatar/sburger/32/5_5575768a8748004e209b776fc1b2916d.png) [@sburger](https://www.simscale.com/forum/u/sburger)\
**Post date:** [June 26, 2016, 9:48am UTC](https://www.simscale.com/forum/t/how-do-i-define-a-paramter-sweep-in-static-simulation/29313/3 "2016-06-26T09:48:58Z")

</div>

Hi @jousefm

Thank you for the links.[quote=“jousefm, post:2, topic:29313”]

> **[Ring with Pressure from CSV file by rszoeke | SimScale](https://www.simscale.com/projects/rszoeke/ring_with_pressure)**
>
> Copy of the project Ring\_with\_Pressure - creat a ring with a pressure taken from a txt.File or csv.File by @lkr | Simulation project by rszoeke

[/quote]

This project is the right answer to my question. Now I know how to do it but I don’t fully understand the settings.  
Her in the settings the pressure is 1 Pa and in the CSV file the pressure increase from 1e5 to 1.08e6 and decrease again. How should I understand this settings?

 ![](https://www.simscale.com/forum/uploads/default/original/2X/9/978097e9bf6f0868940b491acd77ed2e495c6a78.jpg)

---

<div class="post-metadata">

**Author:** ![jousefm](https://www.simscale.com/forum/user_avatar/www.simscale.com/jousefm/32/34908_2.png) [@jousefm](https://www.simscale.com/forum/u/jousefm)\
**Post date:** [June 26, 2016, 10:36am UTC](https://www.simscale.com/forum/t/how-do-i-define-a-paramter-sweep-in-static-simulation/29313/4 "2016-06-26T10:36:30Z")

</div>

Hey @sburger,

I think that the first column carries the z coordinates whereas the second column carries pressure values. This is because @rszoeke has chosen Z as the active parameter meaning that we primarily want the first column refering to the z-coordinates of our part.

Does this make sense to you?

**Also see:**

• [SimScale Documentation | Online Simulation Software | SimScale](https://docs.simscale.com/docs/content/simulation/model/tables.html?highlight=table)

• [How can we add a load depending on variables using SimScale?](https://www.simscale.com/forum/t/how-can-we-add-a-load-depending-on-variables-using-simscale/11069)

and

• [Defining variable constraint or load](https://www.simscale.com/forum/t/defining-variable-constraint-or-load/22617)

If something is still not clear do not hesitate to ask.

Cheers,

Jousef

---

<div class="post-metadata">

**Author:** ![jousefm](https://www.simscale.com/forum/user_avatar/www.simscale.com/jousefm/32/34908_2.png) [@jousefm](https://www.simscale.com/forum/u/jousefm)\
**Post date:** [June 26, 2016, 10:40am UTC](https://www.simscale.com/forum/t/how-do-i-define-a-paramter-sweep-in-static-simulation/29313/5 "2016-06-26T10:40:31Z")

</div>

P.S: The second link answers your question concerning the pressure of 1 Pascal.

---

<div class="post-metadata">

**Author:** ![sburger](https://www.simscale.com/forum/letter_avatar/sburger/32/5_5575768a8748004e209b776fc1b2916d.png) [@sburger](https://www.simscale.com/forum/u/sburger)\
**Post date:** [June 26, 2016, 10:51am UTC](https://www.simscale.com/forum/t/how-do-i-define-a-paramter-sweep-in-static-simulation/29313/6 "2016-06-26T10:51:54Z")

</div>

Thank you for the additional infos.

Now I got it how to use the table and the equation.

> [@How can we add a load depending on variables using SimScale?](https://www.simscale.com/forum/t/how-can-we-add-a-load-depending-on-variables-using-simscale/11069):
>
> Often we want to prescribe values of loads depending on direction. Let us consider an example. Suppose we want to apply pressure which is dependent on z direction. The following description will help: 1.SimScale allows users to prescribe loads in three ways: direct value, table upload and a formula. 2.If it is a single value e.g. Pressure = 1MPa, this can directly be prescribed in the value field. 3.The second way is via table upload. In this case Pressure can depend on a single v…

The only open point is following:  
When use the input field for a single value e.g. pressure → clear  
What is the meaning of a value in this field if I upload a table? It doesn’t have a meaning or is this a scaling factor?

---

<div class="post-metadata">

**Author:** ![jousefm](https://www.simscale.com/forum/user_avatar/www.simscale.com/jousefm/32/34908_2.png) [@jousefm](https://www.simscale.com/forum/u/jousefm)\
**Post date:** [June 26, 2016, 11:12am UTC](https://www.simscale.com/forum/t/how-do-i-define-a-paramter-sweep-in-static-simulation/29313/7 "2016-06-26T11:12:19Z")

</div>

Hi @sburger,

simply test it and see what happens 😉 I tested it and cannot see any significant changes if I double the value. So first priority of the solver is probably picking values from the table since we clicked the table symbol. If we click on the table symbol again we can type in a single value that we like.

Cheers,

Jousef

---

<div class="post-metadata">

**Author:** ![sburger](https://www.simscale.com/forum/letter_avatar/sburger/32/5_5575768a8748004e209b776fc1b2916d.png) [@sburger](https://www.simscale.com/forum/u/sburger)\
**Post date:** [June 26, 2016, 11:43am UTC](https://www.simscale.com/forum/t/how-do-i-define-a-paramter-sweep-in-static-simulation/29313/8 "2016-06-26T11:43:16Z")

</div>

Hi @jousefm

Thank you for your help, especially on a Sunday 👍👍👏
