Hi,
If I understood correctly, you want to model a uniform temperature variation with a value of 30 °C on the left and 15 °C on the right, both values being constant over the full height of the wall.
The solution is to introduce the load using the AREA record as follows:
You can also use a prescribed strain in only one direction, either Ex (x) or Ey (y), by using the thermal expansion coefficient α, which is around 10⁻⁵ for concrete.
As for the link you mentioned — “Non-Linear Temperature in Quad Elements - SOFiSTiK FOR YOU” — it is used to apply a non-uniform temperature variation through the thickness of the element (in the z-direction). The temperature profile includes both a uniform part and a thermal gradient.
Good luck.
If you have any further questions, feel free to ask. Abderrahman OMRI
As shown in the attached figure, I have set up my model accordingly and used the following code. However, I encountered an error during execution. I am unsure where the mistake might be and would appreciate your guidance in this regard.
Thank you in advance for your help.
Best regards,
Sanaz
My code:
+PROG SOFILOAD URS:4
HEAD
UNIT 0
ECHO LOAD EXTR
LC 101 TYPE ‘none’ TITL ‘Linear temperature’
end
My error:
*** Start: Program Calculation - Version 2023-12.0.1017
*** Start: Program sofiload : LC 101 TYPE ‘none’ TITL ‘Linear temperature’
SOFiSTiK 2023-12.0.1017 SOFILOAD - LOAD GENERATOR
Output on file Wall_2.plb
Project data base Wall_2.cdb - 216. access
Project: Wall_2
+++++ error no. 12111 ; input line: 10
Improper literal " 1" at position 1 legal are:
TIME NEEDED 1, TOTAL 1
DATE 2025-06-05, 10:14:51
-setting that I gave:
Dear Mr. Omri,
Thank you so much for your help. the code works well. My main purpose is to read 100 temperature loads from an excel sheet ( (new.xlsx, sheet T1)) and analyze structure for each case. The goal is to loop through each row of the Excel file , create a new load case for each pair of temperature values (left and right) and analyze the structure for each of them. I wrote this code and used the script that you uploaded here. but I encountered some errors.
Here is a part of my excel sheet:
ENDLOOP #XLS.IER<3 $ loop until empty cell is reached
END
all four errors are:
+++++ error no. 10141 in program SOF_VAR
Variable TEMP_L undefined or with improper Index 0
+++++ error no. 10141 in program SOF_VAR
Variable TEMP_L undefined or with improper Index 0
+++++ error no. 10141 in program SOF_VAR
Variable TEMP_R undefined or with improper Index 0
+++++ error no. 10141 in program SOF_VAR
Variable TEMP_R undefined or with improper Index 0
TIME NEEDED 1, TOTAL 1
Thank you again for your support