Package bs.bs2d.fea

Examples of bs.bs2d.fea.BoundaryCondition


       
        bcListModel = new DefaultListModel<>();
        lstBC.setModel(bcListModel);
       
        if(MainGUI.DEBUG_LOADCASE){
            BoundaryCondition bc;
            bc = new BoundaryCondition("fixed",
                    BoundaryCondition.Type.FIXED, 0, 0);
            bcListModel.add(0, bc);
            bc = new BoundaryCondition("load",
                    BoundaryCondition.Type.POINT_LOAD, 0, -1);
            bcListModel.add(0, bc);
        }
    }
View Full Code Here


    private void btnNewActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNewActionPerformed
        int i = bcListModel.getSize();
        bcCreate.reset(i);
        showDialog(bcCreate);
       
        BoundaryCondition bc = bcCreate.bc;
        if(bc == null)
            return;
       
        bcListModel.add(i, bc);
        lstBC.setSelectedIndex(i);
View Full Code Here

       
        btnAddNodesActionPerformed(evt);
    }//GEN-LAST:event_btnNewActionPerformed

    private void btnEditActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEditActionPerformed
        BoundaryCondition bc = bcListModel.get(lstBC.getSelectedIndex());
        if(bc.type == BoundaryCondition.Type.FIXED){
            fdEdit.reset(bc);
            showDialog(fdEdit);
            if(fdEdit.ok){
                bc.x = fdEdit.x;
View Full Code Here

    }//GEN-LAST:event_lstBCValueChanged

    private void btnAddNodesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAddNodesActionPerformed
        if(plotter != null){
            int i = lstBC.getSelectedIndex();
            BoundaryCondition bc = bcListModel.get(i);
            bc.addNodes(plotter.getSelection());
            txtNodes.setText("" + bc.getNodeCount());
        }
    }//GEN-LAST:event_btnAddNodesActionPerformed
View Full Code Here

    }//GEN-LAST:event_btnAddNodesActionPerformed

    private void btnRemoveNodesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRemoveNodesActionPerformed
        if(plotter != null){
            int i = lstBC.getSelectedIndex();
            BoundaryCondition bc = bcListModel.get(i);
            bc.removeNodes(plotter.getSelection());
            txtNodes.setText("" + bc.getNodeCount());
        }
    }//GEN-LAST:event_btnRemoveNodesActionPerformed
View Full Code Here

    }//GEN-LAST:event_btnRemoveNodesActionPerformed

    private void btnSelectNodesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSelectNodesActionPerformed
        if(plotter != null){
            int i = lstBC.getSelectedIndex();
            BoundaryCondition bc = bcListModel.get(i);
            plotter.setSelection(bc.getNodes());
        }
    }//GEN-LAST:event_btnSelectNodesActionPerformed
View Full Code Here

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btnOKActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnOKActionPerformed
        if(cmbType.getSelectedIndex() == 0)
            bc = new BoundaryCondition(txtName.getText(),
                    BoundaryCondition.Type.FIXED);
        else
            bc = new BoundaryCondition(txtName.getText(),
                    BoundaryCondition.Type.POINT_LOAD);
       
        setVisible(false);
    }//GEN-LAST:event_btnOKActionPerformed
View Full Code Here

TOP

Related Classes of bs.bs2d.fea.BoundaryCondition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.