human
$P-\Delta$ Forces
See module ..._Display
All Results
 ... Can you provide a the Python program you requested?
assistant
#Here is the Python program you requested.
@extend
class Frame2D:
    
    def write_results(self,dsname,rs):
        self.write_table('node_displacements',dsname=dsname,prefix=rs.loadcase,record=False,
                         precision=15,args=(rs,),makedir=True)
        self.write_table('reaction_forces',dsname=dsname,prefix=rs.loadcase,record=False,
                         precision=15,args=(rs,))
        self.write_table('member_end_forces',dsname=dsname,prefix=rs.loadcase,record=False,
                         precision=15,args=(rs,))
        if rs.pdelta:
            self.write_table('pdelta_forces',dsname=dsname,prefix=rs.loadcase,record=False,
                             precision=15,args=(rs,))

##test:
f.reset()
f.input_all()
rs = f.solve('One')
f.write_results('test',rs)

%ls -l data/test.d/One
%cat data/test.d/One/node_displacements.csv
%cat data/test.d/One/reaction_forces.csv
%cat data/test.d/One/member_end_forces.csv

##test:
%rm -rf data/test.d