    

 ## On this page

  

 

 # add\_solution

 Last update: 16.07.2026 

<a id="compolyx.Model.add_solution"></a>

## Model.add\_solution(name, id='', path=None, path2=None, format='ansys:rst', subcase=(False, 0), set=-1, load\_factor=(False, 0.0), read\_stresses\_strains=True, use\_felyx\_to\_compute\_pp\_results=True, use\_solid\_results=True, recompute\_iss\_of\_solids=False, renumbering\_mapping\_paths=\[\], ext\_id='', active=True)

Load a nodal solution from one or more files and add it to the model.

### Parameters

- name: Custom name of the solution.
- path: Path to the data file.
- path2: Optional path to second result file. Useful for ANSYS PRNSOL solution, where nodal deformations and nodal rotations can be exported to different files only.
- format: File format string. Available options: ‘abaqus:fieldreport’, ‘ansys:prnsol’,’ansys:rst’, and ‘nastran:f06’.
- subcase: Optional subcase to read. Only available for ‘nastran:f06’ format. (False,0) if not given in the F06 file.
- load\_factor: Optional load factor within substep of non-linear solution where the nodal solution should be taken from. Only available for ‘nastran:f06’ format. (False,0) if not given in the F06 file.
- set: Result set for ANSYS RST files, None is last result set.
- read\_stresses\_strains: Reads strain and stress results from the RST file (necessary to postprocess non-linear solutions).
- ‘use\_felyx\_to\_compute\_pp\_results’: Use ACP to compute strain and stress data.
- use\_solid\_results: Mapps solid element solution onto ‘Layered Solid Reference Surface’.
- recompute\_iss\_of\_solids: For solids the interlaminar shear stresses are recalculated considering the laminate stacking.
- renumbering\_mapping\_paths: List of paths of the assembly renumbering files used to map the results of composite assemblies.
- active: Active/inactive flag.

### Returns

The new Solution instance just added to the model.