new_model.create_subcases([1])
sub_1=new_model.subcases[1]
sub_1.sol=101
sub_1.add('SPC',1,[],'STRESS-type')
sub_1.add('LOAD',2,[],'STRESS-type')
sub_1.add('FORCES',1,['PRINT','PLOT'],'STRESS-type')
sub_1.add_set_from_values(1, list(props.keys()))
new_model.update_solution(101,'',1)
to get:
SOL 101
CEND
$CASE CONTROL DECK
SUBCASE 1
SET 1 = 1 THRU 30
FORCE(PRINT,PLOT) = 1
LOAD = 2
SPC = 1
BEGIN BULK
Hope that helps
Alejandro
--
You received this message because you are subscribed to the Google Groups "pyNastran Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pynastran-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pynastran-discuss/1879bf83-2781-4704-bdde-eb61f3ffcce6n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pynastran-discuss/f255855c-3f84-4342-9941-e7f270a931a7n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pynastran-discuss/CAFppqivHi%3DGb4kagztH3%3Debk9iuO0y1NHg9HnOHKzewDa2pe-A%40mail.gmail.com.