-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of git://github.com/OpenSees/OpenSees
X. Du - Merge updates from official OpenSees
- Loading branch information
Showing
43 changed files
with
5,288 additions
and
2,123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* ****************************************************************** ** | ||
** OpenSees - Open System for Earthquake Engineering Simulation ** | ||
** Pacific Earthquake Engineering Research Center ** | ||
** ** | ||
** ** | ||
** (C) Copyright 1999, The Regents of the University of California ** | ||
** All Rights Reserved. ** | ||
** ** | ||
** Commercial use of this program without express permission of the ** | ||
** University of California, Berkeley, is strictly prohibited. See ** | ||
** file 'COPYRIGHT' in main directory for information on usage and ** | ||
** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. ** | ||
** ** | ||
** Developed by: ** | ||
** Frank McKenna (fmckenna@ce.berkeley.edu) ** | ||
** Gregory L. Fenves (fenves@ce.berkeley.edu) ** | ||
** Filip C. Filippou (filippou@ce.berkeley.edu) ** | ||
** ** | ||
** ****************************************************************** */ | ||
|
||
// Written: Minjie Zhu | ||
// | ||
// | ||
|
||
#include "BCell.h" | ||
|
||
#include "BNode.h" | ||
|
||
BCell::BCell() : pts(), type(BACKGROUND_FLUID), bnodes(), bindices() {} | ||
|
||
void BCell::add(Particle* pt) { pts.push_back(pt); } | ||
|
||
void BCell::setType(BackgroundType t) { type = t; } | ||
|
||
BackgroundType BCell::getType() const { return type; } | ||
|
||
VParticle& BCell::getPts() { return pts; } | ||
|
||
std::vector<BNode*>& BCell::getNodes() { return bnodes; } | ||
|
||
std::vector<VInt>& BCell::getIndices() { return bindices; } | ||
|
||
void BCell::addNode(BNode* bnode, const VInt& index) { | ||
bnodes.push_back(bnode); | ||
bindices.push_back(index); | ||
} | ||
|
||
void BCell::clearParticles() { pts.clear(); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* ****************************************************************** ** | ||
** OpenSees - Open System for Earthquake Engineering Simulation ** | ||
** Pacific Earthquake Engineering Research Center ** | ||
** ** | ||
** ** | ||
** (C) Copyright 1999, The Regents of the University of California ** | ||
** All Rights Reserved. ** | ||
** ** | ||
** Commercial use of this program without express permission of the ** | ||
** University of California, Berkeley, is strictly prohibited. See ** | ||
** file 'COPYRIGHT' in main directory for information on usage and ** | ||
** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. ** | ||
** ** | ||
** Developed by: ** | ||
** Frank McKenna (fmckenna@ce.berkeley.edu) ** | ||
** Gregory L. Fenves (fenves@ce.berkeley.edu) ** | ||
** Filip C. Filippou (filippou@ce.berkeley.edu) ** | ||
** ** | ||
** ****************************************************************** */ | ||
|
||
// Written: Minjie Zhu | ||
// | ||
// | ||
|
||
#ifndef BCell_h | ||
#define BCell_h | ||
|
||
#include "BackgroundDef.h" | ||
|
||
class BNode; | ||
|
||
// BACKGROUND_FLUID - a grid fluid cell | ||
// BACKGROUND_STRUCTURE - a structural cell, which should have no particles | ||
class BCell { | ||
private: | ||
VParticle pts; | ||
BackgroundType type; | ||
std::vector<BNode*> bnodes; | ||
std::vector<VInt> bindices; | ||
|
||
public: | ||
BCell(); | ||
void add(Particle* pt); | ||
void setType(BackgroundType t); | ||
BackgroundType getType() const; | ||
VParticle& getPts(); | ||
std::vector<BNode*>& getNodes(); | ||
std::vector<VInt>& getIndices(); | ||
|
||
void addNode(BNode* bnode, const VInt& index); | ||
|
||
void clearParticles(); | ||
}; | ||
|
||
#endif |
Oops, something went wrong.