Please wait...
×

Error

Posted Thu, 12 Nov 2020 16:47:48 GMT by Samia Shaaban
Hi All,
I want to assign multilayer well using IFM. I tried to define the required attribute for '[b]IfmSetMultiLayerWellAttrValue[/b]' function regarding [b]int nId[/b]  as the number of the nodes in all layers the mulilayer well should pass through and It didnt work. I changed defining int nID to just the nodes at the base layer of the multilayer well and I failed to define as well :'(.

Can anyone please help me to understand what is meant by" int nId :[b]Node independent ID (index) of the multilayer well[/b]". I found this statement on FEFLOW online help?.
How can I define multilayer by knowing the location (node number) and the flow rate?.

Thanks in advance,
Samia
Posted Sat, 23 Jan 2021 06:22:15 GMT by Lin Jimmy
The same question i faced today.

the first parameter "nId" is mean the EdgeSelections number which item had been stored(the picture).

ex:
doc.setMultiLayerWellAttrValue(1, 0, 1000), the "1" is mean well_1 item; the 0 is mean Rate setting; 1000 is mean 1000m3/d.
Posted Tue, 26 Jan 2021 11:56:25 GMT by Carlos Andres Rivera Villarreyes Global Product Specialist - FEFLOW
Hi,

You can use the following script to understand the syntaxis with MLW.

    ## Define Boundary Conditions for Flow
    # NoBC = 0
    # Dirichlet (1st kind) =1
    # Neumann (2nd kind) = 2
    # Cauchy (3rd kind) = 3
    # Single well (4th kind) = 4
    # Gradient-type (only for unsaturated problems) = 5
    BcFlowType = 4

    #Load documents
    doc=ifm.loadDocument(FEM_FILE)

    #Print all Multilayer Well attributes
    for nNode in range(0,doc.getNumberOfNodes()):

        if doc.getBcFlowType(nNode) == BcFlowType:
            if doc.queryMultiLayerWellInfo(nNode) == None:
                print(Normal Well BC found")
            else:
                MLWInfo=doc.queryMultiLayerWellInfo(nNode)
                # Print MLW ID, Name, Top Elevation, Bottom Elevation, Top Node, Bottom Node
                print(MLWInfo.getId(), MLWInfo.getName(), MLWInfo.getTopElevation(),
                    MLWInfo.getBottomElevation(), MLWInfo.getTopNode(), MLWInfo.getBottomNode())

You must be signed in to post in this forum.